Spaces:
Runtime error
Runtime error
use conformer ctc large
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def asr_transcript(audio):
|
|
27 |
data={}
|
28 |
if audio:
|
29 |
text_asr = asr_model.transcribe_file(audio.name)
|
30 |
-
text_nemo_trasducer = transcribe(audio, "
|
31 |
with open(audio.name,'rb') as f:
|
32 |
audio_proper = f.read()
|
33 |
stt_engine = SpeechToTextEngine()
|
@@ -53,7 +53,7 @@ gradio_ui = gr.Interface(
|
|
53 |
inputs=[ gr.inputs.Audio(source="microphone", type="file", optional=True, label="Record from microphone")],
|
54 |
outputs=[gr.outputs.Textbox(label="Recognized speech from speechbrain model"),
|
55 |
gr.outputs.Textbox(label="Recognized speech from coqui STT model"),
|
56 |
-
gr.outputs.Textbox(label="Recognized speech from NVIDIA
|
57 |
# examples = [["sample_1.wav"],["sample_2.wav"]]
|
58 |
)
|
59 |
|
|
|
27 |
data={}
|
28 |
if audio:
|
29 |
text_asr = asr_model.transcribe_file(audio.name)
|
30 |
+
text_nemo_trasducer = transcribe(audio, "stt_rw_conformer_ctc_large")
|
31 |
with open(audio.name,'rb') as f:
|
32 |
audio_proper = f.read()
|
33 |
stt_engine = SpeechToTextEngine()
|
|
|
53 |
inputs=[ gr.inputs.Audio(source="microphone", type="file", optional=True, label="Record from microphone")],
|
54 |
outputs=[gr.outputs.Textbox(label="Recognized speech from speechbrain model"),
|
55 |
gr.outputs.Textbox(label="Recognized speech from coqui STT model"),
|
56 |
+
gr.outputs.Textbox(label="Recognized speech from NVIDIA conformer ctc large model")]
|
57 |
# examples = [["sample_1.wav"],["sample_2.wav"]]
|
58 |
)
|
59 |
|