ambitious-keyboard-1611
10/15/2025, 1:08 PMtall-airline-16756
10/15/2025, 1:08 PMtall-airline-16756
10/15/2025, 1:10 PMLK_OPENAI_DEBUG environment variable to 1 to get detailed logs:
export LK_OPENAI_DEBUG=1
1. Verify API Key: Double-check that your OpenAI API key is correctly set, either through the apiKey parameter or the OPENAI_API_KEY environment variable.
2. Check Audio Format: Make sure your audio input is in PCM16 format, single channel, and sampled at 24,000 Hz for the best results.
3. Review Transcription Model: Confirm that the transcription model you’re using (like gpt-4o-mini-transcribe or whisper-1 for Azure) is available and properly configured.
4. Validate Audio Quality: Clear audio makes a big difference, so please ensure the input audio is clear and has minimal background noise.
5. Check WebSocket Connection: Since the Realtime API streams audio over WebSocket, a stable network connection is important to avoid interruptions.
If you’re still having trouble after trying these steps, feel free to share the specific error details from the ConversationItemInputAudioTranscriptionFailedEvent. I’m here to help you get this resolved!
Sources: plugins/openai/src/realtime/realtime_model.ts | examples/voice_agents/realtime_turn_detector.py