bashkirtts / app.py
Inial's picture
Create app.py
be37e95 verified
raw
history blame contribute delete
329 Bytes
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()