How to convert text into audio using python

Publicado el: 01 febrero 2020
en el canal de: Deeper Coders
47
3

#pip install gtts
Import the required module for text
to speech conversion
from gtts import gTTS


The text that you want to convert to audio
mytext = 'Welcome to Immortal coders'

Language in which you want to convert
language = 'en'

Passing the text and language to the engine,
here we have marked slow=False. Which tells
the module that the converted audio should
have a high speed
myobj = gTTS(text=mytext, lang=language, slow=False)

Saving the converted audio in a mp3 file named
welcome
myobj.save("new.mp3")


En esta página del sitio puede ver el video en línea How to convert text into audio using python de Duración hora minuto segunda en buena calidad , que subió el usuario Deeper Coders 01 febrero 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 47 veces y le gustó 3 a los espectadores. Disfruta viendo!