Spaces:
Runtime error
Runtime error
File size: 396 Bytes
412c852 ac80c90 412c852 191d30d 412c852 1558352 191d30d 1558352 191d30d 1558352 57add4d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from transformers import pipeline
import gradio as gr
p = pipeline("automatic-speech-recognition", model="aware-ai/wav2vec2-base-german")
def transcribe(audio):
return p(audio, chunk_length_s=10, stride_length_s=(4, 2))["text"]
gr.Interface(
transcribe,
[gr.Audio(source="microphone", type="filepath")],
[gr.Textbox()],
live=True
).launch(server_name = "0.0.0.0") |