commit | 6a630f8e00a00ffd9b168e131d3f583cf930cda3 | [log] [tgz] |
---|---|---|
author | Andrea Ambu <andreaambu@google.com> | Fri Jun 25 10:46:39 2021 +0100 |
committer | Andrea Ambu <andreaambu@google.com> | Thu Jul 08 17:29:12 2021 +0000 |
tree | cbe1f872a2ad53eeea7ed88136e6ce2f51082772 | |
parent | 7058f9948fccca9556138ad48724796bb2baa944 [diff] |
speech: Add lenient SpeechRecognizer instantiation This change allows to test on-device listening via a temporary recognizer even in devices that do no support on device recognition. It moves the failure from the static SpeechRecognizer#createOnDeviceSpeechRecognizer to the instance #startListening. fail-on-listening Bug: 192586674 Test: atest CtsVoiceRecognitionTestCases with both config and no config Change-Id: Id722f4e5167132b76b4fbd5ea0c2ef7d19f15909