【问题标题】:Google Assistant Raspberry Pi Problem | hotword not working谷歌助手树莓派问题 |启动指令不起作用
【发布时间】:2019-12-29 19:21:23
【问题描述】:

我是 raspberry 和 python 的新手,我已经使用本教程 https://pimylifeup.com/raspberry-pi-google-assistant/ 在我的 Raspberry Pi 4 B 上使用 Raspbian 安装了 Google Assistant。

这很好用:

googlesamples-assistant-pushtotalk 

测试它,我得到以下错误:

(env) pi@raspberrypi:~ $ google-assistant-demo --project-id XXX
Traceback (most recent call last):
  File "/home/pi/env/bin/google-assistant-demo", line 8, in <module>
    sys.exit(main())
  File "/home/pi/env/lib/python3.7/site-packages/google/assistant/library/__main__.py", line 119, in main
    raise Exception('Missing --device-model-id option')
Exception: Missing --device-model-id option

同时运行“googlesamples-assistant-hotword”只会给我一个内存访问错误。

我试图让它在启动时免提工作,所以我使用了sudo systemctl status assistant.service,这给了我:

● assistant.service - Google Assistant
   Loaded: loaded (/lib/systemd/system/assistant.service; enabled; vendor preset
   Active: failed (Result: exit-code) since Sun 2019-12-29 20:11:46 CET; 2s ago
  Process: 10343 ExecStart=/bin/bash /home/pi/start_assistant.sh (code=exited, s
 Main PID: 10343 (code=exited, status=139)

Dez 29 20:11:45 raspberrypi systemd[1]: Started Google Assistant.
Dez 29 20:11:46 raspberrypi bash[10343]: /home/pi/start_assistant.sh: Zeile 4: 1
Dez 29 20:11:46 raspberrypi systemd[1]: assistant.service: Main process exited, 
Dez 29 20:11:46 raspberrypi systemd[1]: assistant.service: Failed with result 'e
lines 1-10/10 (END)

我认为这些错误可能是相关的。

非常感谢您。

【问题讨论】:

  • 嗨。你设法解决这个问题吗?卡在同一个地方...如果是这样,请详细说明您是如何解决的。

标签: raspberry-pi raspbian google-assistant-sdk


【解决方案1】:

您需要按照the official documentation 创建设备型号ID,然后在运行项目时传递该参数。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-07-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-05
    • 2017-11-16
    相关资源
    最近更新 更多