Merge pull request #4058 from pipecat-ai/mb/improve-stt-tts-language-code-robustness

fix: resolve raw language strings through Language enum for proper service conversion
This commit is contained in:
Mark Backman
2026-03-17 16:20:12 -04:00
committed by GitHub
4 changed files with 304 additions and 2 deletions

1
changelog/4058.fixed.md Normal file
View File

@@ -0,0 +1 @@
- Fixed raw language strings like `"de-DE"` silently failing when passed to TTS/STT services (e.g. ElevenLabs producing no audio). Raw strings now go through the same `Language` enum resolution as enum values, so regional codes like `"de-DE"` are properly converted to service-expected formats like `"de"`. Unrecognized strings log a warning instead of failing silently.