Vo Hoang Minh commited on
Commit
01c5f57
·
1 Parent(s): a567539
Files changed (1) hide show
  1. pkg/tts_run.py +0 -5
pkg/tts_run.py CHANGED
@@ -236,11 +236,6 @@ def speech(text, voice, rate, pitch, webhook=None):
236
  }
237
 
238
  requests.post(webhook, json=payload, timeout=10)
239
-
240
- os.remove(audio_file.name)
241
- os.remove(srt_file.name)
242
-
243
- return data["audio"], data['subtitle']
244
 
245
  return audio_file.name, srt_file.name
246
 
 
236
  }
237
 
238
  requests.post(webhook, json=payload, timeout=10)
 
 
 
 
 
239
 
240
  return audio_file.name, srt_file.name
241