Spaces:
Sleeping
Sleeping
Remove sudo from the espeak-ng command.
Browse files- src/synthesize.py +1 -1
src/synthesize.py
CHANGED
@@ -74,7 +74,7 @@ def synth_espeakng(text:str, model:str):
|
|
74 |
'''
|
75 |
if model is not None:
|
76 |
|
77 |
-
subprocess.run(["
|
78 |
subprocess.run(['espeak-ng', f'-v{model}', "-w test.wav", text]) #.returncode
|
79 |
|
80 |
sampling_rate, wav = wavfile.read('test.wav')
|
|
|
74 |
'''
|
75 |
if model is not None:
|
76 |
|
77 |
+
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 resolved
|
78 |
subprocess.run(['espeak-ng', f'-v{model}', "-w test.wav", text]) #.returncode
|
79 |
|
80 |
sampling_rate, wav = wavfile.read('test.wav')
|