• R/O
  • HTTP
  • SSH
  • HTTPS

nvdajpmiscdep: コミット

miscdep for NVDA Japanese


コミットメタ情報

リビジョンfcc8d698facd9bbc2ff04920617592555b50c6cd (tree)
日時2014-12-29 19:25:43
作者Takuya Nishimoto <nishimotz@gmai...>
コミッターTakuya Nishimoto

ログメッセージ

ti34735 in progress

変更サマリ

差分

--- a/source/synthDrivers/jtalk/jtalkDriver.py
+++ b/source/synthDrivers/jtalk/jtalkDriver.py
@@ -179,7 +179,16 @@ def _speak(arg):
179179 else:
180180 _espeak_speak(msg, lang, index, prop)
181181
182+# call from BgThread
183+def _updateSpeakIndex(index):
184+ global currIndex
185+ global lastIndex
186+ lastIndex = currIndex = index
187+
182188 def speak(msg, lang, index=None, voiceProperty_=None):
189+ if msg is None and lang is None:
190+ _bgthread.execWhenDone(_updateSpeakIndex, index, mustBeAsync=True)
191+ return
183192 msg = msg.strip()
184193 if len(msg) == 0: return
185194 if voiceProperty_ is None: return
--- a/source/synthDrivers/nvdajp_jtalk.py
+++ b/source/synthDrivers/nvdajp_jtalk.py
@@ -82,6 +82,7 @@ class SynthDriver(SynthDriver):
8282 log.debugWarning("Unsupported speech command: %s"%item)
8383 else:
8484 log.error("Unknown speech: %s"%item)
85+ jtalkDriver.speak(None, None, index=finalIndex)
8586
8687 def cancel(self):
8788 jtalkDriver.stop()
旧リポジトリブラウザで表示