Skip to content

Fix false success in the example WebSocket file client - #4008

Merged
LauraGPT merged 1 commit into
mainfrom
codex/example-file-transcript-completion
Dec 2, 2026
Merged

LauraGPT merged 1 commit into
mainfrom
codex/example-file-transcript-completion

Conversation

@LauraGPT

@LauraGPT LauraGPT commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

The standalone file client bundled in this repository could exit successfully when the server sent only stopped, closed without returning a transcript, or sent a final before the upload finished. This ports the client fix from QwenAudio/Fun-ASR#182. No change to model inference, the server, or its per-utterance COMMIT protocol.

  • Validate START and optional HOTWORDS acknowledgements before sending audio. After the upload and STOP, require an actual final response containing a list of sentences; an empty list is valid.
  • Bound the wait for each acknowledgement and the final reply; handle interrupts and conflicting input modes without accidentally activating the microphone. The guide now includes a CPU-only client setup and a file already present in the checkout.
  • Add 22 regression cases to the existing Python 3.10/3.12 example workflow.

Verification: On the original client, five of six selected cases failed; the normal complete session passed. On the candidate, all 59 example checks and eight existing server STOP/COMMIT checks passed on an isolated Shanghai CPU environment. The documented CLI sent the same 192,000 PCM bytes and got a 6,000 ms final from the actual packaged WebSocket handler in each endpoint mode. These loopback checks used a fixture VAD/recognizer, not real model inference.

Validate acknowledgements and await a final result after all file audio and STOP. Keep per-utterance COMMIT behavior on the server unchanged.

Signed-off-by: LauraGPT <zhifu.gzf@alibaba-inc.com>
@LauraGPT
LauraGPT merged commit 694a931 into main Dec 2, 2026
2 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.

1 participant