Spaces:
Sleeping
Sleeping
File size: 605 Bytes
d67a990 019e9f5 b0c1496 7c125bc d67a990 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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",
title="Transcription automatique du wolof",
description="Ce modèle transcrit un fichier audio en wolof en texte en utilisant l'alphabet latin.",
input_label="Audio en wolof",
output_label="Transcription alphabet latin"
)
demo.launch() |