Moo*_*lit 7 audio android speech-to-text
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);
}
Run Code Online (Sandbox Code Playgroud)
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
目前Android仅支持RecognizerIntent
看看所有这些问题...
| 归档时间: |
|
| 查看次数: |
12258 次 |
| 最近记录: |