Răsfoiți Sursa

small fixes

Martin 10 ani în urmă
părinte
comite
7c325b2ab0

+ 7 - 7
voice_control/conf.py

@@ -1,16 +1,16 @@
 import os
 
-
 _VC_DIR = os.path.dirname(os.path.abspath(__file__))
 
+# Audio output
 CLIPS_FOLDER = os.path.join(_VC_DIR, '..', 'resources', 'clips')
+ENABLE_SOUND_OUTPUT = False
 
-SLACK_BOT_API_KEY = None # 'xoxb-124589937168-ljmRwQODWQ2R1d7eIs99hAc1'
-
-MUSIC_FOLDER = '/mnt/nas/music/albums'
-
-
+# Voice input
 ENABLE_SPEECH_INPUT = False
 
-ENABLE_SOUND_OUTPUT = False
+# Music
+MUSIC_FOLDER = '/mnt/nas/music/albums'
 
+# Slack I/O
+SLACK_BOT_API_KEY = None # 'xoxb-124589937168-ljmRwQODWQ2R1d7eIs99hAc1'

+ 1 - 2
voice_control/services/__init__.py

@@ -32,13 +32,12 @@ def launch_services(interrupted):
             t = threading.Thread(target=s.init)
             t.start()
 
-    output.text('Ready.')
+    output.text('Ready. Available services: %s.' % ', '.join(sorted(_services.keys())))
 
     while not interrupted():
         input_sources.PREFERRED_PHRASES = _services.keys() + ['quit']
         t = input_sources.get_token(1)
         if t is not None and t in _services and _services[t].initialized:
-            output.debug('Entering %s' % t)
             _services[t].call()
         elif t == 'quit':
             return

+ 1 - 1
voice_control/services/todo_wunderlist.py

@@ -75,8 +75,8 @@ class Wunderlist(base.BaseService):
 
         tasks = []
         if self.multiple_tasks:
-            t = input_sources.get_token(120)
             output.text('Specify tasks:')
+            t = input_sources.get_token(120)
 
             while t not in ['done', 'cancel', None]:
                 tasks.append(t)