我正在尝试使用Google Speech API转录音频文件并使用long_running_recognize。它工作了一次,但现在我开始每次尝试时都会出现以下错误 - 任何指导都非常感谢。
Projects / Speech / env / lib / python3.7 / site-packages / google / api_core / future / polling.py“,第127行,结果引发self._exception google.api_core.exceptions.GoogleAPICallError:无意外状态:长 - 运行操作既没有响应也没有设置错误。
错误代码与此Github discussion类似。
如果要翻译空白内容,请验证您的音频文件(例如:整个音频是静音或音频仅包含背景噪音)
MP3 Splitter and Joiner等第三方工具允许您检测音频中的部分静音。