Skip to content

Fix: Ensure consistent audio MIME type in LiveRequestQueue#5584

Closed
9chait9 wants to merge 1 commit intogoogle:mainfrom
9chait9:fix/issue-5552
Closed

Fix: Ensure consistent audio MIME type in LiveRequestQueue#5584
9chait9 wants to merge 1 commit intogoogle:mainfrom
9chait9:fix/issue-5552

Conversation

@9chait9
Copy link
Copy Markdown

@9chait9 9chait9 commented May 4, 2026

Fixes #5552

This PR addresses the intermittent APIError: 1007 None (Invalid Audio Format) occurring during active audio streaming with the Multimodal Live API. The fix explicitly sets the mime_type to "audio/pcm;rate=16000" when queuing audio blobs in LiveRequestQueue.send_realtime.

This change ensures that the audio format information is consistently and correctly communicated, mitigating potential issues where the type might be implicitly lost or misinterpreted downstream, which could lead to server-side validation failures.

@adk-bot adk-bot added the live [Component] This issue is related to live, voice and video chat label May 4, 2026
@adk-bot
Copy link
Copy Markdown
Collaborator

adk-bot commented May 4, 2026

Response from ADK Triaging Agent

Hello @9chait9, thank you for creating this PR!

Could you please include a testing plan section in your PR to describe how you will test this change? This will help reviewers to review your PR more efficiently. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

live [Component] This issue is related to live, voice and video chat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persistent APIError: 1007 None (Invalid Audio Format) in google-adk 1.31.1 using Vertex AI Live API

2 participants