Spaces:
Runtime error
Runtime error
wilton
commited on
Commit
·
212b10a
1
Parent(s):
95149f6
updating of functions, new MMS model for spanish TTS support
Browse files- app.py +9 -8
- example.wav +0 -0
app.py
CHANGED
@@ -49,13 +49,13 @@ Demo for cascaded speech-to-speech translation (STST), mapping from source speec
|
|
49 |
|
50 |
demo = gr.Blocks()
|
51 |
|
52 |
-
mic_translate = gr.Interface(
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
)
|
59 |
|
60 |
file_translate = gr.Interface(
|
61 |
fn=speech_to_speech_translation,
|
@@ -67,6 +67,7 @@ file_translate = gr.Interface(
|
|
67 |
)
|
68 |
|
69 |
with demo:
|
70 |
-
gr.TabbedInterface([
|
|
|
71 |
|
72 |
demo.launch(debug=True)
|
|
|
49 |
|
50 |
demo = gr.Blocks()
|
51 |
|
52 |
+
# mic_translate = gr.Interface(
|
53 |
+
# fn=speech_to_speech_translation,
|
54 |
+
# inputs=gr.Audio(source="microphone", type="filepath"),
|
55 |
+
# outputs=gr.Audio(label="Generated Speech :)", type="numpy"),
|
56 |
+
# title=title,
|
57 |
+
# description=description,
|
58 |
+
# )
|
59 |
|
60 |
file_translate = gr.Interface(
|
61 |
fn=speech_to_speech_translation,
|
|
|
67 |
)
|
68 |
|
69 |
with demo:
|
70 |
+
gr.TabbedInterface([file_translate], ["Audio File"])
|
71 |
+
# gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
|
72 |
|
73 |
demo.launch(debug=True)
|
example.wav
CHANGED
Binary files a/example.wav and b/example.wav differ
|
|