Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pyttsx3

import pyttsx3
from pyttsx3 import *

engine = pyttsx3.init()
voices = engine.getProperty('voices')
i = 0

for voice in voices:
    i = i + 1 
    print(f"{voice.id}, {voice.name}")
    engine.setProperty('voice', voices[i])
    engine.say("Hello")
    engine.runAndWait()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
8+9 =