From 5c3efe66b1fea3bd97a2edd61bd15dbe1df40201 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 6 Oct 2020 19:32:16 +0200 Subject: [PATCH] Added daemon --- speech_daemon.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/speech_daemon.py b/speech_daemon.py index 42a18ca..23e4f00 100755 --- a/speech_daemon.py +++ b/speech_daemon.py @@ -1,3 +1,17 @@ #!/usr/bin/env python -import lib.speech.speech +from modules.hue.hue_remote import parseCommand +from modules.speech.speech import voiceInput + +class speech_daemon(object): + voiceInpObj = None + + def __init__(self, deviceIndex=30): + voiceInpObj = voiceInput() + + voiceInpObj.setMuted(False) + + voiceInpObj.start(deviceIndex) + +if __name__ == "__main__": + daemon = speech_daemon()