khof312 commited on
Commit
55d7b0f
·
verified ·
1 Parent(s): 1e99d58

Try to debug why test.wav is not found.

Browse files
Files changed (1) hide show
  1. 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