Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python How To Convert Text to Speech

from gtts import gTTS
from playsound import playsound

s = gTTS("Sample Text")
s.save('sample.mp3')
playsound('sample.mp3')
Source by pythonhowto.org #
 
PREVIOUS NEXT
Tagged: #Python #How #To #Convert #Text #Speech
ADD COMMENT
Topic
Name
6+8 =