How does Google Keep do Speech Recognition while saving the audio recording at the same time?

前端 未结 2 1204
粉色の甜心
粉色の甜心 2021-01-02 10:14

Android\'s SpeechRecognizer apparently doesn\'t allow to record the input on which you\'re doing speech recognition into an audio file. That is, either you record voice usin

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 10:24

    Google Keep launches RecognizerIntent with certain undocumented extras and expects the resulting intent to contain the URI of the recorded audio. If RecognizerIntent is serviced by Google Voice Search then it all works out and Keep gets the audio.

    See record/save audio from voice recognition intent for more information and a code sample that calls the recognizer in the same way as Keep (probably) does.

    Note that this behavior is not part of Android. It's simply the current undocumented way of how two closed-source Google apps communicate with each other.

提交回复
热议问题