alphacep / vosk-android-demo

Offline speech recognition for Android with Vosk library.
Apache License 2.0
714 stars 187 forks source link

Could I use wake-up word to start recognizing? #173

Open JobQian opened 2 years ago

JobQian commented 2 years ago

How to use the wake-up word?

WuerfelDev commented 2 years ago

It seems like this is a privilege of system apps :(

The impact of these changes is as follows:

  • Nonsystem apps using the AlwaysOnHotwordDetector class fail to compile against the Android 12 API because the API was removed from the public surface.
  • Existing system apps using the AlwaysOnHotwordDetector class might be denied from using sound trigger features at runtime. To address this issue and allow these apps to access the microphone through sound trigger, declare the RECORD_AUDIO and CAPTURE_AUDIO_HOTWORD permissions for these apps.

https://source.android.com/setup/start/android-12-release#alwaysonhotworddetector