dograh/api/services/configuration
Joao Victor Cardoso dos Santos ade0ee9104
feat(openai-realtime): allow pinning input transcription language (#557)
The OpenAI realtime factory already reads `language` from the realtime
config, but builds `InputAudioTranscription()` without it, so the language
is silently dropped and the model auto-detects on every utterance.

On 8kHz telephony audio this misfires badly: in our production tests a
Brazilian Portuguese speaker was transcribed as English, French and Chinese
within a single call, which then corrupted downstream extraction.

Every other STT branch in `create_stt_service` already honours
`language` (Deepgram, Google, Cartesia, Dograh, Sarvam), and
`GoogleRealtimeLLMConfiguration` already exposes a `language` field for
Gemini Live. This brings the OpenAI realtime provider in line with both.

- expose `language` on `OpenAIRealtimeLLMConfiguration` (optional,
  defaults to None -> unchanged auto-detect behaviour)
- pass it through to `InputAudioTranscription`, which already accepts it

Verified against pipecat: the session now carries
`{"transcription": {"model": "gpt-realtime-whisper", "language": "pt"}}`.

Co-authored-by: Liberty Card <tecnologialibertycard@gmail.com>
2026-07-18 16:08:35 +05:30
..
options fix: fix speech to speech model transitions (#545) 2026-07-15 18:36:36 +05:30
__init__.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
ai_model_configuration.py fix: fix org scoped access for resources (#517) 2026-07-09 23:04:33 +05:30
check_validity.py feat(tts): add xAI as a Voice (TTS) provider (#476) 2026-07-08 09:05:43 +05:30
defaults.py feat: knowledge base functionality for the voice agent (#120) 2026-01-17 14:37:03 +05:30
masking.py feat: billing and credit management v2 (#429) 2026-06-12 14:55:30 +05:30
merge.py feat: billing and credit management v2 (#429) 2026-06-12 14:55:30 +05:30
registry.py feat(openai-realtime): allow pinning input transcription language (#557) 2026-07-18 16:08:35 +05:30
resolve.py feat: billing and credit management v2 (#429) 2026-06-12 14:55:30 +05:30