Katock commited on
Commit
6c20679
·
1 Parent(s): 8b14656

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -70,8 +70,8 @@ def create_fn(model, spk):
70
  communicate = edge_tts.Communicate(text=input_text,
71
  voice=voice,
72
  rate=ratestr)
73
- with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as temp_file:
74
- temp_path = temp_file.name
75
  await communicate.save(temp_path)
76
 
77
  audio, sr = librosa.load(temp_path)
@@ -100,9 +100,9 @@ if __name__ == '__main__':
100
  models.append((name, cover, create_fn(model, name)))
101
  with gr.Blocks() as app:
102
  gr.Markdown(
103
- "# <center> 游戏角色语音生成\n"
104
  "## <center> 模型作者:B站[Cyber蝈蝈总](https://space.bilibili.com/37706580)\n"
105
- "<center> 罪恶都市人物AI语音请移步[GTAVC_SOVITS](https://huggingface.co/spaces/GroveStreet/GTAVC_SOVITS) \n"
106
  "<center> 使用此资源创作的作品请标明出处,CJ有两个模型,carl1更清晰,carl2音域广\n"
107
  )
108
  with gr.Tabs():
 
70
  communicate = edge_tts.Communicate(text=input_text,
71
  voice=voice,
72
  rate=ratestr)
73
+ with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp_file:
74
+ temp_path = tmp_file.name
75
  await communicate.save(temp_path)
76
 
77
  audio, sr = librosa.load(temp_path)
 
100
  models.append((name, cover, create_fn(model, name)))
101
  with gr.Blocks() as app:
102
  gr.Markdown(
103
+ "# <center> 圣安地列斯角色语音生成\n"
104
  "## <center> 模型作者:B站[Cyber蝈蝈总](https://space.bilibili.com/37706580)\n"
105
+ "<center> 罪恶都市人物AI语音请移步[GTAVC](https://huggingface.co/spaces/GroveStreet/GTAVC_SOVITS) \n"
106
  "<center> 使用此资源创作的作品请标明出处,CJ有两个模型,carl1更清晰,carl2音域广\n"
107
  )
108
  with gr.Tabs():