File size: 241 Bytes
474f4cc |
1 2 3 4 5 6 7 8 9 10 11 |
import streamlit as st
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)
from io import BytesIO
sound_file = BytesIO()
tts = gTTS('Add text-to-speech to your app', lang='en')
tts.write_to_fp(sound_file)
st.audio(sound_file)
|