template suara wanita pyttsx3

import pyttsx3

engine = pyttsx3.init()

# rate
engine.setProperty('rate', 150)

# voice
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[1].id)


def speak(text):
    engine.say(text=text)
    engine.runAndWait()
Purple Team