Mac VoiceLanguage is now VoiceLocaleIdentifier #9

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

Comments

Projects
None yet
2 participants

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.

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 Jan 9, 2013

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.

@RyanHope RyanHope referenced this issue Nov 1, 2012

Closed

Segfault on Linux #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment