Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ pipe = pipeline("automatic-speech-recognition", model=model_id)
|
|
14 |
|
15 |
# TTS Initialization
|
16 |
VOICE_OPTIONS = [
|
17 |
-
"
|
18 |
"indian_M_1", "indian_M_2", "indian_M_3"
|
19 |
]
|
20 |
tts = TextToSpeech(kv_cache=True, use_deepspeed=True, half=True)
|
@@ -55,7 +55,7 @@ interface = gr.Interface(
|
|
55 |
fn=convert_audio,
|
56 |
inputs=[
|
57 |
gr.Audio(source="upload", type="filepath"),
|
58 |
-
gr.Dropdown(VOICE_OPTIONS, value="
|
59 |
],
|
60 |
outputs=gr.Audio(label="streaming audio:", streaming=True, autoplay=True),
|
61 |
title="STT to TTS",
|
|
|
14 |
|
15 |
# TTS Initialization
|
16 |
VOICE_OPTIONS = [
|
17 |
+
"indian_f_1", "indian_F_2", "indian_F_3",
|
18 |
"indian_M_1", "indian_M_2", "indian_M_3"
|
19 |
]
|
20 |
tts = TextToSpeech(kv_cache=True, use_deepspeed=True, half=True)
|
|
|
55 |
fn=convert_audio,
|
56 |
inputs=[
|
57 |
gr.Audio(source="upload", type="filepath"),
|
58 |
+
gr.Dropdown(VOICE_OPTIONS, value="indian_f_1", label="Select voice:", type="value")
|
59 |
],
|
60 |
outputs=gr.Audio(label="streaming audio:", streaming=True, autoplay=True),
|
61 |
title="STT to TTS",
|