Files
Kevin Brown 3bc886a6c4 Add SpeechService constructor accepting a caller-supplied AudioRecord (#2044)
Allows callers to control the audio input device - for example, to pin
recording to the built-in microphone when an external USB camera without
a microphone causes Android to silently select the wrong input source.

The new overload (Recognizer, float, AudioRecord) mirrors the existing
(Recognizer, float) signature. Ownership semantics differ: the caller
supplies and owns the recorder, so on failure this constructor throws
without releasing it, leaving cleanup to the caller.

Co-authored-by: Kevin Brown <git@whidit.com>
2026-06-04 20:54:55 +03:00
..