the-walking-fish commited on
Commit
a1eb356
ยท
verified ยท
1 Parent(s): 67f4cd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
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
- ffmpeg.input(tmp_path)
24
- .output(new_temp_path)
25
- .run()
26
- )
27
- return new_temp_path
 
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 ็š„่‡จๆ™‚ๆ–‡ไปถ"""