Spaces:
Runtime error
Runtime error
Commit
·
bfddae3
1
Parent(s):
5bc3aca
update app.py
Browse files
app.py
CHANGED
@@ -87,14 +87,8 @@ def inference(
|
|
87 |
# torchaudio.save("output.wav", wav.cpu(), 24000)
|
88 |
# yield (None, gr.make_waveform(audio="output.wav",))
|
89 |
def main():
|
90 |
-
title = "Tortoise TTS
|
91 |
description = """
|
92 |
-
A text-to-speech system which powers lot of organizations in Speech synthesis domain.
|
93 |
-
<br/>
|
94 |
-
a model with strong multi-voice capabilities, highly realistic prosody and intonation.
|
95 |
-
<br/>
|
96 |
-
for faster inference, use the 'ultra_fast' preset and duplicate space if you don't want to wait in a queue.
|
97 |
-
<br/>
|
98 |
"""
|
99 |
text = gr.Textbox(
|
100 |
lines=4,
|
@@ -104,12 +98,6 @@ def main():
|
|
104 |
voice = gr.Dropdown(
|
105 |
VOICE_OPTIONS, value="jane_eyre", label="Select voice:", type="value"
|
106 |
)
|
107 |
-
voice_b = gr.Dropdown(
|
108 |
-
VOICE_OPTIONS,
|
109 |
-
value="disabled",
|
110 |
-
label="(Optional) Select second voice:",
|
111 |
-
type="value",
|
112 |
-
)
|
113 |
|
114 |
output_audio = gr.Audio(label="streaming audio:", streaming=True, autoplay=True)
|
115 |
# download_audio = gr.Audio(label="dowanload audio:")
|
@@ -117,9 +105,7 @@ def main():
|
|
117 |
fn=inference,
|
118 |
inputs=[
|
119 |
text,
|
120 |
-
script,
|
121 |
voice,
|
122 |
-
voice_b,
|
123 |
split_by_newline,
|
124 |
],
|
125 |
title=title,
|
|
|
87 |
# torchaudio.save("output.wav", wav.cpu(), 24000)
|
88 |
# yield (None, gr.make_waveform(audio="output.wav",))
|
89 |
def main():
|
90 |
+
title = "Tortoise TTS"
|
91 |
description = """
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
"""
|
93 |
text = gr.Textbox(
|
94 |
lines=4,
|
|
|
98 |
voice = gr.Dropdown(
|
99 |
VOICE_OPTIONS, value="jane_eyre", label="Select voice:", type="value"
|
100 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
output_audio = gr.Audio(label="streaming audio:", streaming=True, autoplay=True)
|
103 |
# download_audio = gr.Audio(label="dowanload audio:")
|
|
|
105 |
fn=inference,
|
106 |
inputs=[
|
107 |
text,
|
|
|
108 |
voice,
|
|
|
109 |
split_by_newline,
|
110 |
],
|
111 |
title=title,
|