Voice Control of Smart Devices (No NLU)

Last Updated on : 2021-09-29 11:20:28download

Provides APIs for discovering devices, controlling devices, querying device status, executing scenes, and reading scene lists, allowing smart speakers, apps, or other terminals to control products.

Integrate without Apps

API Name URL
Device Control POST:/v1.0/iot-01/voice/users/devices/{device_id}/commands
Discover Devices GET:/v1.0/iot-01/voice/users/devices
Discover Scenes GET:/v1.0/iot-01/voice/users/scenes
Query Device Status GET:/v1.0/iot-01/voice/users/devices/{device_id}/status
Control Scenes POST:/v1.0/iot-01/voice/users/scenes/{scene_id}/commands

Integrate with Private Apps

API Name URL
Discover Scenes GET:/v1.0/iot-01/voice/users/{uid}/scenes
Query Device Status GET:/v1.0/iot-01/voice/users/{uid}/devices/{device_id}/status
Scene Control POST:/v1.0/iot-01/voice/users/{uid}/scenes/{scene_id}/commands
Discover Devices GET:/v1.0/iot-01/voice/users/{uid}/devices
Device Control POST:/v1.0/iot-01/voice/users/{uid}/devices/{device_id}/commands