Skip to content

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

@DGrothe-PhD

Description

@DGrothe-PhD

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions