@@ -0,0 +1,5 @@
+import os
+
+_HOME = os.getenv('HOME')
+CLIPS_FOLDER = os.path.join(_HOME, 'workspaces', 'visual-code', 'voice_control', 'resources', 'clips')
@@ -7,8 +7,7 @@ from gtts import gTTS
import pygame.mixer
import base
-
-_CLIP_FOLDER = '/Users/martin/workspaces/visual-code/voice_control/resources/clips'
+from voice_control.conf import CLIPS_FOLDER
_CLIP_DATA_CACHE = {}
if not os.path.isdir('/tmp/snowboy'):
@@ -41,7 +40,7 @@ def _play_clip(clip):
:return: None
"""
- fname = os.path.join(_CLIP_FOLDER, clip)
+ fname = os.path.join(CLIPS_FOLDER, clip)
_play(fname, True)
return