Skip to content

Instantly share code, notes, and snippets.

@tecsify
Created April 5, 2021 05:53
Show Gist options
  • Save tecsify/1d6485a72a33f5874a90f67cb6953ca7 to your computer and use it in GitHub Desktop.
Save tecsify/1d6485a72a33f5874a90f67cb6953ca7 to your computer and use it in GitHub Desktop.
"""Convierte texto a voz con Python por Tecsify
¡Tecnología que empodera!"""
from gtts import gTTS
import os
texto = input()
tts = gTTS(text=texto, lang = 'es')
tts.save("tecsify.mp3")
os.system("tecsify.mp3")
#www.Tecsify.com/blog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment