Merge pull request #1954 from WebinarGeek/wg/gladia-informal-translations
Gladia informal translations
This commit is contained in:
@@ -118,6 +118,9 @@ asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
|||||||
`DailyTransport.stop_transcription()` to be able to start and stop Daily
|
`DailyTransport.stop_transcription()` to be able to start and stop Daily
|
||||||
transcription dynamically (maybe with different settings).
|
transcription dynamically (maybe with different settings).
|
||||||
|
|
||||||
|
- Added the option `informal` to `TranslationConfig` on Gladia config.
|
||||||
|
Allowing to force informal language forms when available.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Reverted the default model for `GeminiMultimodalLiveLLMService` back to
|
- Reverted the default model for `GeminiMultimodalLiveLLMService` back to
|
||||||
|
|||||||
@@ -74,11 +74,13 @@ class TranslationConfig(BaseModel):
|
|||||||
target_languages: List of target language codes for translation
|
target_languages: List of target language codes for translation
|
||||||
model: Translation model to use ("base" or "enhanced")
|
model: Translation model to use ("base" or "enhanced")
|
||||||
match_original_utterances: Whether to align translations with original utterances
|
match_original_utterances: Whether to align translations with original utterances
|
||||||
|
informal: Force informal language forms when available
|
||||||
"""
|
"""
|
||||||
|
|
||||||
target_languages: Optional[List[str]] = None
|
target_languages: Optional[List[str]] = None
|
||||||
model: Optional[str] = None
|
model: Optional[str] = None
|
||||||
match_original_utterances: Optional[bool] = None
|
match_original_utterances: Optional[bool] = None
|
||||||
|
informal: Optional[bool] = None
|
||||||
|
|
||||||
|
|
||||||
class RealtimeProcessingConfig(BaseModel):
|
class RealtimeProcessingConfig(BaseModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user