Spaces:
Running
Running
Try to debug why test.wav is not found.
Browse files- src/synthesize.py +2 -0
src/synthesize.py
CHANGED
@@ -79,6 +79,8 @@ def synth_espeakng(text:str, model:str):
|
|
79 |
esng.voice = model
|
80 |
esng.say(text, export_path="test.wav")
|
81 |
|
|
|
|
|
82 |
sampling_rate, wav = wavfile.read('test.wav')
|
83 |
os.remove("test.wav")
|
84 |
|
|
|
79 |
esng.voice = model
|
80 |
esng.say(text, export_path="test.wav")
|
81 |
|
82 |
+
print(["test.wav" in os.listdir()])
|
83 |
+
|
84 |
sampling_rate, wav = wavfile.read('test.wav')
|
85 |
os.remove("test.wav")
|
86 |
|