voice-to-text / app.py
beeguy's picture
1st try
d0a1326
raw
history blame
272 Bytes
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")