naonauno commited on
Commit
a228aa2
·
verified ·
1 Parent(s): 8154f9c

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +3 -2
  2. requirements.txt +2 -0
app.py CHANGED
@@ -99,7 +99,8 @@ with gr.Blocks() as demo:
99
  with gr.Tab("Speech to Speech"):
100
  with gr.Row():
101
  with gr.Column():
102
- audio_input = gr.Audio(label="Input Audio", source="microphone", type="filepath")
 
103
  voice_dropdown_s2s = gr.Dropdown(choices=list(VOICE_LIST.keys()), label="Select Voice")
104
 
105
  with gr.Row():
@@ -119,4 +120,4 @@ with gr.Blocks() as demo:
119
  outputs=[audio_output_s2s, text_output]
120
  )
121
 
122
- demo.launch()
 
99
  with gr.Tab("Speech to Speech"):
100
  with gr.Row():
101
  with gr.Column():
102
+ # Updated Audio component initialization
103
+ audio_input = gr.Audio(label="Input Audio", sources=["microphone", "upload"])
104
  voice_dropdown_s2s = gr.Dropdown(choices=list(VOICE_LIST.keys()), label="Select Voice")
105
 
106
  with gr.Row():
 
120
  outputs=[audio_output_s2s, text_output]
121
  )
122
 
123
+ demo.launch()
requirements.txt CHANGED
@@ -2,3 +2,5 @@ gradio==4.19.2
2
  elevenlabs==0.2.27
3
  SpeechRecognition==3.10.1
4
  pydub==0.25.1
 
 
 
2
  elevenlabs==0.2.27
3
  SpeechRecognition==3.10.1
4
  pydub==0.25.1
5
+ ffmpeg-python==0.2.0
6
+ python-multipart==0.0.9