helloWorld199 commited on
Commit
c9dd6c5
·
verified ·
1 Parent(s): d90b88d

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
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()