ZiyueJiang commited on
Commit
f89f703
·
1 Parent(s): 422e557

update gradio description

Browse files
Files changed (1) hide show
  1. tts/gradio_api.py +2 -2
tts/gradio_api.py CHANGED
@@ -39,7 +39,7 @@ def model_worker(input_queue, output_queue, device_id):
39
  try:
40
  convert_to_wav(inp_audio_path)
41
  wav_path = os.path.splitext(inp_audio_path)[0] + '.wav'
42
- cut_wav(wav_path, max_len=28)
43
  with open(wav_path, 'rb') as file:
44
  file_content = file.read()
45
  wav_bytes = forward_gpu(file_content, inp_npy_path, inp_text, time_step=infer_timestep, p_w=p_w, t_w=t_w)
@@ -88,7 +88,7 @@ if __name__ == '__main__':
88
  description="Upload a speech clip as a reference for timbre, " +
89
  "upload the pre-extracted latent file, "+
90
  "input the target text, and receive the cloned voice. "+
91
- "Tip: a generation process should be within 120s (check if your input text are too long).", concurrency_limit=1)
92
  api_interface.launch(server_name='0.0.0.0', server_port=7860, debug=True)
93
  for p in processes:
94
  p.join()
 
39
  try:
40
  convert_to_wav(inp_audio_path)
41
  wav_path = os.path.splitext(inp_audio_path)[0] + '.wav'
42
+ cut_wav(wav_path, max_len=24)
43
  with open(wav_path, 'rb') as file:
44
  file_content = file.read()
45
  wav_bytes = forward_gpu(file_content, inp_npy_path, inp_text, time_step=infer_timestep, p_w=p_w, t_w=t_w)
 
88
  description="Upload a speech clip as a reference for timbre, " +
89
  "upload the pre-extracted latent file, "+
90
  "input the target text, and receive the cloned voice. "+
91
+ "Tip: a generation process should be within 120s (check if your input text are too long). Please use the system gently, as excessive load or languages other than English or Chinese may cause crashes and disrupt access for other users.", concurrency_limit=1)
92
  api_interface.launch(server_name='0.0.0.0', server_port=7860, debug=True)
93
  for p in processes:
94
  p.join()