Spaces:
Running
Running
Install espeak-ng if it's not installed already.
Browse files- src/synthesize.py +1 -1
src/synthesize.py
CHANGED
@@ -73,7 +73,7 @@ def synth_espeakng(text:str, model:str):
|
|
73 |
Streaming Wav and sampling rate.
|
74 |
'''
|
75 |
if model is not None:
|
76 |
-
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 resolved
|
77 |
subprocess.run(['espeak-ng', f'-v{model}', "-w test.wav", text]) #.returncode
|
78 |
|
79 |
sampling_rate, wav = wavfile.read('test.wav')
|
|
|
73 |
Streaming Wav and sampling rate.
|
74 |
'''
|
75 |
if model is not None:
|
76 |
+
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 resolved
|
77 |
subprocess.run(['espeak-ng', f'-v{model}', "-w test.wav", text]) #.returncode
|
78 |
|
79 |
sampling_rate, wav = wavfile.read('test.wav')
|