You've already forked STARK
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:
@ -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 = ['* (закрыть|закрой) (окно|окна) *', '* (опусти|опустить) (шторы|роллеты) *']
|
||||
|
Reference in New Issue
Block a user