How to convert text into audio using python

Опубликовано: 01 Февраль 2020
на канале: 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")


На этой странице сайта вы можете посмотреть видео онлайн How to convert text into audio using python длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Deeper Coders 01 Февраль 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 47 раз и оно понравилось 3 зрителям. Приятного просмотра!