Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DGrothe-PhD opened this issue Sep 24, 2024 · 0 comments
Open

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

DGrothe-PhD opened this issue Sep 24, 2024 · 0 comments

Comments

@DGrothe-PhD
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant