File size: 272 Bytes
d0a1326
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import streamlit as st
from transformers import pipeline


st.title("Speech to Text")

audio_to_text = pipeline("automatic-speech-recognition")

audio_file = st.file_uploader("Upload an audio file", type=["wav", "mp3", "ogg"])

st.write("or")

st.write("Record an audio")