Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def text_to_speech(text):
|
|
46 |
with tempfile.NamedTemporaryFile(delete=False, suffix='.wav') as temp_file:
|
47 |
with locker:
|
48 |
audio_data = tts.synthesize(text, "92")
|
49 |
-
temp_file.write(audio_data)
|
50 |
return temp_file.name
|
51 |
|
52 |
def combine_audio_files(audio_files):
|
|
|
46 |
with tempfile.NamedTemporaryFile(delete=False, suffix='.wav') as temp_file:
|
47 |
with locker:
|
48 |
audio_data = tts.synthesize(text, "92")
|
49 |
+
temp_file.write(audio_data.ascontiguousarray())
|
50 |
return temp_file.name
|
51 |
|
52 |
def combine_audio_files(audio_files):
|