feat(asyncai): add multilingual TTS support
This commit is contained in:
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- Added multilingual support for AsyncAI in `AsyncAITTSService` and `AsyncAIHttpTTSService`.
|
||||||
|
- New `languages`: `es`, `fr`, `de`, `it`.
|
||||||
|
|
||||||
- Added new frames `InputTransportMessageUrgentFrame` and
|
- Added new frames `InputTransportMessageUrgentFrame` and
|
||||||
`DailyInputTransportMessageUrgentFrame` for transport messages received from
|
`DailyInputTransportMessageUrgentFrame` for transport messages received from
|
||||||
external sources.
|
external sources.
|
||||||
|
|||||||
@@ -52,6 +52,10 @@ def language_to_async_language(language: Language) -> Optional[str]:
|
|||||||
"""
|
"""
|
||||||
BASE_LANGUAGES = {
|
BASE_LANGUAGES = {
|
||||||
Language.EN: "en",
|
Language.EN: "en",
|
||||||
|
Language.FR: "fr",
|
||||||
|
Language.ES: "es",
|
||||||
|
Language.DE: "de",
|
||||||
|
Language.IT: "it",
|
||||||
}
|
}
|
||||||
|
|
||||||
result = BASE_LANGUAGES.get(language)
|
result = BASE_LANGUAGES.get(language)
|
||||||
|
|||||||
Reference in New Issue
Block a user