Spaces:
Running
on
Zero
Running
on
Zero
txya900619
commited on
Commit
•
91b9da5
1
Parent(s):
e16695e
docs: update english to chinese and add coop information
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def text_to_speech(
|
|
79 |
f"句子中的[{','.join(missing_words)}]目前無法轉成 ipa。請嘗試其他句子。"
|
80 |
)
|
81 |
parsed_ipa = parse_ipa(ipa)
|
82 |
-
if use_default_emb_or_custom == "
|
83 |
wav = _do_tts(
|
84 |
model_id,
|
85 |
parsed_ipa,
|
@@ -136,7 +136,7 @@ def when_model_selected(model_id):
|
|
136 |
|
137 |
|
138 |
def use_default_emb_or_custom_radio_input(use_default_emb_or_custom):
|
139 |
-
if use_default_emb_or_custom == "
|
140 |
return gr.update(visible=True), gr.update(visible=False)
|
141 |
return gr.update(visible=False), gr.update(visible=True)
|
142 |
|
@@ -163,13 +163,13 @@ with demo:
|
|
163 |
label="模型",
|
164 |
)
|
165 |
use_default_emb_or_custom_radio = gr.Radio(
|
166 |
-
label="
|
167 |
-
choices=["
|
168 |
-
value="
|
169 |
visible=True,
|
170 |
)
|
171 |
speaker_wav = gr.Audio(
|
172 |
-
label="
|
173 |
visible=False,
|
174 |
editable=False,
|
175 |
type="filepath",
|
@@ -213,9 +213,11 @@ with demo:
|
|
213 |
"""
|
214 |
# 臺灣客語語音合成系統
|
215 |
### Taiwanese Hakka Text-to-Speech System
|
216 |
-
###
|
217 |
- **[李鴻欣 Hung-Shin Lee](mailto:[email protected])([聯和科創](https://www.104.com.tw/company/1a2x6bmu75))**
|
218 |
- **[陳力瑋 Li-Wei Chen](mailto:[email protected])([聯和科創](https://www.104.com.tw/company/1a2x6bmu75))**
|
|
|
|
|
219 |
"""
|
220 |
)
|
221 |
gr.Interface(
|
|
|
79 |
f"句子中的[{','.join(missing_words)}]目前無法轉成 ipa。請嘗試其他句子。"
|
80 |
)
|
81 |
parsed_ipa = parse_ipa(ipa)
|
82 |
+
if use_default_emb_or_custom == "預設語者":
|
83 |
wav = _do_tts(
|
84 |
model_id,
|
85 |
parsed_ipa,
|
|
|
136 |
|
137 |
|
138 |
def use_default_emb_or_custom_radio_input(use_default_emb_or_custom):
|
139 |
+
if use_default_emb_or_custom == "客製化語者":
|
140 |
return gr.update(visible=True), gr.update(visible=False)
|
141 |
return gr.update(visible=False), gr.update(visible=True)
|
142 |
|
|
|
163 |
label="模型",
|
164 |
)
|
165 |
use_default_emb_or_custom_radio = gr.Radio(
|
166 |
+
label="使用預設語者或是客製化語者",
|
167 |
+
choices=["預設語者", "客製化語者"],
|
168 |
+
value="預設語者",
|
169 |
visible=True,
|
170 |
)
|
171 |
speaker_wav = gr.Audio(
|
172 |
+
label="客製化語音",
|
173 |
visible=False,
|
174 |
editable=False,
|
175 |
type="filepath",
|
|
|
213 |
"""
|
214 |
# 臺灣客語語音合成系統
|
215 |
### Taiwanese Hakka Text-to-Speech System
|
216 |
+
### 研發團隊
|
217 |
- **[李鴻欣 Hung-Shin Lee](mailto:[email protected])([聯和科創](https://www.104.com.tw/company/1a2x6bmu75))**
|
218 |
- **[陳力瑋 Li-Wei Chen](mailto:[email protected])([聯和科創](https://www.104.com.tw/company/1a2x6bmu75))**
|
219 |
+
### 合作單位
|
220 |
+
- **[國立聯合大學智慧客家實驗室](https://www.gohakka.org)**
|
221 |
"""
|
222 |
)
|
223 |
gr.Interface(
|