kevinwang676 commited on
Commit
501352e
1 Parent(s): 49e1e60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -127,7 +127,6 @@ def convert(api_key, text, tgt, voice, save_path):
127
  )
128
  # src
129
 
130
- #response.stream_to_file("output_openai.mp3")
131
  os.environ["ELEVEN_API_KEY"] = api_key
132
  src = generate_voice(text, voice)
133
  wav_src, _ = librosa.load(src, sr=hps.data.sampling_rate)
@@ -301,11 +300,11 @@ restart_markdown = ("""
301
  all_voices = voices()
302
 
303
  with gr.Blocks() as app:
304
- gr.Markdown("# <center>🌊💕🎶 OpenAI TTS - SRT文件一键AI配音</center>")
305
  gr.Markdown("### <center>🌟 只需上传SRT文件和原版配音文件即可,每次一集视频AI自动配音!Developed by Kevin Wang </center>")
306
  with gr.Row():
307
  with gr.Column():
308
- inp0 = gr.Textbox(type='password', label='请输入您的OpenAI API Key')
309
  inp1 = gr.File(file_count="single", label="请上传一集视频对应的SRT文件")
310
  inp2 = gr.Audio(label="请上传一集视频的配音文件", type="filepath")
311
 
 
127
  )
128
  # src
129
 
 
130
  os.environ["ELEVEN_API_KEY"] = api_key
131
  src = generate_voice(text, voice)
132
  wav_src, _ = librosa.load(src, sr=hps.data.sampling_rate)
 
300
  all_voices = voices()
301
 
302
  with gr.Blocks() as app:
303
+ gr.Markdown("# <center>🌊💕🎶 11Labs TTS - SRT文件一键AI配音</center>")
304
  gr.Markdown("### <center>🌟 只需上传SRT文件和原版配音文件即可,每次一集视频AI自动配音!Developed by Kevin Wang </center>")
305
  with gr.Row():
306
  with gr.Column():
307
+ inp0 = gr.Textbox(type='password', label='请输入您的11Labs API Key')
308
  inp1 = gr.File(file_count="single", label="请上传一集视频对应的SRT文件")
309
  inp2 = gr.Audio(label="请上传一集视频的配音文件", type="filepath")
310