Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def tts(text: str, voice: str="Male"):
39
  wavs = synthesizer.tts(text)
40
 
41
  # return output
42
- with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
43
  synthesizer.save_wav(wavs, fp)
44
  return fp.name
45
 
 
39
  wavs = synthesizer.tts(text)
40
 
41
  # return output
42
+ with tempfile.NamedTemporaryFile(dir="sound/", prefix=f"-", suffix=".wav", delete=False) as fp:
43
  synthesizer.save_wav(wavs, fp)
44
  return fp.name
45