Speech to Text: Play MP3 message by itself and retrieve words

我只是一个虾纸丫 提交于 2019-12-19 04:56:25

问题


I have few MP3 files which are speeches. I have used Android Speech to Text before so I know it can store spoken words. Is there any way where we can get the spoken words from the MP3 and display it in a EditText ?

I am thinking about playing the MP3 silently and identify the words, but have no idea about how to do that. I am using Google Speech Engine.


回答1:


There is no native way to convert an audio file that contains spoken words to text on Android. You'll need to use a third-party API to do this, such as.

  1. A&T
  2. Nuance
  3. iSpeech

And perhaps Pocket Sphinx, although you may have to write the file input stream side of it yourself.

If you're not concerned about breaking terms and conditions, you could use the Chrome Speech API.



来源:https://stackoverflow.com/questions/19970843/speech-to-text-play-mp3-message-by-itself-and-retrieve-words

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!