Spaces:
Sleeping
Sleeping
File size: 609 Bytes
5faa5d1 d67a990 34d644e fe9b085 9876963 34d644e 1041e83 5749237 1041e83 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from speechbrain.inference.ASR 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()
|