Start Android keyboard in voice recognition mode

前端 未结 1 394
我在风中等你
我在风中等你 2020-12-20 21:47

I would like to open the keyboard programmatically and have it start doing voice recognition instantly without the user pressing the mic button. I know how to implement Spe

相关标签:
1条回答
  • 2020-12-20 22:34

    Unfortunately this is not possible, but it very much should be.

    I went searching for a way to do this when I needed to use offline speech recognition as a 'hack' - but I couldn't achieve it.

    I can only suggest you submit an AOSP enhancement request regarding InputType. The following addition would be helpful:

    android:inputType="voice"
    

    If you place a link to it back here, I'm sure many would star it.

    EDIT - I finally got around to doing it

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