Continuous Speech Recognition Android - Without Gaps

后端 未结 3 1546
暗喜
暗喜 2021-02-08 06:22

I have an activity that implements RecognitionListener. To make it continuous, every time onEndOfSpeech() I start the listener again:

s         


        
3条回答
  •  既然无缘
    2021-02-08 06:51

    I'll recommend using CMUSphinx to recognize speech continuously. To achieve continuous speech recognition using google speech recognition api, you might have to resort to a loop in a background service which will take too much resources and drains the device battery.

    On the other hand, Pocketsphinx works really great. It's fast enough to spot a key phrase and recognize voice commands behind the lock screen without users touching their device. And it does all this offline. You can try the demo.

    If you really want to use google's api, see this

提交回复
热议问题