Xinonria commited on
Commit
d9cfdba
1 Parent(s): 09ad14a

change name

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +0 -18
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: RubiiTTS
3
  emoji: 🏢
4
  colorFrom: purple
5
  colorTo: red
 
1
  ---
2
+ title: GPT-SoVITS-3s-cloning-free-TTS
3
  emoji: 🏢
4
  colorFrom: purple
5
  colorTo: red
app.py CHANGED
@@ -96,8 +96,6 @@ def get_characters(
96
 
97
 
98
  async def generate(selected_character=None, selected_characters=[], text="", lang="zh"):
99
- # print("-------",selected_character)
100
- # print("-------",selected_characters)
101
  if selected_character:
102
  characters = [selected_character] + selected_characters
103
  else:
@@ -148,9 +146,6 @@ async def generate(selected_character=None, selected_characters=[], text="", lan
148
  elif lang == "ko":
149
  raise gr.Error("텍스트 길이가 1024자를 초과합니다")
150
 
151
- logging.info(
152
- f"选择角色: {characters[0].get('名称')}, 文本: {text}, voice_id: {voice_ids}"
153
- )
154
  audio = await generate_api(voice_ids, text)
155
  end_time = time.time()
156
  if lang == "zh":
@@ -411,13 +406,6 @@ with gr.Blocks(title="Online Free TTS", theme=gr.themes.Soft(), head=head) as de
411
  with gr.Tab(gettext("Synthesis Voice")):
412
  with gr.Blocks():
413
  with gr.Row():
414
- # kind = gr.Dropdown(choices=["原神", "崩坏星穹铁道","鸣潮","明日方舟","其他"], value="原神", label="请选择角色类别")
415
- # choices = [
416
- # (gettext("Genshin Impact"), "原神"),
417
- # (gettext("Honkai: Star Rail"), "崩坏星穹铁道"),
418
- # (gettext("ZenZenless Zone Zero"), "绝区零"),
419
- # (gettext("Wuthering Waves"), "鸣潮"),
420
- # ]
421
  kind = gr.Dropdown(
422
  choices=category.value,
423
  value="原神",
@@ -536,12 +524,6 @@ with gr.Blocks(title="Online Free TTS", theme=gr.themes.Soft(), head=head) as de
536
  )
537
  audio_data = gr.Audio(label=gettext("Prompt Audio(min 3.2s, max 8s)"), interactive=True)
538
  create_button = gr.Button(gettext("Create Voice"), variant="primary")
539
- # gr.Examples(
540
- # examples=[
541
- # ["https://ttscdn.rubii.ai/public/tts_avatars/原神/0491eeea-f82d-42dc-a6bf-b57e38e9c148.png", "Rubii", "开心", "原神", "female", (32000, np.zeros(10000)), lang],
542
- # ],
543
- # inputs=[avatar, name, emotion, tags, gender, audio_data],
544
- # )
545
 
546
  gr.Markdown(gettext(terms))
547
  # -------------- 绑定事件 --------------
 
96
 
97
 
98
  async def generate(selected_character=None, selected_characters=[], text="", lang="zh"):
 
 
99
  if selected_character:
100
  characters = [selected_character] + selected_characters
101
  else:
 
146
  elif lang == "ko":
147
  raise gr.Error("텍스트 길이가 1024자를 초과합니다")
148
 
 
 
 
149
  audio = await generate_api(voice_ids, text)
150
  end_time = time.time()
151
  if lang == "zh":
 
406
  with gr.Tab(gettext("Synthesis Voice")):
407
  with gr.Blocks():
408
  with gr.Row():
 
 
 
 
 
 
 
409
  kind = gr.Dropdown(
410
  choices=category.value,
411
  value="原神",
 
524
  )
525
  audio_data = gr.Audio(label=gettext("Prompt Audio(min 3.2s, max 8s)"), interactive=True)
526
  create_button = gr.Button(gettext("Create Voice"), variant="primary")
 
 
 
 
 
 
527
 
528
  gr.Markdown(gettext(terms))
529
  # -------------- 绑定事件 --------------