Fix: Ensure consistent audio MIME type#5585
Conversation
|
Response from ADK Triaging Agent Hello @9chait9, thank you for creating this PR! To help reviewers better understand and test your fix, could you please add a This information will help reviewers to review your PR more efficiently. Thanks! |
|
Hi @adk-bot, thank you for the feedback! A detailed testing plan has already been included in the PR description. You can find it under the 'Testing Plan' section. Regarding logs/screenshots, this is an internal fix related to MIME type handling, which isn't easily demonstrated with screenshots. If specific logs are needed, please let me know, and I can provide them. |
Fixes #5552
This PR addresses issue #5552 by ensuring that the
LiveRequestQueue.send_realtimemethod consistently sets the audio MIME type. If atypes.Blobis passed without an explicitmime_type, it will now default to 'audio/pcm;rate=16000'. Existingmime_typevalues will be preserved.Testing Plan
LiveRequestQueueand a component that sends audio blobs.LiveRequestQueue.send_realtimewithout specifying themime_typein thetypes.Blobobject.LiveRequestQueueimplementation) to confirm that themime_typeheader or field for the audio blob is automatically set to 'audio/pcm;rate=16000'.LiveRequestQueue.send_realtimewith an explicitly providedmime_type(e.g., 'audio/opus').mime_type('audio/opus') is preserved and used.