Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
I-AdityaGoyal
/
NoteBot
like
3
Sleeping
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
1272fb9
NoteBot
/
text_to_speech.py
I-AdityaGoyal
Upload 8 files
1272fb9
verified
7 months ago
raw
Copy download link
history
blame
Safe
117 Bytes
import
pyttsx3
def
speak_text
(
text
):
engine = pyttsx3.init()
engine.say(text)
engine.runAndWait()