OSDN Git Service

work around JTalk WindowsError ti34684
authorTakuya Nishimoto <nishimotz@gmail.com>
Thu, 15 Jan 2015 15:01:10 +0000 (00:01 +0900)
committerTakuya Nishimoto <nishimotz@gmail.com>
Thu, 15 Jan 2015 15:01:10 +0000 (00:01 +0900)
source/synthDrivers/jtalk/jtalkCore.py

index f585b6b..2f66f2a 100644 (file)
@@ -346,6 +346,9 @@ def libjt_synthesis(feature,
                byte_count = ns * sizeof(c_short)
                buf = string_at(speech_ptr, byte_count)
                if feed_func_:
-                       feed_func_(buf)
+                       try:
+                               feed_func_(buf)
+                       except WindowsError:
+                               pass
        if logwrite_ : logwrite_('libjt_synthesis done.')
        return buf