如何使用机器人“的演讲音频样本文件为文本 [英] How to use Androids' speech to text with audio sample file

查看:209
本文介绍了如何使用机器人“的演讲音频样本文件为文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是能够运行的采用Android语音使用此code到文本的示例项目:

I was able to run an example project which uses Android speech to text using this code:

   private void startVoiceRecognitionActivity()
    {
        Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
        intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
                RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
        intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Voice recognition Demo...");
        startActivityForResult(intent, REQUEST_CODE);
    }

这工作得很好,但我想知道,是否有可能使用语音与音频样本(字节数组?)文本而不是录制的声音?

This works fine, but I was wondering, is it possible to use speech to text with an audio sample (byte array?) instead of recorded voice?

亲切的问候

推荐答案

目前的Andr​​oid只支持RecognizerIntent

Currently Android only supports RecognizerIntent

有一个在所有这些问题...

Have a look at all these questions...

<一个href=\"http://stackoverflow.com/questions/14092834/speech-recognition-for-recorded-audio-files-in-3gp-or-wav-format\">Speech承认在名为.3gp或WAV格式录制的音频文件。

语音从自己的声音文件中的文本

<一个href=\"http://stackoverflow.com/questions/8583406/saving-audio-input-of-android-stock-speech-recognition-engine\">Saving Android的股票语音识别引擎音频输入

<一个href=\"http://stackoverflow.com/questions/2319735/voice-recognition-on-android-with-recorded-sound-clip\">Voice承认在Android上录制的声音片段?

这篇关于如何使用机器人“的演讲音频样本文件为文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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