http://stackoverflow.com/questions/4530472/widget-that-calls-speech-recognition-app
http://stackoverflow.com/questions/6466328/recognizerintent-how-to-add-a-bundle-to-a-pending-intent
// this intent points to activity that should handle results
Intent activityIntent = new Intent(context, ResultsActivity.class);
// this intent wraps results activity intent
PendingIntent resultsPendingIntent = PendingIntent.getActivity(context, 0, activityIntent, 0);
// this intent calls the speech recognition
Intent voiceIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
voiceIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
voiceIntent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Speech recognition demo");
voiceIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
voiceIntent.putExtra(RecognizerIntent.EXTRA_RESULTS_PENDINGINTENT, resultsPendingIntent);
// this intent wraps voice recognition intent
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, voiceIntent, 0);
rv.setOnClickPendingIntent(R.id.btn, pendingIntent);
分享到:
相关推荐
Speech Recognition System 语音识别插件,不需要互联网连接; 语音识别质量高、速度快; 支持24种语言; 跨平台(Windows, iOS, Android, macOS, Linux); 易于整合。支持语言: 英语、印度英语、中国、俄罗斯、法国、...
Google Cloud Speech Recognition How to use First of all, you need to add GCSpeechRecognition prefab from FrostweepGames->GCSpeechRecognition->Prefabs folder to your working scene. Then you need to set...
Speech Recognition Unity
unity Speech Recognition System
Unity插件。语音识别(离线版)插件。支持中文、英文、俄语、法语、阿拉伯语等19种语言。支持多平台(PC、移动端)。
Speech Recognition and Acoustic Features in Combined Electric and Acoustic Stimulation
speech recognition with RNNs
离线中文语音识别,识别率较高,请大家珍惜作者的劳动成果谢谢!也是为了赚积分不然不会上传.
FPGA 领域顶级会议 FPGA 2017 于 2 月 24 日在加州 Monterey 结束。在本次大会上,深鉴科技论文《ESE: Efficient Speech Recognition Engine with Sparse LSTM on FPGA》获得了大会最佳论文奖(Best Paper Award)。
matlab开发-SpeechRecognition。基于相关性的语音识别
SPEECH RECOGNITION CORRELATION
Conversational speech recognition has served as a flagship speech recognition task since the release of the DARPA Switchboard corpus in the 1990s. In this paper, we measure the human error rate on the...
语音识别 训练过程 在matlab里进行程序运行
应用HTK建立的语音识别系统,PPT文档-Application of HTK speech recognition system established, PPT document
Fundamental_of_Speech_Recognition
EESEN END-TO-END SPEECH RECOGNITION USING DEEP RNN MODELS AND WFST-BASED DECODING
Deep Learning for NLP and Speech Recognition,2019年新书,介绍深度学习在自然语言处理和语音识别中的应用。
speech recognition complete simulation
ASRT_SpeechRecognition-master_ASRT在地识别_python_ASRT离线识别_语音识别python_语音识别_源码.zip
C#使用微软的Speech.Recognition库实现语音识别转文字