Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pyttsx3 female voice template

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()
 
PREVIOUS NEXT
Tagged: #female #voice #template
ADD COMMENT
Topic
Name
4+7 =