feat(asyncai): add multilingual TTS support

This commit is contained in:
Ashot
2025-09-04 13:58:50 +04:00
parent 0fab56fc13
commit daf7fed8b3
2 changed files with 7 additions and 0 deletions

View File

@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added multilingual support for AsyncAI in `AsyncAITTSService` and `AsyncAIHttpTTSService`.
- New `languages`: `es`, `fr`, `de`, `it`.
- Added new frames `InputTransportMessageUrgentFrame` and
`DailyInputTransportMessageUrgentFrame` for transport messages received from
external sources.

View File

@@ -52,6 +52,10 @@ def language_to_async_language(language: Language) -> Optional[str]:
"""
BASE_LANGUAGES = {
Language.EN: "en",
Language.FR: "fr",
Language.ES: "es",
Language.DE: "de",
Language.IT: "it",
}
result = BASE_LANGUAGES.get(language)