我不知道他为什么不能创建实例。
首先它说:
C:\Users\Thomas\Desktop>googlesamples-assistant-pushtotalk --device-id assi
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or directory: 'C:\\.....\\AppData\\...
INFO:root:Registering device
ERROR:root:Option --device-model-id required when registering a device instance.
下一次尝试--device-model-id
C:\Users\Thomas\Desktop>googlesamples-assistant-pushtotalk --device-model-id assi
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or directory: 'C:\\Users\\Thomas\\AppData\\Roaming\\googlesamples-assistant\\device_config.json'
INFO:root:Registering device
ERROR:root:Option --project-id required when registering a device instance.
接下来尝试--project-id
C:\Users\Thomas\Desktop>googlesamples-assistant-pushtotalk --device-model-id assi --project-id evil-assist
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or directory: 'C:\\Users\\Thomas\\AppData\\Roaming\\googlesamples-assistant\\device_config.json'
INFO:root:Registering device
ERROR:root:Failed to register device: {
"error": {
"code": 400,
"message": "Could not create the device instance. Client type need to be specified as SDK_LIBRARY or SDK_SERVICE.",
"status": "INVALID_ARGUMENT"
}
}
我还在developers.google.com 上注册了该设备。
C:\Users\Thomas\Desktop>googlesamples-assistant-devicetool list --model
Device Model Id: assi
Project Id: evil-assist
Device Type: action.devices.types.LIGHT
Trait action.devices.traits.OnOff
和
C:\Users\Thomas\Desktop>googlesamples-assistant-devicetool list --device
Device Instance Id: assi
Nickname: assi
Model: assi
任何想法为什么它不起作用?