Samuel L Meyers commited on
Commit
caf7ab1
·
1 Parent(s): 4e554fb
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -112,6 +112,7 @@ def main():
112
  stt_input_mic = gr.Audio(source="microphone", type="filepath", label="Record")
113
  stt_input_file = gr.Audio(source="upload", type="filepath", label="Upload")
114
  with gr.Column(variant="panel"):
 
115
  stt_transcribe_btn = gr.Button("Transcribe")
116
 
117
  def synthesize_audio(text_str: str, model_name_str: str, speaker_str: str):
@@ -140,7 +141,7 @@ def main():
140
  return gr.Audio.update(value=(tts.get_sampling_rate(), samples))
141
 
142
  generate.click(synthesize_audio, inputs=[text, model_name, speaker], outputs=audio, api_name="synthesize")
143
- stt_transcribe_btn.click(transcribe_stt, inputs=stt_input_file, outputs=text, api_name="transcribe")
144
 
145
  demo.queue(concurrency_count=1).launch()
146
 
 
112
  stt_input_mic = gr.Audio(source="microphone", type="filepath", label="Record")
113
  stt_input_file = gr.Audio(source="upload", type="filepath", label="Upload")
114
  with gr.Column(variant="panel"):
115
+ stt_transcribe_output = gr.Textbox()
116
  stt_transcribe_btn = gr.Button("Transcribe")
117
 
118
  def synthesize_audio(text_str: str, model_name_str: str, speaker_str: str):
 
141
  return gr.Audio.update(value=(tts.get_sampling_rate(), samples))
142
 
143
  generate.click(synthesize_audio, inputs=[text, model_name, speaker], outputs=audio, api_name="synthesize")
144
+ stt_transcribe_btn.click(transcribe_stt, inputs=stt_input_file, outputs=stt_transcribe_output, api_name="transcribe")
145
 
146
  demo.queue(concurrency_count=1).launch()
147