kevinwang676 commited on
Commit
a28efef
·
1 Parent(s): 605cc0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -262,7 +262,7 @@ with gr.Blocks(title="🐶🥳🎶 - Bark声音合成,开启声音真实复刻
262
  with gr.Row():
263
  with gr.Column():
264
  placeholder = "想让Bark说些什么呢?"
265
- input_text = gr.Textbox(label="用作声音合成的文本", lines=4, placeholder=placeholder)
266
  with gr.Column():
267
  convert_to_ssml_button = gr.Button("Convert Text to SSML", visible=False)
268
  with gr.Row():
@@ -315,8 +315,8 @@ with gr.Blocks(title="🐶🥳🎶 - Bark声音合成,开启声音真实复刻
315
  output_audio = gr.Audio(label="听听Bark为您复刻的语音吧", type="filepath")
316
 
317
  with gr.Tab("🎶 - 声音克隆"):
318
- input_audio_filename = gr.Audio(label="Input audio.wav", source="upload", type="filepath")
319
- transcription_text = gr.Textbox(label="Transcription Text", lines=1, placeholder="Enter Text of your Audio Sample here...")
320
  initialname = "Custom_voice"
321
  #inputAudioFilename = gr.Textbox(label="Filename of Input Audio", lines=1, placeholder="audio.wav")
322
  output_voice = gr.Textbox(label="为您的专属声音起个名字吧", lines=1, placeholder=initialname, value=initialname)
 
262
  with gr.Row():
263
  with gr.Column():
264
  placeholder = "想让Bark说些什么呢?"
265
+ input_text = gr.Textbox(label="用作声音合成的文本(长文本效果更好哦)", lines=4, placeholder=placeholder)
266
  with gr.Column():
267
  convert_to_ssml_button = gr.Button("Convert Text to SSML", visible=False)
268
  with gr.Row():
 
315
  output_audio = gr.Audio(label="听听Bark为您复刻的语音吧", type="filepath")
316
 
317
  with gr.Tab("🎶 - 声音克隆"):
318
+ input_audio_filename = gr.Audio(label="请上传一段5秒左右的声音", source="upload", type="filepath")
319
+ transcription_text = gr.Textbox(label="请填写该声音文件对应的文本", lines=1, placeholder="您上传的声音都说了些什么呢?")
320
  initialname = "Custom_voice"
321
  #inputAudioFilename = gr.Textbox(label="Filename of Input Audio", lines=1, placeholder="audio.wav")
322
  output_voice = gr.Textbox(label="为您的专属声音起个名字吧", lines=1, placeholder=initialname, value=initialname)