my client is passing the audio at 1600 sample rat...
# ask-ai
s
my client is passing the audio at 1600 sample rate, and in agent i tryed to save it , but i observed its playback speed is slow, and jittery feeling so is the agent is not recieving the audio at 16000 sample rate??, is it gettign in any other sample rate from room??
t
Thanks for reaching out, Rahul. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks so much for reaching out! LiveKit supports audio at a 16,000 Hz (16kHz) sample rate and takes care of sample rate conversion automatically to make sure everything works smoothly across different devices and participants. If your client is sending audio at 16kHz, it should be processed correctly. That said, if you’re experiencing playback issues like slow speed or jittery audio, it might mean there’s a hiccup in how the audio is being processed or saved on the agent side. To help us get to the bottom of this, could you please confirm a few things for me? • What sample rate is being used to save or process the audio on the agent side? • Are there any manual resampling steps happening before the audio is saved? • Is this issue happening with all audio files, or only with some specific ones? Knowing these details will really help us figure out if the issue is with the audio handling or somewhere else in the workflow. Looking forward to your reply! Sources: webrtc-sys/include/livekit/audio_resampler.h | AI Agents Framework | livekit/livekit_composite | DeepWiki | Python Agents Core Architecture | livekit/livekit_composite | DeepWiki | Tests/LiveKitCoreTests/AVFoundation/AudioMixRecorderTests.swift | livekit-agents/livekit/agents/utils/audio.py