Does the Google speech recognizer on Android need internet?

后端 未结 1 996
情话喂你
情话喂你 2021-01-13 04:13

I use the following code to invoke the voice recognizer by google:

// This is a demonstration of Android\'s built in speech recognizer

package com.example         


        
1条回答
  •  孤城傲影
    2021-01-13 04:36

    In jellybean the user needs to download the offline speech recognition package.

    This article sais:

    Previously, when you pressed the voice icon and spoke a command or query, Android had to digitize your voice, upload it to the cloud, process the waveform, turn it into text, and send the text back down to your phone. Now the phones are powerful enough that this can be built into the device, with no extra network I/O needed. As you can imagine this results in much faster voice recognition than previous versions.

    The app user will have to do this:

    1. Go to “Language and Input” in the Setting
    2. Tap on "Download offline speech recognition" under the "Voice Search"
    3. Choose the language pack you want your Android device to recognize
    4. Download the pack and enjoy the offline voice typing

    Another helper link:

    Google have restricted certain Jelly Bean devices from using the offline recognition due to hardware constraints.

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