Spaces:
Build error
Build error
| 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() |