Add voice buttons, Wi-Fi netconfig, and demo STT server
This commit is contained in:
@@ -36,17 +36,22 @@
|
||||
{
|
||||
"id": "cleaning-call",
|
||||
"label": "Вызов клининга",
|
||||
"kind": "press",
|
||||
"iconPath": "cleaner1Crop.png",
|
||||
"color": "#000000",
|
||||
"action": {
|
||||
"type": "http_get",
|
||||
"url": "http://192.168.30.147:80/api/click/btn?bid=01*04*01",
|
||||
"url": "https://button.grigowashere.ru/api/click/btn?bid=01*04*01",
|
||||
"headers": {},
|
||||
"body": "",
|
||||
"timeoutMs": 15000
|
||||
"timeoutMs": 15000,
|
||||
"responseCheck": {
|
||||
"enabled": false
|
||||
}
|
||||
},
|
||||
"latchReset": {
|
||||
"enabled": true,
|
||||
"resetUrl": "http://192.168.30.147:80/api/click/btn?bid=01*04*00",
|
||||
"resetUrl": "https://button.grigowashere.ru/api/click/btn?bid=01*04*00",
|
||||
"successMatch": "OK",
|
||||
"fireAndForget": true
|
||||
},
|
||||
@@ -59,8 +64,44 @@
|
||||
"trigger": {
|
||||
"mode": "hold",
|
||||
"holdMs": 800
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "voice-call",
|
||||
"label": "Аудио",
|
||||
"kind": "voice",
|
||||
"iconPath": "cleaner1Crop.png",
|
||||
"color": "#2a6f97",
|
||||
"action": {
|
||||
"type": "http_post",
|
||||
"url": "https://button.grigowashere.ru/api/v1/classify-audio",
|
||||
"headers": {
|
||||
"X-API-Key": "97098109-3188-496b-b075-0e8d83c2bef5"
|
||||
},
|
||||
"body": "",
|
||||
"timeoutMs": 60000,
|
||||
"responseCheck": {
|
||||
"enabled": false
|
||||
}
|
||||
},
|
||||
"color": "#000000"
|
||||
"voice": {
|
||||
"sourceId": "panel-01",
|
||||
"cancelUrl": "https://button.grigowashere.ru/api/v1/cancel",
|
||||
"maxRecordMs": 30000
|
||||
},
|
||||
"latchReset": {
|
||||
"enabled": false
|
||||
},
|
||||
"feedback": {
|
||||
"successText": "",
|
||||
"errorText": "Ошибка",
|
||||
"pendingText": "Слушаю...",
|
||||
"fadeMs": 5000
|
||||
},
|
||||
"trigger": {
|
||||
"mode": "hold",
|
||||
"holdMs": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user