【发布时间】:2018-02-16 13:54:08
【问题描述】:
我正在使用 Google Speech API 转录音频文件,使用以下 Python 脚本 https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/cloud-client/transcribe_async.py 和以下命令:
python transcribe_async.py 1503489730.193982.flac
我得到的回应是这个:
Waiting for operation to complete...
Traceback (most recent call last):
File "transcribe_async.py", line 102, in <module>
transcribe_file(args.path)
File "transcribe_async.py", line 52, in transcribe_file
response = operation.result(timeout=200)
File "/home/toto/anaconda3/lib/python3.5/site-packages/google/gax/__init__.py", line 596, in result
raise GaxError(self._operation.error.message)
google.gax.errors.GaxError
我无法弄清楚错误是什么。可能是音频参数配置错了,我真的不知道。
谢谢
【问题讨论】:
标签: python google-api speech-recognition speech-to-text google-speech-api