realtime WS: commit never yields .completed for utterances >= ~1s (0.5s works)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp
調査の方向性
Start with server/http/http_server.cpp, especially the realtime commit handler and the streaming finish path. Reproduce the issue with the raw WebSocket client using utterances from 0.5 to 2.0 seconds, then inspect how longer streams and endpointing handle finalization. Done means longer utterances emit committed and completed events, with endpointing no longer stalling.
索引モデルが issue の本文から書いたものです。
説明
Summary
The realtime WebSocket transcription path in nemo-speech serve 0.1.0 never emits .completed (or input_audio_buffer.committed) after input_audio_buffer.commit once the streamed utterance reaches ~1 second or more. At 0.5 s it works (+0.19 s finalization); at 1.0 s, 1.5 s, and 2.0 s it hangs forever. Short-utterance success shows the protocol handling is correct, so this looks length-dependent in the streaming finish path.
A second, possibly related symptom: with --asr.endpointing.enable=true and 2 s of trailing zero-PCM silence, no endpoint .completed ever fires and audio_processed stalls partway through the stream.
Environment
- Binary:
nemo-speech 0.1.0release archivenemo-speech-0.1.0-linux-x86_64-cuda.tar.gz - OS/GPU: NixOS 26.11, NVIDIA T1000 4 GB, driver 595.91, CUDA backend (
backend=CUDA0) - Model:
nemotron-speech-streaming-en-0.6b.q8_0.gguf(665 MiB) - Serve:
nemo-speech serve --asr-model <gguf> --asr.batching.state_arena_slots 1 --host 127.0.0.1 --port 8080 - Note: default arena slots OOM (
cudaMalloc failed: out of memory) with ~2 GB already resident on the 4 GB card;state_arena_slots 1was required to run at all.
Repro
Raw WebSocket client (stdlib only, masked client frames), repeated per trial on a fresh connection:
GET /v1/realtimehandshake, receivesession.created.- Send
{"type": "session.update", "session": {"sample_rate": 16000, "language": "en-US"}}, receivesession.updated. - Stream 16 kHz mono PCM16 as binary frames in 100 ms (3200-byte) chunks, back-to-back.
- Send
{"type": "input_audio_buffer.commit"}. - Read events.
Audio: 16 kHz mono command utterances; trials used 0.5 s / 1.0 s / 1.5 s / 2.0 s prefixes of the same clip.
Observed
| Streamed audio | Result after commit |
|---|---|
| 0.5 s | .completed in +0.19 s, transcript "What?" (correct for the prefix) |
| 1.0 s | no committed, no .completed, no error (25 s wait) |
| 1.5 s | same hang |
| 2.0 s | same hang |
Mid-stream .delta events flow correctly in all cases (full transcript visible within ~0.3 s of arrival, ~6x realtime), so ingestion and decoding work; only finalization never surfaces. Endpointing variant (--asr.endpointing.enable=true --asr.endpointing.stop_history_eou_ms=800, utterance + 2 s trailing silence): audio_processed advances to ~2.0-2.2 s of a 2.66 s stream then stalls; no endpoint final ever arrives.
Additional observation: streaming tail words are unstable across runs on identical input ("Play some Kendrick Lam" vs "Play some Kendrick"), and trailing silence does not flush the remainder.
Notes
- Current
main'sserver/http/http_server.cppcommit handler (ensure_stream(); emit(stream->finish()); ...committed) is identical to 0.1.0, so this likely reproduces onmain(not built here; no toolchain on the test host). - Possibly related to #48 (streaming RNNT stall) and #40/#41 (EOU handling), but this repro uses endpointing off, no silence mid-stream, and fails deterministically on utterance length alone.
- 主要言語
- C++
- スター
- 181
- フォーク
- 42
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NVIDIA/NeMo-Speech.cpp のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
NVIDIA/NeMo-Speech.cpp#67 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 66/100
NVIDIA/NeMo-Speech.cpp#64 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
NVIDIA/NeMo-Speech.cpp#63 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
NVIDIA/NeMo-Speech.cpp#61 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
NVIDIA/NeMo-Speech.cpp#56 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
NVIDIA/NeMo-Speech.cpp の issue をすべて見る
似ている issue
-
agent:Windows bug code-review LOW testing
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信
-
[Cleanup] Include the public header in work_split.cpp対応中かも @blozano-tt が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tenstorrent/tt-metal#60850 ·
メンテナーはふだん 1 日以内に返信
-
Build: the CUDA backend fails without cuDNN instead of skipping the cuDNN shim (as the cuDF shim does)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
beehive-lab/TornadoVM#1248 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SimVascular/svZeroDSolver#253 ·
-
core: RAC_LLM_OPTIONS_DEFAULT.min_p disagrees with the IDL's annotated default対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug core p3
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
RunanywhereAI/runanywhere-sdks#1083 ·
メンテナーはふだん 5 日以内に返信