google-cloud-platform - Google Cloud Speech to Text API 停止工作
问题描述
我为我正在进行的一个项目注册了 Google Cloud Speech to Text API。今天早上,我能够成功地将语音转换为文本。晚上,我恢复了工作,突然间,它停止了工作。它不需要任何输入,并且在关键字中断时,我收到以下消息。我不知道为什么它突然决定不工作。我重新启动了笔记本电脑,以为是麦克风问题。然后,我下载了代码并重新运行,但没有积极的结果。以下是我收到的消息。
Traceback (most recent call last):
File "/Users/ajayshah/Downloads/s2t.py", line 174, in <module>
main()
File "/Users/ajayshah/Downloads/s2t.py", line 167, in main
responses = client.streaming_recognize(streaming_config, requests)
File "/Users/ajayshah/opt/miniconda3/lib/python3.9/site-packages/google/cloud/speech_v1/helpers.py", line 81, in streaming_recognize
return super(SpeechHelpers, self).streaming_recognize(
File "/Users/ajayshah/opt/miniconda3/lib/python3.9/site-packages/google/cloud/speech_v1/services/speech/client.py", line 605, in streaming_recognize
response = rpc(requests, retry=retry, timeout=timeout, metadata=metadata,)
File "/Users/ajayshah/opt/miniconda3/lib/python3.9/site-packages/google/api_core/gapic_v1/method.py", line 142, in __call__
return wrapped_func(*args, **kwargs)
File "/Users/ajayshah/opt/miniconda3/lib/python3.9/site-packages/google/api_core/retry.py", line 283, in retry_wrapped_func
return retry_target(
File "/Users/ajayshah/opt/miniconda3/lib/python3.9/site-packages/google/api_core/retry.py", line 218, in retry_target
time.sleep(sleep)
KeyboardInterrupt
解决方案
推荐阅读
- hadoop - Hive:尝试映射键和值时出错
- dart - 颤振升级后构建失败并出现异常
- ios - SceneKit SCNNode 跟随触摸移动
- python - 无法序列化套接字对象或流式视频
- vb.net - 在 DataGridView VB.Net 中以颜色打印交替行
- java - 我的应用程序在结果之前进入了几个循环并减慢了进程
- sql - 填补组内日期和变量的空白 - PostgreSQL
- r - r markdown、knitr 和 latex 符号
- ios - Swift 将音频数据转换为文件并将其共享给其他应用程序?
- entity-framework - 如何在实体框架 6.0 中从 SqlQuery() 方法查询多个表?