Audio-Testing / app.py
ThatOneCoder's picture
Update app.py
ec663e4 verified
raw
history blame
502 Bytes
import streamlit as st
from streamlit_mic_recorder import mic_recorder,speech_to_text
#text=speech_to_text(language='en',use_container_width=True,just_once=True,key='STT')
#if text:
#state.text_received.append(text)
#for text in state.text_received:
#st.write(text)
audio = mic_recorder(
start_prompt="Start recording",
stop_prompt="Stop recording",
just_once=False,
use_container_width=False,
callback=None,
args=(),
kwargs={},
key=None
)
st.write(audio)