Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def tts(text: str):
|
|
10 |
import subprocess
|
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 |
|
|
|
10 |
import subprocess
|
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 |
|