From b1a88af43c56ba07d646ada0061b4246b1d37cb0 Mon Sep 17 00:00:00 2001 From: Dan Berg <61684965+wg-daniel@users.noreply.github.com> Date: Tue, 3 Jun 2025 17:10:52 +0200 Subject: [PATCH 1/3] Add informal to Gladia TranslationConfig --- src/pipecat/services/gladia/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pipecat/services/gladia/config.py b/src/pipecat/services/gladia/config.py index 275554418..da7907041 100644 --- a/src/pipecat/services/gladia/config.py +++ b/src/pipecat/services/gladia/config.py @@ -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): From 71d121aeb959df74eafd86f9706543816adeb61e Mon Sep 17 00:00:00 2001 From: Dan Berg <61684965+wg-daniel@users.noreply.github.com> Date: Tue, 3 Jun 2025 17:15:29 +0200 Subject: [PATCH 2/3] Update CHANGELOG.md explaining informal on Gladia TranslationConfig --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf47be81a..02c1d2c1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 `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 From 094e2f8151084aa9cacd356bbca90f5ba6d2ffe7 Mon Sep 17 00:00:00 2001 From: Dan Berg Date: Tue, 3 Jun 2025 17:21:51 +0200 Subject: [PATCH 3/3] Fix formatting --- src/pipecat/services/gladia/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/services/gladia/config.py b/src/pipecat/services/gladia/config.py index da7907041..4bcde35bb 100644 --- a/src/pipecat/services/gladia/config.py +++ b/src/pipecat/services/gladia/config.py @@ -74,7 +74,7 @@ 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 + informal: Force informal language forms when available """ target_languages: Optional[List[str]] = None