Speech to Text: Play MP3 message by itself and ret

2019-02-16 05:30发布

问题:

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.