I'm trying to transcribe (speech to text) using Mozilla Deepspeech, using below code in python subprocess to execute this command this command is working in terminal and also executing in python subprocess and there and no errors, but when result.txt is generated it is blank.
#!C:\Program Files\Python36\python.exe
print("Content-type: text/html\n")
import subprocess,os,sys
with open("C:/result.txt", mode="wb") as fd:
subprocess.run(["deepspeech", "--model", "C:/deepspeechwkdeepspeech-0.6.0-models/output_graph.pb --lm C:/deepspeech/deepspeech-0.6.0-models/lm.binary --trie C:/deepspeech/deepspeech-0.6.0-models/trie", "--audio", "C:/deepspeech/audio/8455-210777-0068.wav"], stdout=fd)
Any help is highly appreciated. Thanks