Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
from transformers import pipeline
|
4 |
+
|
5 |
+
#from some_rvc_module import convert_voice
|
6 |
+
|
7 |
+
def speechify(text):
|
8 |
+
synthesizer = pipeline("text-to-speech", "suno/bark")
|
9 |
+
|
10 |
+
speech = synthesizer("Look I am generating speech in three lines of code!")
|
11 |
+
|
12 |
+
#final_audio = convert_voice(tts_audio)
|
13 |
+
#return final_audio
|
14 |
+
|
15 |
+
return speech
|
16 |
+
|
17 |
+
demo = gr.Interface(fn=speechify, inputs="text", outputs="audio")
|
18 |
+
demo.launch()
|