1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-07-02 22:36:54 +02:00

add Response class, recursive voice assistant algorithm

This commit is contained in:
MarkParker5
2021-02-21 21:06:00 +02:00
parent 96bb146822
commit 792bede347
17 changed files with 147 additions and 186 deletions

View File

@ -8,11 +8,7 @@ def method(params):
'cmd': 'window_open',
})
voice = text = 'Поднимаю роллеты'
return {
'type': 'simple',
'text': text,
'voice': voice,
}
return Response(text = text, voice = voice)
keywords = {}
patterns = ['* (открыть|открой) (окно|окна) *', '* (подними|поднять) (шторы|роллеты) *']
@ -27,11 +23,7 @@ def method(params):
'cmd': 'window_close',
})
voice = text = 'Опускаю роллеты'
return {
'type': 'simple',
'text': text,
'voice': voice,
}
return Response(text = text, voice = voice)
keywords = {}
patterns = ['* (закрыть|закрой) (окно|окна) *', '* (опусти|опустить) (шторы|роллеты) *']