This commit is contained in:
呆萌闷油瓶 2024-03-13 13:00:46 +08:00 committed by GitHub
parent e5e97c0a0a
commit 8f9125b08a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -133,7 +133,7 @@ class ModelPropertyKey(Enum):
DEFAULT_VOICE = "default_voice" DEFAULT_VOICE = "default_voice"
VOICES = "voices" VOICES = "voices"
WORD_LIMIT = "word_limit" WORD_LIMIT = "word_limit"
AUDOI_TYPE = "audio_type" AUDIO_TYPE = "audio_type"
MAX_WORKERS = "max_workers" MAX_WORKERS = "max_workers"

View File

@ -94,8 +94,8 @@ class TTSModel(AIModel):
""" """
model_schema = self.get_model_schema(model, credentials) model_schema = self.get_model_schema(model, credentials)
if model_schema and ModelPropertyKey.AUDOI_TYPE in model_schema.model_properties: if model_schema and ModelPropertyKey.AUDIO_TYPE in model_schema.model_properties:
return model_schema.model_properties[ModelPropertyKey.AUDOI_TYPE] return model_schema.model_properties[ModelPropertyKey.AUDIO_TYPE]
def _get_model_word_limit(self, model: str, credentials: dict) -> int: def _get_model_word_limit(self, model: str, credentials: dict) -> int:
""" """

View File

@ -628,7 +628,7 @@ TTS_BASE_MODELS = [
}, },
], ],
ModelPropertyKey.WORD_LIMIT: 120, ModelPropertyKey.WORD_LIMIT: 120,
ModelPropertyKey.AUDOI_TYPE: 'mp3', ModelPropertyKey.AUDIO_TYPE: 'mp3',
ModelPropertyKey.MAX_WORKERS: 5 ModelPropertyKey.MAX_WORKERS: 5
}, },
pricing=PriceConfig( pricing=PriceConfig(
@ -682,7 +682,7 @@ TTS_BASE_MODELS = [
}, },
], ],
ModelPropertyKey.WORD_LIMIT: 120, ModelPropertyKey.WORD_LIMIT: 120,
ModelPropertyKey.AUDOI_TYPE: 'mp3', ModelPropertyKey.AUDIO_TYPE: 'mp3',
ModelPropertyKey.MAX_WORKERS: 5 ModelPropertyKey.MAX_WORKERS: 5
}, },
pricing=PriceConfig( pricing=PriceConfig(