google fonts
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def generate_voice(text):
|
|
12 |
audio = tts.synthesis(text)
|
13 |
return (audio['sampling_rate'], audio['x'])
|
14 |
|
15 |
-
with gr.Blocks(title="Khmer Text to Speech with MMS") as blocks:
|
16 |
|
17 |
gr.Markdown('# Khmer Text to Speech - MMS')
|
18 |
gr.Markdown('MMS: Scaling Speech Technology to 1000+ languages by Meta AI')
|
@@ -20,10 +20,7 @@ with gr.Blocks(title="Khmer Text to Speech with MMS") as blocks:
|
|
20 |
input_text = gr.Textbox(label="α’αααα", lines=3)
|
21 |
examples = gr.Examples(examples=["αααβααΆβααΌαααβααααααααβαααβαααΈαα‘αΆαα", "αααααααα α¬αααααααα ααΆαααααα’αααΌααααα
αααααααααΆαα·ααααΆααααΆααα½ααααα»αααααα
αα
α»ααααααα"], inputs=[input_text])
|
22 |
|
23 |
-
run_button = gr.Button(
|
24 |
-
text="Generate",
|
25 |
-
type="button",
|
26 |
-
)
|
27 |
|
28 |
out_audio = gr.Audio(
|
29 |
label="ααα‘αααααααΆααααααΎα",
|
|
|
12 |
audio = tts.synthesis(text)
|
13 |
return (audio['sampling_rate'], audio['x'])
|
14 |
|
15 |
+
with gr.Blocks(title="Khmer Text to Speech with MMS", theme=gr.themes.Default(font=[gr.themes.GoogleFont("Noto Sans Khmer"), "Arial", "sans-serif"])) as blocks:
|
16 |
|
17 |
gr.Markdown('# Khmer Text to Speech - MMS')
|
18 |
gr.Markdown('MMS: Scaling Speech Technology to 1000+ languages by Meta AI')
|
|
|
20 |
input_text = gr.Textbox(label="α’αααα", lines=3)
|
21 |
examples = gr.Examples(examples=["αααβααΆβααΌαααβααααααααβαααβαααΈαα‘αΆαα", "αααααααα α¬αααααααα ααΆαααααα’αααΌααααα
αααααααααΆαα·ααααΆααααΆααα½ααααα»αααααα
αα
α»ααααααα"], inputs=[input_text])
|
22 |
|
23 |
+
run_button = gr.Button(value="αααααΎα")
|
|
|
|
|
|
|
24 |
|
25 |
out_audio = gr.Audio(
|
26 |
label="ααα‘αααααααΆααααααΎα",
|