Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

text to speech to specific language python

from gtts import gTTS
from playsound import  playsound

mytext="Hello Geek! How are you doing??"
language='en'
myobj=gTTS(text=mytext,lang=language,slow=True)
myobj.save("welcome1.mp3")
playsound("welcome1.mp3")
 
PREVIOUS NEXT
Tagged: #text #speech #specific #language #python
ADD COMMENT
Topic
Name
7+1 =