feat(streaming): add universal-3-6 speech model - #253
Open
zkleb-aai wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
zkleb-aai
force-pushed
the
zkleb-aai/streaming-universal-3-6
branch
from
September 11, 2026 22:02
91f961a to
3d31c16
Compare
aurpsis-aai
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
universal-3-6to the streamingSpeechModelenum, alongside the existinguniversal-3-6-pro. This is the non-pro tier of the same generation; the enum previously had no way to select it, so callers had to bypass the type and pass a raw string.Mirrors #233, which added
universal-3-6-pro, and matches assemblyai-node-sdk#182, which shipped the same model in 4.41.1.Changes
assemblyai/streaming/v3/models.py— adduniversal_3_6 = "universal-3-6"toSpeechModeltests/unit/test_streaming.py— assert the model reaches the connection URL asspeech_model=universal-3-61.5.2→1.5.3Usage
Testing
pytest tests/unit— 651 passedruff check/ruff format --checkcleanspeech_model=universal-3-6returns aBeginframe and streamsTurnevents with accurate transcripts, while an invalid model name returns anErrorframe — so the service recognizes this model rather than silently ignoring the parameter🤖 Generated with Claude Code