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:
@ -252,14 +252,6 @@ class Command(ABC):
|
||||
finish_event = Event()
|
||||
thread = RThread(target=cmd, args=(text, finish_event))
|
||||
thread.start()
|
||||
return {
|
||||
'type': 'background',
|
||||
'text': answer,
|
||||
'voice': voice,
|
||||
'thread': {
|
||||
'thread': thread,
|
||||
'finish_event': finish_event,
|
||||
}
|
||||
}
|
||||
return Response(voice = voice, text = answer, thread = {'thread': thread, 'finish_event': finish_event} )
|
||||
return wrapper
|
||||
return decorator
|
||||
|
Reference in New Issue
Block a user