|
@@ -1,8 +1,6 @@
|
|
|
import Queue
|
|
import Queue
|
|
|
import threading
|
|
import threading
|
|
|
import console
|
|
import console
|
|
|
-import google_cloud_speech
|
|
|
|
|
-import slack_bot
|
|
|
|
|
import conf
|
|
import conf
|
|
|
|
|
|
|
|
LANGUAGE = 'en-GB'
|
|
LANGUAGE = 'en-GB'
|
|
@@ -36,8 +34,10 @@ def launch_input_sources():
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
if conf.ENABLE_SPEECH_INPUT:
|
|
if conf.ENABLE_SPEECH_INPUT:
|
|
|
|
|
+ import google_cloud_speech
|
|
|
services.append(google_cloud_speech.GoogleCloudSpeech(_TOKEN_STREAM))
|
|
services.append(google_cloud_speech.GoogleCloudSpeech(_TOKEN_STREAM))
|
|
|
if conf.SLACK_BOT_API_KEY:
|
|
if conf.SLACK_BOT_API_KEY:
|
|
|
|
|
+ import slack_bot
|
|
|
services.append(slack_bot.SlackBot(_TOKEN_STREAM))
|
|
services.append(slack_bot.SlackBot(_TOKEN_STREAM))
|
|
|
|
|
|
|
|
for s in services:
|
|
for s in services:
|