Skip to content

feat(speech): languageId.reportOutOfSet reports an out-of-allowlist language - #619

Merged
akirilyuk merged 3 commits into
mainfrom
feature/lid-report-out-of-set
Nov 19, 2026
Merged

akirilyuk merged 3 commits into
mainfrom
feature/lid-report-out-of-set

Conversation

@akirilyuk

Copy link
Copy Markdown
Owner

Summary

  • Adds languageId.reportOutOfSet (default false) to the Rust config, the NAPI object, the SDK type and VoiceAgent.
  • With an allowlist, a language that is still outside the list after the end-of-utterance second pass and beyond allowlistMaxGap is emitted as user_language with the top language instead of language_id_skipped (undetermined). Hosts can use it to announce an unsupported language.
  • The second pass, the in-set decision and the emit dedupe are unchanged; there is one send path, and the flag off keeps today's behaviour.

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_pass in crates/speech/tests/language_id_nonblocking_test.rs.

Verified locally and in CI; no extra manual steps.

…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.
@akirilyuk
akirilyuk merged commit f440cef into main Nov 19, 2026
20 checks passed
@akirilyuk
akirilyuk deleted the feature/lid-report-out-of-set branch November 19, 2026 08:28
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