NoCrypt commited on
Commit
5d57342
1 Parent(s): 3ec7c97

Add examples

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -233,7 +233,7 @@ with app:
233
  value=models[0],
234
  )
235
  f0_key_up = gr.Number(
236
- label="Tune (+12 = 1 octave up from edge-tts, the best value depends on the models and speakers)",
237
  value=6,
238
  )
239
  with gr.Column():
@@ -295,5 +295,16 @@ with app:
295
  ],
296
  [info_text, edge_tts_output, tts_output],
297
  )
 
 
 
 
 
 
 
 
 
 
 
298
 
299
  app.launch()
 
233
  value=models[0],
234
  )
235
  f0_key_up = gr.Number(
236
+ label="Tune",
237
  value=6,
238
  )
239
  with gr.Column():
 
295
  ],
296
  [info_text, edge_tts_output, tts_output],
297
  )
298
+ with gr.Row():
299
+ examples = gr.Examples(
300
+ examples_per_page=100,
301
+ examples=[
302
+ ["こんにちは、私の名前は初音ミクです!", "ja-JP-NanamiNeural-Female", 6],
303
+ ["Hello there. My name is Hatsune Miku!","en-CA-ClaraNeural-Female", 6],
304
+ ["Halo. Nama saya Hatsune Miku!","id-ID-GadisNeural-Female", 4],
305
+ ["Halo. Jenengku Hatsune Miku!","jv-ID-SitiNeural-Female", 10],
306
+ ],
307
+ inputs=[tts_text, tts_voice, f0_key_up],
308
+ )
309
 
310
  app.launch()