Skip to content

Update asr message type#133

Merged
openminddev merged 2 commits into
mainfrom
update-asr-message-type
Jun 12, 2026
Merged

Update asr message type#133
openminddev merged 2 commits into
mainfrom
update-asr-message-type

Conversation

@YuchengZhou821

Copy link
Copy Markdown
Contributor

This pull request updates the audio streaming input handling to support a new binary message format with an optional JSON header, while maintaining compatibility with legacy raw PCM audio streams. It also adds a new dependency for Prometheus metrics.

Audio stream input handling improvements:

  • Added the _parse_binary static method to audio_stream_input.py to support decoding a binary audio message format with a JSON header specifying the sample rate; falls back to legacy handling if the header is invalid.
  • Updated handle_ws_incoming_message to use _parse_binary, supporting both the new binary format and legacy raw PCM audio streams.
  • Imported the struct module to enable parsing of binary message headers.

Dependency updates:

  • Added prometheus_client to the list of installed Python packages in docker/Dockerfile.riva to support metrics collection.

@openminddev openminddev merged commit 6dd9ad4 into main Jun 12, 2026
7 checks passed
@openminddev openminddev deleted the update-asr-message-type branch June 12, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants