Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to change voice of pyttsx3

import pyttsx3
engine = pyttsx3.init()
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[0].id) #changing index changes voices but ony 0 and 1 are working here
engine.say('Hello World')
engine.runAndWait()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #voice
ADD COMMENT
Topic
Name
4+6 =