I am using the OpenAI realtime API and I keep rece...
# ask-ai
m
I am using the OpenAI realtime API and I keep receiving the following error:
Copy code
ERROR livekit.plugins.openai - OpenAI Realtime API failed to transcribe input audio {"room": "call", "error": "Error(code=None, message=\"Input transcription failed for item 'item_CACaKPAve5I14DcXKSgSU'.\", param=None, type='server_error')", "pid": 37147, "job_id": "AJ_zjE5ANLfhopa"}
t
Thanks for reaching out, Daniel. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like the OpenAI Realtime API had trouble transcribing the audio you provided. No worries though—here are some friendly tips to help you sort it out: • Audio Format and Sample Rate: Make sure your audio is in PCM16 format at 24,000 Hz. Don’t worry if it’s not—LiveKit’s agent usually handles resampling automatically. • Audio Volume and Clarity: Double-check that your audio is clear and loud enough. Sometimes, low-quality sound can cause transcription hiccups. • Audio Chunking: Try to send audio chunks that are at least 100 milliseconds long, since shorter bits might not get processed properly. • Transcription Model Configuration: The agent typically uses the 'gpt-4o-mini-transcribe' model by default. If your situation calls for something different, it’s worth verifying your model setup. • Connection and Retries: The agent will log if transcription fails but doesn’t retry automatically. You might want to add retry logic in your app just in case. If this keeps happening, it could be a temporary glitch on OpenAI’s side. Keep an eye on it, and maybe try the transcription again after a little while. Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime... | plugins/openai/src/realtime/realtime_model.ts