#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")
Nesta página do site você pode assistir ao vídeo on-line How to convert text into audio using python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Deeper Coders 01 Fevereiro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 47 vezes e gostou 3 espectadores. Boa visualização!