In this program only the first two are played
import pyttsx3
import time
def do_it():
print("done")
engine = pyttsx3.init()
#voices = engine.getProperty('voices')
#engine.setProperty('voice', voices[1].id)
engine.connect(topic="finished-utterance", cb=do_it)
engine.say("I will speak this text")
engine.say("I will speak this text")
engine.say("I will speak this text")
engine.runAndWait()
time.sleep(10)
python version 3.12.4
on Windows 10