クライアントとホストの間でチャット プログラムを作成したプロジェクトがあり、その中に Speech to Text を埋め込む必要があります。プログラムに Google Speech to Text API を埋め込む方法はありますか??
18135 次
3 に答える
5
これを行うように見えるSpeech Recognitionと呼ばれる PyPI のパッケージがあります。ライブ (つまり、マイク経由) API は非常にシンプルに見えます。
# NOTE: this requires PyAudio because it uses the Microphone class
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source: # use the default microphone as the audio source
audio = r.listen(source) # listen for the first phrase and extract it into audio data
try:
print("You said " + r.recognize(audio)) # recognize speech using Google Speech Recognition
except LookupError: # speech is unintelligible
print("Could not understand audio")
また、WAV ファイルの転写、バックグラウンド プロセスとしての実行、転写の信頼値の提供などの機能も備えています。
于 2015-05-01T14:39:29.080 に答える
2
Nexiwave の無料の音声テキスト変換 API を試すことができます。Python サンプルは次のとおりです: http://nexiwave.com/api_samples/nexiwave_py.txt。API ガイドも確認してください: http://nexiwave.com/index.php/119-integrate-in-5-minutes . かなり簡単です。
無料プランを使用するには、最初に登録する必要があります。
于 2013-11-07T17:43:58.150 に答える