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

Mac VoiceLanguage is now VoiceLocaleIdentifier #9

Closed
turtlegraphics opened this issue Jan 8, 2013 · 2 comments
Closed

Mac VoiceLanguage is now VoiceLocaleIdentifier #9

turtlegraphics opened this issue Jan 8, 2013 · 2 comments

Comments

@turtlegraphics
Copy link

pyttsx 1.0 was working fine for me on a Mac running Lion. Then I added some new I18n voices (via the Dictation & Speech) control panel, and pyttsx started crashing on the getProperty('voices') call, making it essentially unusable. Version 1.1 of pyttsx has the same bug.

I traced the error to line 70 of drivers/nsss.py, where it has attr['VoiceLanguage'], which is now deprecated. Changing this to attr['VoiceLocaleIdentifier'] fixed the problem. It appears VoiceLanguage was deprecated in OSX10.5, and now has actually ceased to exist for some voices.

@parente
Copy link
Collaborator

parente commented Jan 9, 2013

Thanks for the report and fix. I pushed it to the master branch with a fallback on the old VoiceLanguage property for older OS X versions.

@parente parente closed this as completed Jan 9, 2013
@turtlegraphics
Copy link
Author

Great - and thanks for the software. Nice work!

Bryan

On Jan 8, 2013, at 8:12 PM, Peter Parente notifications@github.com wrote:

Thanks for the report and fix. I pushed it to the master branch with a fallback on the old VoiceLanguage property for older OS X versions.


Reply to this email directly or view it on GitHub.

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

2 participants