fix names
Browse files
app.py
CHANGED
@@ -63,11 +63,11 @@ global_phonemizer_rossellones = phonemizer.backend.EspeakBackend(
|
|
63 |
|
64 |
def phonemiser(text, dialect):
|
65 |
phonemizers = {"Central": global_phonemizer_central,
|
66 |
-
"
|
67 |
-
"
|
68 |
"Balear": global_phonemizer_balear,
|
69 |
-
"
|
70 |
-
"
|
71 |
|
72 |
fonemitzador = phonemizers[dialect] #Set correct dialect for the phonemiser
|
73 |
# synthesize
|
@@ -120,7 +120,7 @@ with gr.Blocks(theme=theme) as app:
|
|
120 |
lines=4
|
121 |
)
|
122 |
|
123 |
-
dialect = gr.Dropdown(label="Dialect", choices=["Central", "
|
124 |
with gr.Row(variant="panel"):
|
125 |
clear_btn = gr.Button(
|
126 |
"Clean",
|
@@ -139,8 +139,8 @@ with gr.Blocks(theme=theme) as app:
|
|
139 |
label="Examples",
|
140 |
examples=[
|
141 |
["Les coses importants són les que no ho semblen.", "Central"],
|
142 |
-
["Les coses importants són les que no ho semblen.", "
|
143 |
-
["Les coses importants són les que no ho semblen.", "
|
144 |
["Les coses importants són les que no ho semblen.","Balear"],
|
145 |
],
|
146 |
inputs=[input_, dialect],
|
|
|
63 |
|
64 |
def phonemiser(text, dialect):
|
65 |
phonemizers = {"Central": global_phonemizer_central,
|
66 |
+
"Valencia": global_phonemizer_valencia,
|
67 |
+
"Occidental": global_phonemizer_occidental,
|
68 |
"Balear": global_phonemizer_balear,
|
69 |
+
"Alguerès": global_phonemizer_algueres,
|
70 |
+
"Rosellonès": global_phonemizer_rossellones}
|
71 |
|
72 |
fonemitzador = phonemizers[dialect] #Set correct dialect for the phonemiser
|
73 |
# synthesize
|
|
|
120 |
lines=4
|
121 |
)
|
122 |
|
123 |
+
dialect = gr.Dropdown(label="Dialect", choices=["Central", "Valencia", "Occidental", "Balear", "Alguerès", "Rosellonès"], value="Central")
|
124 |
with gr.Row(variant="panel"):
|
125 |
clear_btn = gr.Button(
|
126 |
"Clean",
|
|
|
139 |
label="Examples",
|
140 |
examples=[
|
141 |
["Les coses importants són les que no ho semblen.", "Central"],
|
142 |
+
["Les coses importants són les que no ho semblen.", "Valencia",],
|
143 |
+
["Les coses importants són les que no ho semblen.", "Occidental",],
|
144 |
["Les coses importants són les que no ho semblen.","Balear"],
|
145 |
],
|
146 |
inputs=[input_, dialect],
|