Repository navigation
Fix file client reporting success before a final transcript - #182
Merged
Merged
Conversation
Check session acknowledgements before sending PCM and distinguish an empty final transcript from an interrupted upload. Bound acknowledgement and final-result waits while allowing long files. Exercise the client against loopback without a microphone or speech model. Signed-off-by: LauraGPT <zhifu.gzf@alibaba-inc.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The file CLI previously discarded START/HOTWORDS replies and returned exit 0 on a clean connection close or a stopped event without the final transcript. Sending both --file and --mic also selected microphone mode instead of rejecting ambiguity.
Require the documented acknowledgements before sending PCM. After the complete file and STOP, accept a final sentences list (including an empty one); reject incomplete or out-of-order completion. The positive --response-timeout is per acknowledgement / after STOP, not a whole-recording limit. File interruption returns 130, and file/mic inputs are exclusive. No changes to the speech model, server wire format, resampling, or microphone capture.
Includes real loopback CLI regression cases and an updated Chinese guide using the sample WAV bundled in this repository. The offline Shanghai run passed 86 client, example and related server-contract tests. The regression-first run had 11 failures and one positive control; earlier exit-0 cases included wrong acknowledgements, premature closure and missing final results. Responses in the wire tests are fixtures, not acoustic inference. No model download, microphone recording or external audio service.