| 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" | ||||
| """ | """ | ||||
| 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: | |||||
| return model_schema.model_properties[ModelPropertyKey.AUDOI_TYPE] | |||||
| if model_schema and ModelPropertyKey.AUDIO_TYPE in model_schema.model_properties: | |||||
| 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: | ||||
| """ | """ |
| }, | }, | ||||
| ], | ], | ||||
| 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( | ||||
| }, | }, | ||||
| ], | ], | ||||
| 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( |