|
import gradio as gr |
|
from adia_tts import AdiaTTS |
|
|
|
|
|
tts = AdiaTTS() |
|
|
|
def generate_speech(text): |
|
|
|
output_path, _ = tts.synthesize( |
|
text=text, |
|
description="A clear and educational voice, with a flow adapted to learning" |
|
) |
|
return output_path |
|
|
|
|
|
demo = gr.Interface( |
|
fn=generate_speech, |
|
inputs=gr.Textbox(lines=3, placeholder="Entrez votre texte ici..."), |
|
outputs=gr.Audio(type="filepath"), |
|
title="Démo TTS en Wolof", |
|
description="Démo de synthèse vocale TTS en Wolof avec le package AdiaTTS et Gradio" |
|
) |
|
|
|
demo.launch(share=True) |