Skip to content

feat(streaming): add acknowledge_silence param and Silence event - #254

Merged
ccampbell-aai merged 1 commit into
masterfrom
ccampbell/streaming-acknowledge-silence
Sep 16, 2026
Merged

ccampbell-aai merged 1 commit into
masterfrom
ccampbell/streaming-acknowledge-silence

Conversation

@ccampbell-aai

@ccampbell-aai ccampbell-aai commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the new streaming opt-in acknowledge_silence and the Silence message it turns on.

  • acknowledge_silence: Optional[bool] on RealTimeSessionParameters, so it works at connect time (StreamingParameters) and mid-stream (UpdateConfiguration / set_params).
  • New SilenceEvent (start_ms, end_ms — session-audio positions on the word-timestamp clock), exported from assemblyai.streaming.v3, added to EventMessage and StreamingEvents.Silence, and routed through the inbound-message dispatch.
  • Version bump 1.5.4 → 1.5.5.

Server contract: when enabled (U3Pro only), the server emits a Silence message roughly once per second while no speech is being transcribed. Gateway side is DeepLearning #20036; the ASR emitter is #20087.

Add the `acknowledge_silence` opt-in to `RealTimeSessionParameters`, so it
is available at connect time and mid-stream via `UpdateConfiguration`.
When enabled (U3Pro only), the server emits a `Silence` message roughly
once per second while no speech is being transcribed. Add the matching
`SilenceEvent` (`start_ms`/`end_ms`), export it, route it through the
inbound-message dispatch, and cover both with unit tests.

Bump version to 1.5.5.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@ccampbell-aai
ccampbell-aai marked this pull request as ready for review September 16, 2026 00:00

@bgotthold-aai bgotthold-aai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@ccampbell-aai
ccampbell-aai merged commit 6558a7d into master Sep 16, 2026
8 checks passed
@ccampbell-aai
ccampbell-aai deleted the ccampbell/streaming-acknowledge-silence branch September 16, 2026 14:28
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