Spaces:
Runtime error
Runtime error
ramkamal2000
commited on
Commit
•
89594ff
1
Parent(s):
f4b54ff
tabbing
Browse files
app.py
CHANGED
@@ -161,10 +161,18 @@ def voice_conversion(ta, ra, da):
|
|
161 |
|
162 |
return (ap.sample_rate, ref_wav_voc)
|
163 |
|
164 |
-
|
165 |
fn=voice_conversion,
|
166 |
-
inputs=[
|
167 |
-
outputs=
|
168 |
)
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
demo.launch(debug=True)
|
|
|
161 |
|
162 |
return (ap.sample_rate, ref_wav_voc)
|
163 |
|
164 |
+
c3 = gr.Interface(
|
165 |
fn=voice_conversion,
|
166 |
+
inputs=[gr.Audio(label='Target Speaker - Reference Clip'), gr.Audio(label='Input Speaker - Reference Clip'), gr.Audio(label='Input Speaker - Clip To Convert')],
|
167 |
+
outputs=gr.Audio(label='Target Speaker - Converted Clip')
|
168 |
)
|
169 |
|
170 |
+
c1_m2 = gr.Interface(
|
171 |
+
fn=voice_conversion,
|
172 |
+
inputs=[gr.Audio(label='Target Speaker - Reference Clip'), gr.Audio(label='Input Speaker - Reference Clip', source='microphone'), gr.Audio(label='Input Speaker - Clip To Convert', source='microphone')],
|
173 |
+
outputs=gr.Audio(label='Target Speaker - Converted Clip')
|
174 |
+
)
|
175 |
+
|
176 |
+
demo = gr.TabbedInterface([c3, c1_m2], ["Pre-Recorded", "Microphone"])
|
177 |
+
|
178 |
demo.launch(debug=True)
|