Repository navigation
feat(speech): languageId.reportOutOfSet reports an out-of-allowlist language - #619
Merged
Merged
Conversation
…anguage With an allowlist, a language still outside the list after the end-of-utterance second pass and beyond allowlistMaxGap is emitted as user_language when reportOutOfSet is true, instead of language_id_skipped undetermined. Default false: unchanged.
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.
Summary
languageId.reportOutOfSet(defaultfalse) to the Rust config, the NAPI object, the SDK type andVoiceAgent.allowlist, a language that is still outside the list after the end-of-utterance second pass and beyondallowlistMaxGapis emitted asuser_languagewith the top language instead oflanguage_id_skipped(undetermined). Hosts can use it to announce an unsupported language.Tests
out_of_set_beyond_gap_reported_when_opted_in,out_of_set_beyond_gap_skipped_by_default,report_out_of_set_still_runs_second_passincrates/speech/tests/language_id_nonblocking_test.rs.Verified locally and in CI; no extra manual steps.