millions-greece-12478
08/27/2025, 2:50 PMtall-airline-16756
08/27/2025, 2:50 PMtall-airline-16756
08/27/2025, 2:51 PMAudioStream from the subscribed track. This is a key step to start getting those audio frames.
• Track Type Verification: Double-check that the subscribed track is of type TrackKind.KIND_AUDIO. If it’s not, the agent might be missing out on valid audio streams.
• Audio Configuration: Confirm that the AudioStream is set up with the right sample rate and number of channels to match the track’s settings.
• Audio Processing Settings: Take a look at noise cancellation or other audio processing options—if they’re on but not configured correctly, they might be blocking the audio frames.
• Source Filtering: If the agent is filtering for specific sources like SOURCE_MICROPHONE, make sure the subscribed track matches what’s expected.
• Asynchronous Task Management: Check that the task reading from the AudioStream iterator is actually running and hasn’t been stopped too soon.
Going through these should help pinpoint what’s going on. If you want, I’m here to help you dig into any of these points!
Sources: Speech & Audio Processing | livekit/livekit_composite | DeepWiki | stream_audio.py | Receiving and publishing tracks | LiveKit Docs | Audio and video | LiveKit Docs | livekit-agents/livekit/agents/voice/agent_session.py