2015-11-02 28 views
-2

我想將音頻文件轉換爲文本。我已經看到了很多文章,但沒有爲我工作。請您建議我用pythonic方式隱藏演講文本。謝謝。演講到分機轉換

回答

0

那是一個相當大的問題,但我給你的建議是最好去與像https://pypi.python.org/pypi/pygsr

from pygsr import Pygsr 

speech = Pygsr() 
speech.record(3) # durationin seconds (3) 
phrase, complete_response =speech.speech_to_text('en_US') # select the language 
print phrase 

EDIT1:如果它的音頻文件,你可以打開一個谷歌語音帳戶,稱自己,玩音頻文件作爲語音信箱留下。谷歌將你的所有消息轉換爲文本,因此它基本上是免費的轉錄服務。