You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

树莓派部署Google Assistant失败:运行pushtotalk命令报错求助

Fixing the "Option --device-model-id required" Error for Google Assistant on Raspberry Pi

That error shows up because your Raspberry Pi is trying to register a new device instance for Google Assistant, but it lacks the necessary device model ID to complete the process. Here's how to resolve it:

  • Step 1: Retrieve your Device Model ID
    You would have created this unique ID when setting up your Google Assistant project in the Google Actions Console or Cloud Console. If you can’t locate it, go back to the console where you set up your project, navigate to your device model, and copy the ID string (it typically looks something like your-project-name-12345).

  • Step 2: Run the command with the device model ID parameter
    Update the push-to-talk command to include your device model ID using the --device-model-id flag. Replace <YOUR_DEVICE_MODEL_ID> with the actual ID you copied:

    (env) pi@Raspberrypi:~ $ python -m googlesamples.assistant.grpc.pushtotalk --device-model-id <YOUR_DEVICE_MODEL_ID>
    

    When you execute this, it will prompt you to complete an authorization flow: open the provided link in a browser, log in with your Google account, and enter the authorization code displayed on your Pi.

  • Step 3: Confirm the config file is generated
    After finishing authorization, the command will create the device_config.json file in the /home/pi/.config/googlesamples-assistant/ directory. From now on, you can run the original pushtotalk command without the --device-model-id flag, as it will use the saved configuration.

If you haven’t created a device model yet, you’ll need to go through the initial setup steps again to create one in the Google Actions Console—this is a mandatory step before registering a device instance on your Pi.

内容的提问来源于stack exchange,提问作者John Clark

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 03:19:23