Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 11, 2020 01:22
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/5f83d6ddc7dceb34d487f6229ff61bca to your computer and use it in GitHub Desktop.
Save parzibyte/5f83d6ddc7dceb34d487f6229ff61bca 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. Visita parzibyte.me"
engine.say(text)
"""
Queue another audio
"""
another_text = "I like Python"
engine.say(another_text)
engine.runAndWait()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment