Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,13 +18,14 @@ async def text_to_speech_edge(text, language_code):
|
|
18 |
|
19 |
await communicate.save(tmp_path)
|
20 |
|
21 |
-
new_temp_path = tmp_path.replace(".mp3", ".wav")
|
22 |
-
(
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
)
|
27 |
-
return
|
|
|
28 |
|
29 |
def cleanup_temp_files(temp_dir, max_age_seconds=3600):
|
30 |
"""ๅฎๆๆธ
็่ถ
้ max_age_seconds ็่จๆๆไปถ"""
|
|
|
18 |
|
19 |
await communicate.save(tmp_path)
|
20 |
|
21 |
+
# new_temp_path = tmp_path.replace(".mp3", ".wav")
|
22 |
+
# (
|
23 |
+
# ffmpeg.input(tmp_path)
|
24 |
+
# .output(new_temp_path)
|
25 |
+
# .run()
|
26 |
+
# )
|
27 |
+
return tmp_path
|
28 |
+
# return new_temp_path
|
29 |
|
30 |
def cleanup_temp_files(temp_dir, max_age_seconds=3600):
|
31 |
"""ๅฎๆๆธ
็่ถ
้ max_age_seconds ็่จๆๆไปถ"""
|