Spaces:
Build error
Build error
File size: 597 Bytes
287fee9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import gradio as gr
import outetts
interface = outetts.Interface(
config=outetts.ModelConfig.auto_config(
model="OuteAI/OuteTTS-1.0-0.6B",
backend=outetts.Backend.HF
)
)
def tts(text):
speaker = interface.load_default_speaker("EN-FEMALE-1-NEUTRAL")
output = interface.generate(
config=outetts.GenerationConfig(
text=text,
speaker=speaker,
)
)
return output.audio
gr.Interface(
fn=tts,
inputs=gr.Textbox(label="Texte"),
outputs=gr.Audio(label="Voix générée"),
title="OuteTTS Cloud TTS"
).launch() |