2

当我尝试启动谷歌助手时,它崩溃并显示以下错误。

当它回复时,要么说:

“几秒钟后尝试出现错误” “出现故障”

ON_MUTED_CHANGED: {'is_muted': False} ON_START_FINISHED [19218:19229:ERROR:speech_processing_task.cc(646)] 检测到通信错误:下游过早关闭。

ON_CONVERSATION_TURN_STARTED
[19218:19229:ERROR:speech_processing_task.cc(646)] Detected communication error: Downstream closed prematurely.
[19218:19229:ERROR:assistant_output_handler.cc(589)] Failed with a general speech recognition error
ON_ASSISTANT_ERROR:
  {'is_fatal': False}
ON_RESPONDING_STARTED:
  {'is_error_response': True}
ON_RESPONDING_FINISHED
ON_CONVERSATION_TURN_FINISHED:
  {'with_follow_on_turn': False}

[19218:19229:ERROR:speech_processing_task.cc(340)] S3 connection has timed out: No data from S3
[19218:19229:ERROR:speech_processing_task.cc(646)] Detected communication error: Downstream closed prematurely.

我通过 ssh 连接到树莓派并且可以 ping,所以我认为这不是连接问题。

这是我的第一篇文章,让我知道是否有需要更改的内容或我可能忘记的细节。

[更新]我检查了我的活动,但日志中没有任何内容,但是当我尝试使用智能手机时,它会正确记录它另外我将我的树莓派 pi3 更新到最新版本,但错误日志中仍然没有变化

4

1 回答 1

0

我有同样的问题。问题是谷歌助手 api 没有启用。执行ctrl+c并使用env运行此命令

python -m googlesamples.assistant.grpc.pushtotalk

当它说 Press enter to send a new request 时,按 enter 并说点什么。它会给你一个带有很多命令行的错误。最后一段很重要。它在这里 :-

PERMISSION_DENIED, Google Assistant API has not been used in project integrigate before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/embeddedassistant.googleapis.com/overview?project=projectname then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.)>

将链接复制并粘贴到浏览器中,然后单击启用 api。完成后运行 google-assistant-demo 下面的命令。它现在应该可以工作了。

尤森尼斯

于 2017-06-12T21:35:59.383 回答