How to use Androids' speech to text with audio sample file

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?

kind regards


Currently Android only supports RecognizerIntent

Have a look at all these questions...

Speech recognition for recorded audio files in .3gp or wav format

Speech to Text from own sound file

Saving audio input of Android Stock speech recognition engine

Voice recognition on android with recorded sound clip?

链接地址: http://www.djcxy.com/p/34410.html

上一篇: 在录制声音剪辑的Android上进行语音识别?

下一篇: 如何将Android的语音与音频样本文件一起使用