phonemize-audio / app.py
cdleong's picture
basic upload wav file and play
1ffd672
raw
history blame
242 Bytes
import streamlit as st
if __name__ == "__main__":
uploaded_file = st.file_uploader("Choose a file")
with open(‘trans.mp3’, ‘rb’) as audio_file:
audio_bytes = audio_file.read()
st.audio(audio_bytes, format=‘audio/wav’)