#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")
In questa pagina del sito puoi guardare il video online How to convert text into audio using python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Deeper Coders 01 febbraio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 47 volte e gli è piaciuto 3 spettatori. Buona visione!