Skip to content

feat(realtime): add support for target streaming delay in realtime transcription#376

Merged
jean-malo merged 2 commits intomainfrom
feat/v2-realtime
Feb 26, 2026
Merged

feat(realtime): add support for target streaming delay in realtime transcription#376
jean-malo merged 2 commits intomainfrom
feat/v2-realtime

Conversation

@jean-malo
Copy link
Contributor

This commit introduces the ability to specify a target streaming delay in milliseconds for realtime transcription sessions. The changes include:

  1. Adding a new parameter target_streaming_delay_ms to the realtime transcription API
  2. Updating the connection management to handle the new delay parameter
  3. Adding support for audio flushing to ensure proper handling of streaming delays
  4. Creating a new example demonstrating dual-delay transcription with two parallel streams
  5. Improving error handling for microphone access and PyAudio loading

The changes allow for more precise control over the latency/accuracy tradeoff in realtime transcription, enabling use cases that require different streaming delays for different purposes.

…anscription

This commit introduces the ability to specify a target streaming delay in milliseconds for realtime transcription sessions. The changes include:

1. Adding a new parameter `target_streaming_delay_ms` to the realtime transcription API
2. Updating the connection management to handle the new delay parameter
3. Adding support for audio flushing to ensure proper handling of streaming delays
4. Creating a new example demonstrating dual-delay transcription with two parallel streams
5. Improving error handling for microphone access and PyAudio loading

The changes allow for more precise control over the latency/accuracy tradeoff in realtime transcription, enabling use cases that require different streaming delays for different purposes.
@louis-sanna-dev louis-sanna-dev self-requested a review February 26, 2026 10:30
Copy link
Contributor

@louis-sanna-dev louis-sanna-dev left a comment

Choose a reason for hiding this comment

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

Thanks! 🎶

@louis-sanna-dev
Copy link
Contributor

@jean-malo jean-malo merged commit 7cb12a9 into main Feb 26, 2026
9 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.

2 participants