bulky-yak-50122
09/01/2025, 12:18 PMlivekit.plugins.google.beta.realtime.RealtimeModel
• Goal: Users speak in various languages (Hindi, Spanish, etc.) but transcripts should display in English
• Using AssemblyAI STT alongside the realtime model for transcript display
The Issue: In a previous support response (Aug 30, 12:07 AM), your team suggested using:
python
input_audio_transcription=types.AudioTranscriptionConfig(
language_code="en-US"
),
However, when I implement this, I get a validation error:
pydantic_core._pydantic_core.ValidationError: 1 validation error for AudioTranscriptionConfig
language_code
Extra inputs are not permitted [type=extra_forbidden, input_value='en-US', input_type=str]
Documentation Discrepancy: According to the current LiveKit documentation for Google Realtime Model, AudioTranscriptionConfig appears to be an empty configuration object, and parameters like language_code, translation, language_detection, etc. are not mentioned as available parameters.
Questions:
1. Parameter Availability: Does AudioTranscriptionConfig actually support language_code parameter? If so, which version/package should I be using?
2. Version Mismatch: Is this a documentation lag issue where newer features aren’t documented yet, or am I using an incompatible version?
3. Multilingual Approach: What’s the recommended approach for handling multilingual input with English transcript output when using Google Realtime Models? Should I:
◦ Set language parameters in the realtime model configuration?
◦ Handle translation at the STT level separately?
◦ Use Google’s built-in language detection/translation features?
4. Beta Plugin Status: Since the Google realtime plugin is in beta, are there known limitations or workarounds for multilingual scenarios?
Current Package Versions:
• livekit 1.0.12
• livekit-agents 1.2.3
• livekit-api 1.0.5
• livekit-blingfire 1.0.0
• livekit-plugins-assemblyai 1.0.20
• livekit-plugins-deepgram 1.0.18
• livekit-plugins-google 1.2.3
• livekit-plugins-noise-cancellation 0.2.1
• livekit-plugins-openai 1.0.22
• livekit-plugins-silero 1.2.3
• livekit-protocol 1.0.4
• google-api-core 2.25.1
• google-auth 2.40.3
• google-cloud-speech 2.33.0
• google-cloud-texttospeech 2.27.0
• google-genai 1.32.0
• googleapis-common-protos 1.70.0
• livekit-plugins-google 1.2.3
Expected Behavior: User speaks in Hindi → Google Realtime Model processes conversation in Hindi → Transcript displays in English → Agent responds appropriately
Could you please clarify the correct implementation approach and whether the suggested language_code parameter should actually work? If there are version-specific requirements or alternative approaches, I’d appreciate guidance.
Thank you for your assistance.future-bird-45663
09/01/2025, 3:01 PMbulky-yak-50122
09/01/2025, 3:11 PMbulky-yak-50122
09/01/2025, 3:11 PMbulky-yak-50122
09/02/2025, 3:40 PMrefined-appointment-81829
09/02/2025, 3:49 PMbulky-yak-50122
09/02/2025, 3:50 PMrefined-appointment-81829
09/02/2025, 3:52 PMbulky-yak-50122
09/02/2025, 3:53 PMbulky-yak-50122
09/02/2025, 3:55 PMrefined-appointment-81829
09/02/2025, 4:06 PMlivekit-agents 1.2.3
livekit-api 1.0.5
livekit-blingfire 1.0.0
livekit-plugins-assemblyai 1.0.20
livekit-plugins-deepgram 1.0.18
livekit-plugins-google 1.2.3
livekit-plugins-noise-cancellation 0.2.1
livekit-plugins-openai 1.0.22
livekit-plugins-silero 1.2.3
livekit-protocol 1.0.4