Spaces:
Sleeping
Sleeping
File size: 289 Bytes
d67a990 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from speechbrain.pretrained import EncoderASR
import gradio as gr
model = EncoderASR.from_hparams("speechbrain/asr-wav2vec2-dvoice-wolof")
def transcribe(audio):
return model.transcribe_file(audio.name)
demo = gr.Interface(fn=transcribe, inputs="file", outputs="text")
demo.launch() |