i am following the node.js example at <https://doc...
# ask-ai
e
i am following the node.js example at https://docs.livekit.io/agents/start/voice-ai/ i did start my agent and it shows connected in Agent Playground. However, I do not hear greeting message as per the code. Furthermore. I see the following api error . Please help
Copy code
error: {
   "type": "server_error",
   "code": null,
   "message": "Input transcription failed for item 'item_CFrVHICLXNsiyl8ieY5HQ'.",
   "param": null
  }
t
Thanks for reaching out, abhinav. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like the error message is pointing to a problem with input transcription. Let’s work through some steps together to get this sorted out: 1. Check OpenAI API Key: Please double-check that your API key is correctly set up in your session configuration. 2. Inspect Error Details: Take a look at the error type and message—they often give helpful hints, like if there are rate limits or server issues. 3. Verify Audio Input: Make sure your audio input is in PCM16 format, with a sample rate of 24,000 Hz and a mono channel. 4. Review STT Model Configuration: Confirm that the transcription model (like 'whisper-1') is enabled and properly passed to the API. 5. Logging: Check your logs for the 'input_speech_transcription_failed' event—this can help pinpoint the exact problem. 6. Network and Audio Quality: Ensure your network connection is stable and the audio input is clear, without background noise. Once you’ve gone through these, please let me know if the issue is still there. I’m here to help you through the next steps! Sources: agents/src/voice/room_io/room_io.ts | SIP troubleshooting guide | LiveKit Docs | agent/main.py
e
how do i verify my audio format
t
Let's make sure your audio format is just right! Here’s a simple way to check: 1. Check the Format: Please confirm your audio is in PCM format if you're working with WAV files, as compressed WAV formats won’t work here. 2. Sample Rate: For the input audio, the sample rate should be 16kHz mono, and for output audio, it should be 24kHz mono. 3. Use Tools: You can use handy tools like PyAV's
av.open()
to peek inside your audio file’s container and codec. This helps ensure it’s PCM and meets the specs we need. 4. Supported Formats: Double-check that your audio format is one of the supported ones—PCM, MP3, WAV, AAC, FLAC, Opus, OGG, or MULAW—depending on your setup. If you’d like, I’m here to help you verify or convert your audio format anytime. Just let me know! Sources: Speech & Audio Processing | livekit/livekit_composite | DeepWiki | livekit-plugins/livekit-plugins-speechmatics/livekit/plugins/speechmatics/t... | Rime integration guide | LiveKit Docs