Spaces:
Build error
Build error
File size: 428 Bytes
c9dd6c5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from transformers import pipeline
#from some_rvc_module import convert_voice
def speechify(text):
synthesizer = pipeline("text-to-speech", "suno/bark")
speech = synthesizer("Look I am generating speech in three lines of code!")
#final_audio = convert_voice(tts_audio)
#return final_audio
return speech
demo = gr.Interface(fn=speechify, inputs="text", outputs="audio")
demo.launch() |