Merge pull request #4024 from pipecat-ai/mb/fix-lang-enum-stt-tts

This commit is contained in:
Mark Backman
2026-03-16 21:08:48 -04:00
committed by GitHub
25 changed files with 76 additions and 82 deletions

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

@@ -0,0 +1 @@
- Fixed `Language` enum values (e.g. `Language.ES`) not being converted to service-specific codes when passed via `settings=Service.Settings(language=Language.ES)` at init time. This caused API errors (e.g. 400 from Rime) because the raw enum was sent instead of the expected language code (e.g. `"spa"`). Runtime updates via `UpdateSettingsFrame` were unaffected. The fix centralizes conversion in the base `TTSService` and `STTService` classes so all services handle this consistently.