Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python tts

from gtts import gTTS

# ask for text to speak
text = input("enter text to speak: ")

# generate tts
output = gTTS(text=text, lang="en", tld="co.in")
output.save(f"tts.mp3")
Comment

PREVIOUS NEXT
Code Example
Python :: how to pause code for some time in python 
Python :: get current time in python with strftime 
Python :: how to ask for input in python 
Python :: python matplotlib plot thickness 
Python :: python list of dates between 
Python :: django how to set a navbar active 
Python :: python discord webhook 
Python :: edit json file python 
Python :: import NoSuchKey in boto3 
Python :: pandas plot xlabel 
Python :: get working directory python 
Python :: python requests.get timeout 
Python :: python time a funciton 
Python :: apply format to pandas datetime column 
Python :: get current month py 
Python :: how to save a model and reuse fast ai 
Python :: plotly plot size 
Python :: python get dir 
Python :: python object to json file 
Python :: brownie to wei 
Python :: python range for float 
Python :: how to sum the revenue from every day in a dataframe python 
Python :: install gtts 
Python :: python split string capital letters 
Python :: pygame render text 
Python :: E: Unable to locate package python3-pip docker file 
Python :: python print version python 
Python :: how to set default python version in macos 
Python :: python remove empty folders 
Python :: jupyter notebook how to set max display row columns matrix numpy 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =