Pendrokar commited on
Commit
fb84fae
·
1 Parent(s): 8ef12a5

GPTsovits Pro

Browse files
Files changed (2) hide show
  1. app/models.py +27 -0
  2. test_tts_sovits.py +3 -2
app/models.py CHANGED
@@ -76,6 +76,7 @@ AVAILABLE_MODELS = {
76
 
77
  # GPT-SoVITS
78
  # 'lj1995/GPT-SoVITS-v2': 'lj1995/GPT-SoVITS-v2',
 
79
 
80
  # OuteTTS 500M
81
  # 'OuteAI/OuteTTS-0.2-500M-Demo': 'OuteAI/OuteTTS-0.2-500M-Demo',
@@ -466,6 +467,17 @@ HF_SPACES = {
466
  'title': 'Outclassed',
467
  },
468
 
 
 
 
 
 
 
 
 
 
 
 
469
  # OuteTTS v0.2 500M
470
  'ameerazam08/OuteTTS-0.2-500M-Demo': {
471
  'name': 'OuteTTS v0.2 500M',
@@ -854,6 +866,21 @@ OVERRIDE_INPUTS = {
854
  'if_freeze': False,
855
  'inp_refs': None,
856
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
857
  'ameerazam08/OuteTTS-0.2-500M-Demo': {
858
  1: 0.1, # temperature
859
  2: 1.1, # repetition_penalty
 
76
 
77
  # GPT-SoVITS
78
  # 'lj1995/GPT-SoVITS-v2': 'lj1995/GPT-SoVITS-v2',
79
+ 'lj1995/GPT-SoVITS-ProPlus': 'lj1995/GPT-SoVITS-ProPlus',
80
 
81
  # OuteTTS 500M
82
  # 'OuteAI/OuteTTS-0.2-500M-Demo': 'OuteAI/OuteTTS-0.2-500M-Demo',
 
467
  'title': 'Outclassed',
468
  },
469
 
470
+ # GPT-SoVITS ProPlus
471
+ 'lj1995/GPT-SoVITS-ProPlus': {
472
+ 'name': 'GPT-SoVITS ProPlus',
473
+ 'function': '/get_tts_wav',
474
+ 'text_param_index': 'text',
475
+ 'return_audio_index': 0,
476
+ 'is_zero_gpu_space': True,
477
+ 'series': 'GPT-SoVITS',
478
+ 'title': 'Outclassed',
479
+ },
480
+
481
  # OuteTTS v0.2 500M
482
  'ameerazam08/OuteTTS-0.2-500M-Demo': {
483
  'name': 'OuteTTS v0.2 500M',
 
866
  'if_freeze': False,
867
  'inp_refs': None,
868
  },
869
+ 'lj1995/GPT-SoVITS-ProPlus': {
870
+ 'ref_wav_path': handle_file('voice_samples/EN_B00004_S00051_W000213.wav'),
871
+ 'prompt_text': "Our model manager is Graham, whom we observed leading a small team of chemical engineers within a multinational European firm we'll call",
872
+ 'prompt_language': "英文", # "English" in Japanese
873
+ # text: "Please surprise me and speak in whatever voice you enjoy.",
874
+ 'text_language': "英文", # "English" in Japanese
875
+ 'how_to_cut': "不切", # "No slice" in Japanese
876
+ 'top_k': 15,
877
+ 'top_p': 1,
878
+ 'temperature': 1,
879
+ 'ref_free': False,
880
+ 'speed': 1,
881
+ 'if_freeze': False,
882
+ 'inp_refs': None,
883
+ },
884
  'ameerazam08/OuteTTS-0.2-500M-Demo': {
885
  1: 0.1, # temperature
886
  2: 1.1, # repetition_penalty
test_tts_sovits.py CHANGED
@@ -2,8 +2,9 @@ import os
2
  from test_overrides import _get_param_examples, _override_params
3
  from gradio_client import Client, handle_file
4
 
5
- model = "Pendrokar/GPT-SoVITS-v2"
6
- # lj1995/GPT-SoVITS-v2
 
7
  client = Client(model, hf_token=os.getenv('HF_TOKEN'))
8
  endpoints = client.view_api(all_endpoints=True, print_info=False, return_format='dict')
9
  # print(endpoints)
 
2
  from test_overrides import _get_param_examples, _override_params
3
  from gradio_client import Client, handle_file
4
 
5
+ # model = "Pendrokar/GPT-SoVITS-v2"
6
+ # model = "lj1995/GPT-SoVITS-v2"
7
+ model = "lj1995/GPT-SoVITS-ProPlus"
8
  client = Client(model, hf_token=os.getenv('HF_TOKEN'))
9
  endpoints = client.view_api(all_endpoints=True, print_info=False, return_format='dict')
10
  # print(endpoints)