Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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.encode("unicode-escape").decode("utf-8")}" > {fp.name}', shell=True, stderr=subprocess.STDOUT)
|
15 |
return fp.name
|
16 |
|
17 |
|