thevickypedia / py3-tts

Offline Text To Speech library for python
https://py3-tts.vigneshrao.com/
Mozilla Public License 2.0
30 stars 2 forks source link

getProperty does not get the current rate but the default one #11

Open DGrothe-PhD opened 2 months ago

DGrothe-PhD commented 2 months ago

Using Python 3.11 on Windows.

import pyttsx3

# Step 1
e1 = pyttsx3.init()
e1.say("Hallo erst mal...")
e1.runAndWait()
rate = e1.getProperty('rate')

# Step 2
e1.setProperty('rate', rate+50)
print(e1.getProperty('rate'))
e1.say("Hallo erst mal...")
e1.runAndWait()
# however, speaks faster.

At Step 1, the rate is 200, which is the default setting. Now I change the rate. Speaks faster, but prints 200 as before.

Apparently not yet fixed by #6.