Remove sudo from the espeak-ng command.
Browse files73 unmodified lines7475767778798073 unmodified lines'''if model is not None:subprocess.run(["sudo", "apt-get", "install","espeak-ng"]) # Make sure espeak is installed -- not the most elegant solution, can swap for python API when that is resolvedsubprocess.run(['espeak-ng', f'-v{model}', "-w test.wav", text]) #.returncodesampling_rate, wav = wavfile.read('test.wav')73 unmodified lines7475767778798073 unmodified lines'''if model is not None:subprocess.run(["apt-get", "install","espeak-ng"]) # Make sure espeak is installed -- not the most elegant solution, can swap for python API when that is resolvedsubprocess.run(['espeak-ng', f'-v{model}', "-w test.wav", text]) #.returncodesampling_rate, wav = wavfile.read('test.wav')
src/synthesize.py+1-1