-
-
Save parzibyte/01d70839033829dc0077ae171ed6dd6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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