You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the args used to call deepspeech from speech.py are incorrect. They should specify which parameters they supply, i.e. the class ought to look like this ...
class DeepSpeech(object): MODEL_DIR = settings["speech"]["deepspeech"]["model_dir"] async def get_text(self, mp3_filename): wav_filename = await mp3_to_wav(mp3_filename) proc = await asyncio.create_subprocess_exec( *[ "deepspeech", '--model' , os.path.join(self.MODEL_DIR, "output_graph.pb"), '--alphabet' , os.path.join(self.MODEL_DIR, "alphabet.txt"), '--lm' , os.path.join(self.MODEL_DIR, "lm.binary"), '--trie' , os.path.join(self.MODEL_DIR, "trie"), '--audio' , wav_filename, ], stdout=asyncio.subprocess.PIPE, ) if not proc.returncode: data = await proc.stdout.readline() result = data.decode("ascii").rstrip() await proc.wait() if result: return result
The text was updated successfully, but these errors were encountered:
I think the args used to call deepspeech from speech.py are incorrect. They should specify which parameters they supply, i.e. the class ought to look like this ...
class DeepSpeech(object): MODEL_DIR = settings["speech"]["deepspeech"]["model_dir"] async def get_text(self, mp3_filename): wav_filename = await mp3_to_wav(mp3_filename) proc = await asyncio.create_subprocess_exec( *[ "deepspeech", '--model' , os.path.join(self.MODEL_DIR, "output_graph.pb"), '--alphabet' , os.path.join(self.MODEL_DIR, "alphabet.txt"), '--lm' , os.path.join(self.MODEL_DIR, "lm.binary"), '--trie' , os.path.join(self.MODEL_DIR, "trie"), '--audio' , wav_filename, ], stdout=asyncio.subprocess.PIPE, ) if not proc.returncode: data = await proc.stdout.readline() result = data.decode("ascii").rstrip() await proc.wait() if result: return result
The text was updated successfully, but these errors were encountered: