File size: 329 Bytes
be37e95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr
import os

def bashkir_tts(text):
    os.system(f'espeak-ng -v ba "{text}" -w output.wav')
    return "output.wav"

iface = gr.Interface(
    fn=bashkir_tts,
    inputs=gr.Textbox(label="Nhập văn bản tiếng Bashkir"),
    outputs=gr.Audio(label="Giọng nói"),
    title="Bashkir TTS"
)

iface.launch()