pyspeech (python) - Transcribe mp3 files?

点点圈 提交于 2020-01-09 11:14:10

问题


I'd like to transcribe mp3 (speech-to-text) using the pyspeech API. I don't know if this is possible, though.

Is it? How?


回答1:


pyspeech seems to be merely a python interface to the regular Windows speech APIs. Most likely you'd create some method of treating mp3 playback as an audio source for that speech API to listen to.




回答2:


I don't know about pyspeech, but if it is a Python wrapper around the Microsoft speech APIs, then some other posts may be helpful.

Microsoft Speech engines do not require microphone input. They can accept audio files.

If you are doing transcription, you will need a dictation grammar. Dictation grammars are included with the client versions of Microsoft speech engines that ship with Windows 7 and Vista. Dictation grammars are not provided on the Server engines Microsoft provides.

A simple example of using a dictation grammar in C# with the System.Speech namespace is in the StackOverflow question SAPI and Windows 7 Problem



来源:https://stackoverflow.com/questions/4611373/pyspeech-python-transcribe-mp3-files

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