Kamtera commited on
Commit
0216dec
1 Parent(s): 0553379

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def tts(text: str):
11
 
12
  with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
13
  #print(fp)
14
- output = subprocess.check_output(f'mimic3 --voice fa/haaniye_low "{text.encode("unicode-escape").decode("utf-8")}" > {fp.name}', shell=True, stderr=subprocess.STDOUT)
15
  return fp.name
16
 
17
 
 
11
 
12
  with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
13
  #print(fp)
14
+ output = subprocess.check_output(f'mimic3 --voice fa/haaniye_low "{text}" > {fp.name}', shell=True, stderr=subprocess.STDOUT)
15
  return fp.name
16
 
17