在 Mac/Python 上 Google Cloud Speech API/Speech 识别的好教程?

Good tutorial for Google Cloud Speech API/Speech recognition on Mac/Python?

我正在尝试使用语音识别来构建一个项目,到目前为止,我的运气为 0。当我尝试使用 google: https://github.com/googleapis/python-speech/blob/master/samples/v1/speech_transcribe_sync.py 提供的示例代码时,出现错误 FileNotFoundError: [Errno 2] No such file or directory: 'resources/brooklyn_bridge.raw' 而且我不确定在哪里可以找到这个文件或它的用途。每当我尝试使用 speech_recognition 库时,我都会收到错误 OSError: [Errno -9999] Unanticipated host error.

基本上我的目标是制作一个聊天机器人,让聊天机器人说话(放下那部分),然后用户用可以解析的语音进行响应。谢谢。

您可能只是复制了一个文件。最好克隆整个存储库。然后脚本也会找到该文件。否则,您将在 resource folder.

中找到该文件