bulky-yak-50122
09/01/2025, 7:16 AMtall-airline-16756
09/01/2025, 7:16 AMtall-airline-16756
09/01/2025, 7:17 AMAudioTranscriptionConfig doesn’t quite match what’s expected. Here’s how you can fix it:
• Make sure you’re using the right field names. For instance, use language instead of language_code.
• Only include supported fields like model and language, both as strings. Try to avoid any extra or unsupported keys.
• If you don’t need transcription, just set the field to null.
• Double-check that the SDK version you’re using supports the fields and structure you’ve got in your configuration.
Here’s an example to help:
input_audio_transcription = types.AudioTranscriptionConfig(
model='gemini-2.0-flash-transcribe',
language='en-US'
)
If you have any more questions or need a hand with this, just let me know—I’m here to help!
Sources: plugins/openai/src/realtime/realtime_model.ts | livekit-plugins/livekit-plugins-speechmatics/livekit/plugins/speechmatics/s...bulky-yak-50122
09/01/2025, 7:27 AMinput_audio_transcription=types.AudioTranscriptionConfig( language_code="en-US" ),
how to set this up, can you share import statements for thistall-airline-16756
09/01/2025, 7:28 AM