From d01b641f3ecc029dde51f74810ea73c9ab0888b8 Mon Sep 17 00:00:00 2001 From: Konstantin Azizov Date: Mon, 26 Oct 2015 09:39:57 +0200 Subject: [PATCH] Fix OS X driver Source: https://bitbucket.org/ronaldoussoren/pyobjc/issues/131/attributeerror-super-object-has-no#comment-20958528 Fixes #33 --- pyttsx/drivers/nsss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyttsx/drivers/nsss.py b/pyttsx/drivers/nsss.py index 4f23daf..49ecaa3 100644 --- a/pyttsx/drivers/nsss.py +++ b/pyttsx/drivers/nsss.py @@ -15,6 +15,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ''' +from objc import super from Foundation import * from AppKit import NSSpeechSynthesizer from PyObjCTools import AppHelper @@ -112,4 +113,4 @@ def speechSynthesizer_didFinishSpeaking_(self, tts, success): def speechSynthesizer_willSpeakWord_ofString_(self, tts, rng, text): self._proxy.notify('started-word', location=rng.location, - length=rng.length) \ No newline at end of file + length=rng.length)