Spaces:
Sleeping
Sleeping
File size: 365 Bytes
9b86a45 ac0462b b2f496e db0d02f b1974ea 8da0fb2 c749462 8da0fb2 c749462 a50d007 ec663e4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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_received' not in state:
state.text_received = []
state = st.session_state
if text:
state.text_received.append(text)
for text in state.text_received:
st.write(text)
|