seanghay commited on
Commit
0cd4012
β€’
1 Parent(s): a09ab24

google fonts

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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="αžŸαŸ†αž‘αŸαž„αžŠαŸ‚αž›αž”αžΆαž“αž”αž„αŸ’αž€αžΎαž",