```2025-12-11 19:46:22,074 - ERROR livekit.plugins...
# ask-ai
a
Copy code
2025-12-11 19:46:22,074 - ERROR livekit.plugins.google - Gemini Realtime API error: received 1007 (invalid frame payload data) Cannot extract voices from a non-audio request.; then sent 1007 (invalid frame payload data)
 Cannot extract voices from a non-audio request.
t
Thanks for reaching out, Parth. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — you're seeing the Gemini Realtime error "1007 (invalid frame payload data) Cannot extract voices from a non-audio request." I’ll help troubleshoot that. What this means • Gemini expected audio frames but received missing, empty, or non-audio payloads, so it couldn't extract voice data. What you can check now • Is a microphone/audio track published by the participant/agent before the RealtimeModel starts? Confirm a valid mic track exists. • Are audio frames non-empty and correctly encoded (no all-zero frames)? Test by capturing a short known audio signal and verifying non-zero samples. • Are
RoomInputOptions
or equivalent set to enable audio input? Example:
room_options = room_io.RoomOptions(audio_input=True)
. • Any client-side noise suppression / AGC / virtual devices active (Krisp, OS-level filters)? Temporarily disable them to rule out silent/corrupted frames. • SDK/plugin versions: ensure LiveKit SDK and
livekit-agents[google]
/ Gemini plugin versions are compatible and up to date. If you can share one or more of the following I can give targeted next steps • How you publish audio (SDK + language and versions). • Snippet of code that initializes the room/agent and
RealtimeModel
. • Whether this happens immediately or intermittently, and a short log excerpt around the error. Which of those details can you share? Sources: Gemini Live API plugin | LiveKit docs | Understanding "silence detected on local audio track" warning | Vision | LiveKit Docs | Enhanced noise cancellation | LiveKit docs
a
• Snippet of code that initializes the room/agent and
RealtimeModel
.
t
Thanks — please paste the snippet that includes: 1. Agent/AgentSession and Room initialization. 2.
google.realtime.RealtimeModel
configuration (all parameters). 3. Room connection and audio publishing code (how you create/publish the mic track and any
RoomInputOptions
). 4. Any VAD/STT/turn_detection or modality changes. Also tell me: • SDK and plugin versions you're using. • Whether the error is immediate or intermittent. With that I’ll point out likely misconfigurations and give exact fixes. Sources: Gemini Live API plugin | LiveKit docs | Google AI and LiveKit | LiveKit Docs | Realtime model plugins | LiveKit Docs
a
full sample code
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
a
Copy code
{"level": "INFO", "name": "providers.realtime.google_realtime", "message": "Creating Google Realtime: {'model': 'gemini-2.5-flash-native-audio-preview-09-2025', 'modalities': [], 'input_audio_tran
scription': AudioTranscriptionConfig()}", "timestamp": "2025-12-11T19:58:13.116709+00:00"}