Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 11, 2020 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/01d70839033829dc0077ae171ed6dd6e to your computer and use it in GitHub Desktop.
Save parzibyte/01d70839033829dc0077ae171ed6dd6e to your computer and use it in GitHub Desktop.
"""
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