任何人都知道关于Android 4.1+离线语音识别API文档? [英] Anyone knows about Android 4.1+ offline voice-recognition API documentation?

查看:307
本文介绍了任何人都知道关于Android 4.1+离线语音识别API文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Android 4.1.2和4.3建立一个离线语音识别Android应用程序,而我试图访问到Android ASR API。我能找到的 HTTP(使用意向)与同步语音识别的所有信息://developer.android.com/reference/android/speech/package-summary.html ,但没有有关异步识别(我想识别该文件中的音频内容)

I'm trying to build an offline voice recognition Android app on Android 4.1.2 and 4.3, and I'm trying to get access to Android ASR API. I could find all information related to synchronous voice recognition (using an intent) on http://developer.android.com/reference/android/speech/package-summary.html, but nothing about asynchronous recognition (I would like to recognize the audio content from a file).

有谁知道关于这个话题的API文档和教程?

Does anyone know about an API documentation and tutorials on this topic?

非常感谢!

编辑:非常感谢Kaarel你的答案。如果我把我尝试以另一种方式做:我有,我已经录制了讲话的音频文件,我想这个文件的内容发送到Android识别在离线模式下(例如,没有互联网连接) 。问题是,我已经能够使用Android语音识别,而用户说话(我称之为'同步'),而不是使用一个文件(用户没有说完如后,我称之为异步)。

Edit : Many thanks Kaarel for your answer. If I put what I'm trying to do in another way : I have an audio file where I have recorded a speech, and I would like to send the content of this file to the Android recognizer in offline mode (e.g. without internet connection). The issue is that I have been able to use Android speech recognition while the user is speaking (what I call 'synchronous'), but not using a file (e.g. after the user is done speaking, what I call asynchronous).

推荐答案

Android的语音API(如4.3版),不提供pre-录音的语音识别。此外,API不允许客户端宣布,语音识别应该发生的离线。

Android's speech API (as of version 4.3) does not offer speech recognition of a pre-recorded audio. Also, the API does not allow the client to declare that speech recognition should happen offline.

这篇关于任何人都知道关于Android 4.1+离线语音识别API文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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