Solshine's picture
Create app.py
474f4cc verified
raw
history blame
263 Bytes
import streamlit as st
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)
from gtts import gTTS
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)