Use config var

pull/878/head
Teagan Glenn 2017-07-05 09:10:15 -06:00
parent a64862cf41
commit 5d1cb4dbdf
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class KaldiSTT(STT):
def execute(self, audio, language=None):
language = language or self.lang
config = ConfigurationManager.get().get("stt", {})
response = post(self.config.get("uri"), data=audio.get_wav_data())
response = post(config.get("uri"), data=audio.get_wav_data())
return self.get_response(response)
def get_response(self, response):