Skip to content

feat: mid-stream language_codes updates, Opus streaming encodings, sync connection pre-warming (v0.64.25)#211

Merged
bgotthold-aai merged 1 commit into
masterfrom
1D7569FD6C40A22DDB50154A9AE3A8C1
Jul 3, 2026
Merged

feat: mid-stream language_codes updates, Opus streaming encodings, sync connection pre-warming (v0.64.25)#211
bgotthold-aai merged 1 commit into
masterfrom
1D7569FD6C40A22DDB50154A9AE3A8C1

Conversation

@ccampbell-aai

@ccampbell-aai ccampbell-aai commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Sync from the internal repo (2026/07/03), releasing v0.64.25.

Streaming

  • Mid-stream language steering: language_codes moved to StreamingSessionParameters, so it can now be updated mid-stream via client.set_params(StreamingSessionParameters(language_codes=["es"])) — no reconnect needed. Pass [] to clear steering and restore the model's default multilingual code-switching (Universal-3.5 Pro Streaming only). Connect-time behavior is unchanged.
  • language_codes connect parameter (recommended): steers transcription toward a set of languages while allowing native code-switching among them. The singular language_code is deprecated (still supported) — pass a single-element list instead.
  • Opus encodings: encoding="opus" (raw packet-per-message) and encoding="ogg_opus" accept compressed Opus audio; sample_rate is ignored for both since the Opus stream is self-describing.

Sync transcription

  • SyncTranscriber.warm(): pre-opens the HTTP connection so the first transcribe() skips DNS/TCP/TLS setup on the critical path. New settings.keepalive_expiry controls how long idle pooled connections are kept.

Tests

  • Wire-level unit tests for mid-stream steer/clear via set_params, connect-time language_codes, Opus encodings, and connection pre-warming.

Comment thread assemblyai/streaming/v3/models.py
Comment thread assemblyai/streaming/v3/models.py
@ccampbell-aai ccampbell-aai changed the title chore: sync sdk code with DeepLearning repo Sync from internal repo (2026/07/02) Jul 2, 2026
@bgotthold-aai bgotthold-aai force-pushed the 1D7569FD6C40A22DDB50154A9AE3A8C1 branch 2 times, most recently from e4dc50f to 0026959 Compare July 3, 2026 14:17
GitOrigin-RevId: e75527160d41d82d1fe4747445db14cd88af3b02
@bgotthold-aai bgotthold-aai force-pushed the 1D7569FD6C40A22DDB50154A9AE3A8C1 branch from 0026959 to 02dee09 Compare July 3, 2026 14:23
@bgotthold-aai bgotthold-aai changed the title Sync from internal repo (2026/07/02) chore: sync sdk code with DeepLearning repo Jul 3, 2026
@bgotthold-aai bgotthold-aai changed the title chore: sync sdk code with DeepLearning repo feat: mid-stream language_codes updates, Opus streaming encodings, sync connection pre-warming (v0.64.25) Jul 3, 2026
@bgotthold-aai bgotthold-aai requested a review from gsharp-aai July 3, 2026 14:29
@bgotthold-aai bgotthold-aai merged commit c8cdb0e into master Jul 3, 2026
7 checks passed
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.

3 participants