Repository navigation
fix(transcription): NVIDIA streams again, and NVIDIA and ElevenLabs publish each word of a long segment once - #1479
shashank03-dev wants to merge 6 commits into
Conversation
ASRService has streaming_response_generator, not streaming_recognize, so every NVIDIA stream failed and no audio reached NVIDIA.
Riva's interim text is the whole utterance so far, so once it passed the aggregator's 50 word or 15 s limit every later result was finalized again and listeners saw the same text repeated. Only the words not yet published now go to the aggregator, in order.
Scribe's partial transcript is the whole segment so far and its commit repeats all of it, so a segment past the aggregator's limits was published many times (a 120 word segment came out as 16 finals). The words-not-yet-published logic from the NVIDIA fix moves to RunningTranscript in the aggregator, and both providers use it.
…paces Japanese, Chinese and Thai put no spaces between words, so after a long segment was cut the rest of it was dropped until the next segment.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Reviewer's GuideAPIAdd
Uses of the APIRoute NVIDIA and ElevenLabs interim and final results through
DocumentationUpdate the transcription map to document the new running-transcript behavior and the
TestsAdd provider and aggregator tests for NVIDIA streaming, avoiding duplicate long-segment finals, clearing completed lines, and preserving text across unspaced-script cuts.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Fixes #1478
NVIDIA captions never started because the provider called
streaming_recognize(), which nvidia-riva-client doesn't have. It now callsstreaming_response_generator(). NVIDIA and ElevenLabs also resend the whole segment on every result, so once a segment passed the 50 word or 15 s limit every later result was finalized again. A newRunningTranscriptin the aggregator passes on only the words not yet published, in order, and both providers use it. In scripts without spaces (Japanese, Chinese, Thai) the text that grows onto the last published word is passed on too.Who sees what: listeners in a room that uses NVIDIA or ElevenLabs. Before, NVIDIA gave no captions, and with only the method fixed a 26 s clip gave 41 final lines. Now the same clip gives 2 captions and a 120 word ElevenLabs segment gives 3, with every word once.
What does not change: the other providers.
handle_partialnow returns whether its limits made the text final, and other callers ignore it.Limits: ElevenLabs was checked against its documented message format, not a live key. A long segment is cut by word count, so if the provider later rewrites words it already sent ("twenty five" to "25"), one word at the cut can be lost or repeated.
Depends on: nothing. Split out of #1474 as asked. Merge order: this PR, then #1480, then #1481.
Tests: NVIDIA and ElevenLabs tests for long segments with fast and slow publishing, unspaced scripts, the Riva method and
handle_partial's return value. All fail ondev. Full suite 3843 passed.Checked for real: NVIDIA Parakeet on NVIDIA's cloud with a real key. On
devevery stream fails. With the fix a 26 s clip came back as 2 clean captions, and a 90 s run through the portal saved 5 captions with no repeats.This recording covers the whole split (#1479, #1480 and #1481).
Before (
dev): a listener is live on the English booth, but the event page has no Usage tile, and/workspace/events/1/usage/and the CSV export both return 404.1166-before.mp4
After: with a listener on English audio and German AI translation, the new Usage page shows transcription, characters translated, listening and listener connections. Listening in from Mission Control on English adds no listener connection. The CSV returns 200 for the event owner and 403 for a room coordinator.
1166-after.mp4