如何安装语音在谷歌玻璃发送短信? [英] How to install Speech to text in Google Glass?

查看:135
本文介绍了如何安装语音在谷歌玻璃发送短信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司开发采用的是Android 4.1.2和语音文本工作良好的应用程序,但是当我试图在谷歌的玻璃它不工作(未找到活动除外)。
这是我的演讲到文本code

I developed an app using the Android 4.1.2 and speech to text is working well but when I tried it on the Google Glass it is not working(Activity not found exception). This is my Speech to text Code

Intent intent = new Intent(
                RecognizerIntent.ACTION_RECOGNIZE_SPEECH);

        intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, "en-US");

        try {
            startActivityForResult(intent, requestCode);
        } catch (ActivityNotFoundException a) {
            Toast t = Toast.makeText(getApplicationContext(),
                    "Opps! Your device doesn't support Speech to Text",
                    Toast.LENGTH_SHORT);
}

我试图APK手动安装语音合成,但是当我试图启动语音合成应用程序崩溃。有没有安装语音synthasizer的方式还是有一种变通方法code的语音到文本的谷歌眼镜的工作?

I tried to install the Speech Synthesis apk manually but when I tried to start the speech synthesis app crashed. Is there a way to install the speech synthasizer or is there a workaround code for the speech to text to work in the Google Glass?

推荐答案

要使用必须安装标准Android语音识别/部署com.google.android.voicesearch APK包
(Voicesearch.apk的版本必须是与Android 4.0或更高版本附带的一个,它不与旧版本的Voicesearch.apks的工作)

To use the standard android speech recognition you have to install/deploy the com.google.android.voicesearch apk package (the version of Voicesearch.apk must be the one that came with the Android 4.0 or later, it did not work with the older version of the Voicesearch.apks)

只是通过使用ADB安装&LT安装; APK文件>

Just install it by using adb install < apk-file >

然后,你应该能够使用Android的语音识别功能,您的玻璃设备上。

Then you should be able to use the voice recognition feature of android on your glass device.

更新:谷歌后玻璃被更新,以XE9你没有安装语音APK。默认的工作正常。
要卸载语音搜索
使用下面的命令

Updated : After Google Glass is Updated to XE9 you dont have to install the Voice Apk. The default one works fine. To uninstall the Voice Search Use the following command

adb uninstall com.google.android.voicesearch

这篇关于如何安装语音在谷歌玻璃发送短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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