【问题标题】:Timeout error when using long_running_recognize()使用 long_running_recognize() 时出现超时错误
【发布时间】:2019-04-17 18:59:45
【问题描述】:

我正在尝试使用 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: None 意外状态:长时间运行的操作既没有响应也没有设置错误。

【问题讨论】:

    标签: python google-cloud-platform speech-recognition speech-to-text google-speech-api


    【解决方案1】:

    错误代码类似于Github discussion

    如果有要翻译的空白内容,请验证您的音频文件(例如:整个音频无声或音频仅包含背景噪音)

    MP3 Splitter and Joiner 等第三方工具可让您检测音频中的静音部分。

    【讨论】:

      猜你喜欢
      • 2018-11-27
      • 1970-01-01
      • 1970-01-01
      • 2019-11-03
      • 2017-08-12
      • 2017-09-20
      • 2016-08-27
      • 2016-12-08
      • 2023-03-06
      相关资源
      最近更新 更多