csukuangfj commited on
Commit
34a51df
1 Parent(s): 67416e8

add more models

Browse files
Files changed (1) hide show
  1. model.py +14 -3
model.py CHANGED
@@ -359,6 +359,8 @@ def get_pretrained_model(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
359
  return afrikaans_models[repo_id](repo_id, speed)
360
  elif repo_id in gujarati_models:
361
  return gujarati_models[repo_id](repo_id, speed)
 
 
362
  else:
363
  raise ValueError(f"Unsupported repo_id: {repo_id}")
364
 
@@ -443,8 +445,8 @@ spanish_models = {
443
  "csukuangfj/vits-piper-es-glados-medium": _get_vits_piper,
444
  "csukuangfj/vits-piper-es_ES-carlfm-x_low": _get_vits_piper,
445
  "csukuangfj/vits-piper-es_ES-davefx-medium": _get_vits_piper,
446
- "csukuangfj/vits-piper-es_ES-mls_10246-low": _get_vits_piper,
447
- "csukuangfj/vits-piper-es_ES-mls_9972-low": _get_vits_piper,
448
  "csukuangfj/vits-piper-es_ES-sharvard-medium": _get_vits_piper, # 2 speakers
449
  "csukuangfj/vits-piper-es_MX-ald-medium": _get_vits_piper,
450
  "csukuangfj/vits-mimic3-es_ES-m-ailabs_low": _get_vits_piper,
@@ -499,7 +501,7 @@ danish_models = {
499
 
500
  greek_models = {
501
  "csukuangfj/vits-piper-el_GR-rapunzelina-low": _get_vits_piper,
502
- "csukuangfj/vits-mimic3-el_GR-rapunzelina_low": _get_vits_piper,
503
  }
504
 
505
  finnish_models = {
@@ -514,6 +516,7 @@ hungarian_models = {
514
  "csukuangfj/vits-piper-hu_HU-anna-medium": _get_vits_piper,
515
  "csukuangfj/vits-piper-hu_HU-berta-medium": _get_vits_piper,
516
  "csukuangfj/vits-piper-hu_HU-imre-medium": _get_vits_piper,
 
517
  }
518
 
519
  icelandic_models = {
@@ -544,6 +547,7 @@ luxembourgish_models = {
544
  nepali_models = {
545
  "csukuangfj/vits-piper-ne_NP-google-medium": _get_vits_piper,
546
  "csukuangfj/vits-piper-ne_NP-google-x_low": _get_vits_piper,
 
547
  }
548
 
549
  dutch_models = {
@@ -566,6 +570,7 @@ polish_models = {
566
  "csukuangfj/vits-piper-pl_PL-gosia-medium": _get_vits_piper,
567
  "csukuangfj/vits-piper-pl_PL-mc_speech-medium": _get_vits_piper,
568
  "csukuangfj/vits-piper-pl_PL-mls_6892-low": _get_vits_piper,
 
569
  }
570
 
571
  portuguese_models = {
@@ -608,6 +613,7 @@ vietnamese_models = {
608
  "csukuangfj/vits-piper-vi_VN-25hours_single-low": _get_vits_piper,
609
  "csukuangfj/vits-piper-vi_VN-vais1000-medium": _get_vits_piper,
610
  "csukuangfj/vits-piper-vi_VN-vivos-x_low": _get_vits_piper,
 
611
  }
612
 
613
  bulgarian_models = {
@@ -673,6 +679,10 @@ gujarati_models = {
673
  "csukuangfj/vits-mimic3-gu_IN-cmu-indic_low": _get_vits_piper,
674
  }
675
 
 
 
 
 
676
 
677
  language_to_models = {
678
  "English": list(english_models.keys()),
@@ -719,6 +729,7 @@ language_to_models = {
719
  "Swahili": list(swahili_models.keys()),
720
  "Swedish": list(swedish_models.keys()),
721
  "Thai": list(thai_models.keys()),
 
722
  "Turkish": list(turkish_models.keys()),
723
  "Ukrainian": list(ukrainian_models.keys()),
724
  "Vietnamese": list(vietnamese_models.keys()),
 
359
  return afrikaans_models[repo_id](repo_id, speed)
360
  elif repo_id in gujarati_models:
361
  return gujarati_models[repo_id](repo_id, speed)
362
+ elif repo_id in tswana_models:
363
+ return tswana_models[repo_id](repo_id, speed)
364
  else:
365
  raise ValueError(f"Unsupported repo_id: {repo_id}")
366
 
 
445
  "csukuangfj/vits-piper-es-glados-medium": _get_vits_piper,
446
  "csukuangfj/vits-piper-es_ES-carlfm-x_low": _get_vits_piper,
447
  "csukuangfj/vits-piper-es_ES-davefx-medium": _get_vits_piper,
448
+ # "csukuangfj/vits-piper-es_ES-mls_10246-low": _get_vits_piper,
449
+ # "csukuangfj/vits-piper-es_ES-mls_9972-low": _get_vits_piper,
450
  "csukuangfj/vits-piper-es_ES-sharvard-medium": _get_vits_piper, # 2 speakers
451
  "csukuangfj/vits-piper-es_MX-ald-medium": _get_vits_piper,
452
  "csukuangfj/vits-mimic3-es_ES-m-ailabs_low": _get_vits_piper,
 
501
 
502
  greek_models = {
503
  "csukuangfj/vits-piper-el_GR-rapunzelina-low": _get_vits_piper,
504
+ # "csukuangfj/vits-mimic3-el_GR-rapunzelina_low": _get_vits_piper,
505
  }
506
 
507
  finnish_models = {
 
516
  "csukuangfj/vits-piper-hu_HU-anna-medium": _get_vits_piper,
517
  "csukuangfj/vits-piper-hu_HU-berta-medium": _get_vits_piper,
518
  "csukuangfj/vits-piper-hu_HU-imre-medium": _get_vits_piper,
519
+ "csukuangfj/vits-mimic3-hu_HU-diana-majlinger_low": _get_vits_piper,
520
  }
521
 
522
  icelandic_models = {
 
547
  nepali_models = {
548
  "csukuangfj/vits-piper-ne_NP-google-medium": _get_vits_piper,
549
  "csukuangfj/vits-piper-ne_NP-google-x_low": _get_vits_piper,
550
+ "csukuangfj/vits-mimic3-ne_NP-ne-google_low": _get_vits_piper,
551
  }
552
 
553
  dutch_models = {
 
570
  "csukuangfj/vits-piper-pl_PL-gosia-medium": _get_vits_piper,
571
  "csukuangfj/vits-piper-pl_PL-mc_speech-medium": _get_vits_piper,
572
  "csukuangfj/vits-piper-pl_PL-mls_6892-low": _get_vits_piper,
573
+ "csukuangfj/vits-mimic3-pl_PL-m-ailabs_low": _get_vits_piper,
574
  }
575
 
576
  portuguese_models = {
 
613
  "csukuangfj/vits-piper-vi_VN-25hours_single-low": _get_vits_piper,
614
  "csukuangfj/vits-piper-vi_VN-vais1000-medium": _get_vits_piper,
615
  "csukuangfj/vits-piper-vi_VN-vivos-x_low": _get_vits_piper,
616
+ "csukuangfj/vits-mimic3-vi_VN-vais1000_low": _get_vits_piper,
617
  }
618
 
619
  bulgarian_models = {
 
679
  "csukuangfj/vits-mimic3-gu_IN-cmu-indic_low": _get_vits_piper,
680
  }
681
 
682
+ tswana_models = {
683
+ "csukuangfj/vits-mimic3-tn_ZA-google-nwu_low": _get_vits_piper,
684
+ }
685
+
686
 
687
  language_to_models = {
688
  "English": list(english_models.keys()),
 
729
  "Swahili": list(swahili_models.keys()),
730
  "Swedish": list(swedish_models.keys()),
731
  "Thai": list(thai_models.keys()),
732
+ "Tswana": list(tswana_models.keys()),
733
  "Turkish": list(turkish_models.keys()),
734
  "Ukrainian": list(ukrainian_models.keys()),
735
  "Vietnamese": list(vietnamese_models.keys()),