启动Android键盘语音识别模式 [英] Start Android keyboard in voice recognition mode

查看:622
本文介绍了启动Android键盘语音识别模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以编程方式打开键盘,并让它开始做即时未经用户pressing的麦克风按钮,语音识别。我知道如何实现SpeechRecognizer - 这不是我要找的。我要开始键盘VR和文本直行到EditView中。这可能吗?

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 SpeechRecognizer - that is not what I'm looking for. I want to start the keyboard VR and text go straight to an editview. Is this possible?

推荐答案

不幸的是,这是不可能的,但是非常应该是

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.

我只能建议您提交有关的 AOSP增强请求 =htt​​p://developer.android.com/reference/android/text/InputType.html相对=nofollow> InputType 。下面除了将是有益的:

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.

编辑 - 我终于可以做

这篇关于启动Android键盘语音识别模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆