Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/save.py Secret

Created Nov 11, 2020
Embed
What would you like to do?
"""
https://parzibyte.me/blog
"""
import pyttsx3
engine = pyttsx3.init()
# Control the rate. Higher rate = more speed
engine.setProperty("rate", 150)
text = "Hola mundo. Este audio quedará guardado en un archivo"
output_file = "audio.mp3"
engine.save_to_file(text, output_file)
engine.runAndWait()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment