Skip to content

Expose experimental Nemotron language guidance - #117

Merged
ivan-digital merged 1 commit into
mainfrom
feat/android-language-guide
Nov 10, 2026
Merged

ivan-digital merged 1 commit into
mainfrom
feat/android-language-guide

Conversation

@ivan-digital

Copy link
Copy Markdown
Member

Summary

Expose optional Nemotron soft language guidance through LanguageGuideConfig, TranscriberConfig.languageGuide and StreamingTranscriber.setLanguageGuide. The default remains Automatic with no guide. Kotlin snapshots the expected locales, JNI serializes configuration with inference, and native validation rejects unsupported locales or an open stream without partially replacing the prior guide.

A language selection clears the guide. Empty and zero-weight guides retain the previous one-hot path. Constructor setup failure closes the native handle. Document fractional conditioning as experimental, with possible recognition regressions and no vocabulary restriction or extra model. Update dependency snippets in every README translation for 0.0.28.

Validation

  • Unit tests: SDK 187, app demo 23, control demo 42; all passed.
  • Physical Samsung SM-S918B / Android 16: 14 instrumented tests passed using optimized native libraries. Coverage includes streaming ASR, cancellation, speaker activity, embeddings, existing batch-model cleanup and the new guide's seven-decode equivalence/validation test.
  • The same guide test also passed with debug native libraries.
  • Direct am instrument runs preserve the device test package and its cached data; no capture or playback was started.
  • Core unit suite: 43 CTest executables passed. Public core dependency is advanced to the reviewed guide implementation.

Review

The API remains a thin Kotlin/JNI wrapper; no product policy or new network path is added. Mutex/lifecycle and invalid-input review found no merge blocker. Physical runtime coverage verifies integration rather than a multilingual accuracy improvement.

@ivan-digital
ivan-digital merged commit 66059f2 into main Nov 10, 2026
5 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