Spaces:
Running
Running
| import gradio as gr | |
| import nemo.collections.asr as nemo_asr | |
| def transcribe(audio): | |
| tr = model.transcribe([audio],channel_selector=0) | |
| transcription = tr[0][0] | |
| return transcription | |
| model_name = "stt_eu_conformer_transducer_large.nemo" | |
| model = nemo_asr.models.ASRModel.restore_from(model_name) | |
| iface = gr.Interface(fn=transcribe, | |
| inputs=[gr.Audio(type="filepath", label="Audio")], | |
| outputs="text", | |
| title="Basque Speech-to-Text Transcription", | |
| description="Transcribe speech from your audio file.\n The audio file must be .wav") | |
| iface.launch() |