Inial commited on
Commit
be37e95
verified
1 Parent(s): a34623c

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+
4
+ def bashkir_tts(text):
5
+ os.system(f'espeak-ng -v ba "{text}" -w output.wav')
6
+ return "output.wav"
7
+
8
+ iface = gr.Interface(
9
+ fn=bashkir_tts,
10
+ inputs=gr.Textbox(label="Nh岷璸 v膬n b岷 ti岷縩g Bashkir"),
11
+ outputs=gr.Audio(label="Gi峄峮g n贸i"),
12
+ title="Bashkir TTS"
13
+ )
14
+
15
+ iface.launch()