Update app.py
Browse files
app.py
CHANGED
|
@@ -142,7 +142,7 @@ if __name__ == '__main__':
|
|
| 142 |
|
| 143 |
# Tab 2: Antarmuka Suara-ke-Suara (Baru)
|
| 144 |
with gr.TabItem("Voice to Speech"):
|
| 145 |
-
audio_input = gr.Audio(
|
| 146 |
tts_speaker_audio = gr.Dropdown(label="Speaker", choices=speakers, type="index", value=speakers[0])
|
| 147 |
tts_speed_audio = gr.Slider(label="Speed", value=1, minimum=0.1, maximum=2, step=0.1)
|
| 148 |
transcribed_text_output = gr.Textbox(label="Transcribed Text", interactive=False)
|
|
|
|
| 142 |
|
| 143 |
# Tab 2: Antarmuka Suara-ke-Suara (Baru)
|
| 144 |
with gr.TabItem("Voice to Speech"):
|
| 145 |
+
audio_input = gr.Audio(type="filepath", label="Record or Upload Voice")
|
| 146 |
tts_speaker_audio = gr.Dropdown(label="Speaker", choices=speakers, type="index", value=speakers[0])
|
| 147 |
tts_speed_audio = gr.Slider(label="Speed", value=1, minimum=0.1, maximum=2, step=0.1)
|
| 148 |
transcribed_text_output = gr.Textbox(label="Transcribed Text", interactive=False)
|