-
Notifications
You must be signed in to change notification settings - Fork 342
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
DRAFT: attempt to fix hang on voices for espeak in test #386
Conversation
nb that assertion on length is the expected number of voices. Im nervous about that - maybe it should just be
|
names = [] | ||
for _voice in english_voices: | ||
engine.setProperty("voice", _voice.id) | ||
# English (America, New York City) --> America, New York City |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is much better documentation of what the code does than ~ Extract hame for display.
engine.runAndWait() | ||
engine.setProperty("voice", voice) # Reset voice to original value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Listen to the tests that come after this one to see why restoring defaults makes things sound more intuitive.
Perhaps we need a test that is.
- Start engine.
- Change voice.
- Stop engine.
- Start engine.
- Test if the voice is the default voice or the changed voice.
kip the test if no other voices are available. Use a loop to select a different voice, ensuring a valid change.. Add debug
needed for windows
NB: IT seems we have a problem in espeak set voice.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
? We need to get the Windows tests passing soon. |
@cclauss take a look - i think this fixes this hang on windows.. but maybe ive refactored too much