Use config var
parent
a64862cf41
commit
5d1cb4dbdf
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue