steep-balloon-41261
09/16/2025, 7:18 AMtall-airline-16756
09/16/2025, 7:18 AMtall-airline-16756
09/16/2025, 7:19 AMinput_audio_transcription parameter needs to be a properly structured instance of the InputAudioTranscription class when using the specified API version. This class requires at least the model field to be set to a valid transcription model.
To help you fix this, please make sure that input_audio_transcription is created as an instance of InputAudioTranscription with the model field set to "whisper-1", which is the supported transcription model. Here's a simple example to guide you:
from livekit.plugins.openai import realtime
from openai.types.beta.realtime.session import InputAudioTranscription
# Create the InputAudioTranscription instance with the required model
input_audio_transcription = InputAudioTranscription(model="whisper-1")
session = AgentSession(
llm=realtime.RealtimeModel.with_azure(
azure_deployment="<model-deployment>",
api_version="2024-10-01-preview",
input_audio_transcription=input_audio_transcription,
),
)
If you'd rather disable input audio transcription completely, you can simply set input_audio_transcription to None in the RealtimeModel configuration. Please don’t hesitate to reach out if you have any questions or need a hand with this—I’m here to help!
Sources: livekit-agents/livekit/agents/llm/realtime.py | Azure OpenAI Realtime API and LiveKit | LiveKit Docs | examples/src/realtime_turn_detector.tsbreezy-city-58391
09/16/2025, 7:25 AMtall-airline-16756
09/16/2025, 7:25 AMbreezy-city-58391
09/16/2025, 7:30 AMtall-airline-16756
09/16/2025, 7:31 AMinput_audio_transcription in your code?
• Which plugin or service are you using (for example, OpenAI, Google, etc.)?
Having these details will really help us understand why the error is happening only in LiveKit Cloud. Thanks so much for sharing!
Sources: livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realti... | agent/main.pybreezy-city-58391
09/16/2025, 7:31 AMtall-airline-16756
09/16/2025, 7:32 AMOPENAI_API_KEY, GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION) are properly set in LiveKit Cloud. Sometimes, these might be automatically resolved on your local machine, but the cloud needs them explicitly configured.
2. Input Audio Transcription Configuration: Make sure that input_audio_transcription is either set to None if you want to disable it, or correctly set up with a valid model. For Azure OpenAI, the model should be "whisper-1".
3. Authentication: Check that the API key you’re using in the cloud has the right permissions for transcription services.
4. Backend-Specific Settings: If you’re using Azure OpenAI, confirm the deployment includes the correct api_version and azure_endpoint.
These little differences between your local and cloud setups often cause hiccups like this. If you want, I’m happy to help you go through these settings step-by-step to get everything running smoothly.
Sources: livekit-plugins/livekit-plugins-baseten/livekit/plugins/baseten/stt.py