Fix SonioxSTTService crash when language_hints contains plain strings (#4045)

Refactor language_to_soniox_language to use resolve_language + LANGUAGE_MAP
pattern consistent with other services. Fix resolve_language fallback to use
str(language) instead of language.value so plain strings don't crash.
This commit is contained in:
Mark Backman
2026-03-16 19:45:03 -04:00
parent b437cbe126
commit 3b8d040e41
3 changed files with 72 additions and 10 deletions

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

@@ -0,0 +1 @@
Fixed `SonioxSTTService` crash when `language_hints` contains plain strings instead of `Language` enum values.