Spaces:
Running
Running
Update KOKORO/utils.py
Browse files- KOKORO/utils.py +5 -5
KOKORO/utils.py
CHANGED
|
@@ -154,11 +154,11 @@ def remove_silence_function(file_path,minimum_silence=50):
|
|
| 154 |
combined.export(output_path, format=audio_format)
|
| 155 |
return output_path
|
| 156 |
|
| 157 |
-
import simpleaudio as sa
|
| 158 |
-
def play_audio(filename):
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
|
| 163 |
|
| 164 |
import re
|
|
|
|
| 154 |
combined.export(output_path, format=audio_format)
|
| 155 |
return output_path
|
| 156 |
|
| 157 |
+
# import simpleaudio as sa
|
| 158 |
+
# def play_audio(filename):
|
| 159 |
+
# wave_obj = sa.WaveObject.from_wave_file(filename)
|
| 160 |
+
# play_obj = wave_obj.play()
|
| 161 |
+
# play_obj.wait_done()
|
| 162 |
|
| 163 |
|
| 164 |
import re
|