Spaces:
Running
on
Zero
Running
on
Zero
zhzluke96
commited on
Commit
•
d6fe286
1
Parent(s):
d5b3cd8
update
Browse files
webui.py
CHANGED
@@ -101,15 +101,7 @@ def synthesize_ssml(ssml: str, batch_size=4):
|
|
101 |
audio_segments = synthesize.synthesize_segments(segments)
|
102 |
combined_audio = combine_audio_segments(audio_segments)
|
103 |
|
104 |
-
|
105 |
-
combined_audio.export(buffer, format="wav")
|
106 |
-
|
107 |
-
buffer.seek(0)
|
108 |
-
|
109 |
-
audio_data = buffer.read()
|
110 |
-
audio_data = audio.audio_to_int16(audio_data)
|
111 |
-
|
112 |
-
return audio_data
|
113 |
|
114 |
|
115 |
@torch.inference_mode()
|
|
|
101 |
audio_segments = synthesize.synthesize_segments(segments)
|
102 |
combined_audio = combine_audio_segments(audio_segments)
|
103 |
|
104 |
+
return audio.pydub_to_np(combined_audio)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
|
107 |
@torch.inference_mode()
|