Merge pull request #1954 from WebinarGeek/wg/gladia-informal-translations

Gladia informal translations
This commit is contained in:
Aleix Conchillo Flaqué
2025-06-09 20:21:40 -07:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -118,6 +118,9 @@ asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
`DailyTransport.stop_transcription()` to be able to start and stop Daily
transcription dynamically (maybe with different settings).
- Added the option `informal` to `TranslationConfig` on Gladia config.
Allowing to force informal language forms when available.
### Changed
- Reverted the default model for `GeminiMultimodalLiveLLMService` back to

View File

@@ -74,11 +74,13 @@ class TranslationConfig(BaseModel):
target_languages: List of target language codes for translation
model: Translation model to use ("base" or "enhanced")
match_original_utterances: Whether to align translations with original utterances
informal: Force informal language forms when available
"""
target_languages: Optional[List[str]] = None
model: Optional[str] = None
match_original_utterances: Optional[bool] = None
informal: Optional[bool] = None
class RealtimeProcessingConfig(BaseModel):