khof312 commited on
Commit
b9c3584
1 Parent(s): e42ffa2

Add support for finetuned Spanish models.

Browse files
Files changed (1) hide show
  1. app.py +26 -1
app.py CHANGED
@@ -50,6 +50,10 @@ type=['wav'])
50
  if tts_lang=="swh":
51
  finetuned_mms1 = synth_mms(tts_text, "khof312/mms-tts-swh-female-1")
52
  finetuned_mms2 = synth_mms(tts_text, "khof312/mms-tts-swh-female-2")
 
 
 
 
53
 
54
  #vc_mms
55
  #vc_coqui
@@ -92,13 +96,34 @@ type=['wav'])
92
  row1[1].write("**Configuration**")
93
  row1[2].write("**Audio**")
94
 
95
-
96
  row2[0].write(f"Meta MMS")
97
  row2[1].write("female 1")
98
  row2[2].audio(finetuned_mms1[0], sample_rate = finetuned_mms1[1])
99
  row3[0].write(f"Meta MMS")
100
  row3[1].write("female 2")
101
  row3[2].audio(finetuned_mms2[0], sample_rate = finetuned_mms2[1])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
 
103
  st.divider()
104
 
 
50
  if tts_lang=="swh":
51
  finetuned_mms1 = synth_mms(tts_text, "khof312/mms-tts-swh-female-1")
52
  finetuned_mms2 = synth_mms(tts_text, "khof312/mms-tts-swh-female-2")
53
+ if tts_lang=="spa":
54
+ finetuned_mms1 = synth_mms(tts_text, "ylacombe/mms-spa-finetuned-argentinian-monospeaker")
55
+ finetuned_mms2 = synth_mms(tts_text, "ylacombe/mms-spa-finetuned-chilean-monospeaker")
56
+ finetuned_mms3 = synth_mms(tts_text, "ylacombe/mms-spa-finetuned-colombian-monospeaker")
57
 
58
  #vc_mms
59
  #vc_coqui
 
96
  row1[1].write("**Configuration**")
97
  row1[2].write("**Audio**")
98
 
 
99
  row2[0].write(f"Meta MMS")
100
  row2[1].write("female 1")
101
  row2[2].audio(finetuned_mms1[0], sample_rate = finetuned_mms1[1])
102
  row3[0].write(f"Meta MMS")
103
  row3[1].write("female 2")
104
  row3[2].audio(finetuned_mms2[0], sample_rate = finetuned_mms2[1])
105
+
106
+
107
+ if tts_lang == "spa":
108
+ "### Fine Tuned"
109
+ row1 = st.columns([1,1,2])
110
+ row2 = st.columns([1,1,2])
111
+ row3 = st.columns([1,1,2])
112
+ row4 = st.columns([1,1,2])
113
+
114
+ row1[0].write("**Model**")
115
+ row1[1].write("**Configuration**")
116
+ row1[2].write("**Audio**")
117
+
118
+ row2[0].write(f"Meta MMS")
119
+ row2[1].write("ylacombe - Argentinian")
120
+ row2[2].audio(finetuned_mms1[0], sample_rate = finetuned_mms1[1])
121
+ row3[0].write(f"Meta MMS")
122
+ row3[1].write("ylacombe - Chilean")
123
+ row3[2].audio(finetuned_mms2[0], sample_rate = finetuned_mms2[1])
124
+ row4[0].write(f"Meta MMS")
125
+ row4[1].write("ylacombe - Colombian")
126
+ row4[2].audio(finetuned_mms3[0], sample_rate = finetuned_mms3[1])
127
 
128
  st.divider()
129