doing actions after sound recognization in android

前端 未结 1 1361
天涯浪人
天涯浪人 2020-12-07 06:29

please give me suggestion about this condition. is it possible in android that the device waits for special sound, and after it recognizes it, some actions happens. please t

相关标签:
1条回答
  • 2020-12-07 07:10

    It is called 'Continuous Speech Recognition'. If you try to use Android's built-in SpeechRecognizer api with infinite loop to wait for certain words or commands, it will drain to much battery.

    You can look at CMUSphinx tutorial, it's much faster and device-friendly as far as I know:

    http://cmusphinx.sourceforge.net/wiki/tutorialandroid

    0 讨论(0)
提交回复
热议问题