diff --git a/addon/globalPlugins/dual_voice_globalPlugin/__init__.py b/addon/globalPlugins/dual_voice_globalPlugin/__init__.py index 6072977..f8ea61a 100644 --- a/addon/globalPlugins/dual_voice_globalPlugin/__init__.py +++ b/addon/globalPlugins/dual_voice_globalPlugin/__init__.py @@ -32,7 +32,7 @@ def createMenu(self): self.submenu_item = gui.mainFrame.sysTrayIcon.menu.InsertMenu(2, wx.ID_ANY, _("Dual &voice"), self.submenu_dualvoice) def onAbout(self, event): - gui.messageBox("Version 4.4 by Seyed Mahmood Taghavi-Shahri", _("About the Dual voice add-on for NVDA"), wx.OK) + gui.messageBox("Version 4.5 by Seyed Mahmood Taghavi-Shahri", _("About the Dual voice add-on for NVDA"), wx.OK) def onCheckUpdate(self, event): diff --git a/addon/synthDrivers/dual_sapi5.py b/addon/synthDrivers/dual_sapi5.py index 099cc8c..f1dc8d2 100644 --- a/addon/synthDrivers/dual_sapi5.py +++ b/addon/synthDrivers/dual_sapi5.py @@ -186,11 +186,13 @@ def _getAvailableVoices(self): except COMError: log.warning("Could not get the voice info. Skipping...") voices[ID]=VoiceInfo(ID,name,language) - _realtime.list_VoiceAttribName.append(voiceAttribName) - _realtime.list_VoiceID.append(ID) - _realtime.list_VoiceName.append(name) - _realtime.list_VoiceLang.append(language) - + if voiceAttribName in _realtime.list_VoiceAttribName: + log.warning(name + ' has not the required Name attribute in the registry. Hence it could not be used as the secondary voice.') + else: + _realtime.list_VoiceAttribName.append(voiceAttribName) + _realtime.list_VoiceID.append(ID) + _realtime.list_VoiceName.append(name) + _realtime.list_VoiceLang.append(language) return voices def _getVoiceTokens(self): diff --git a/buildVars.py b/buildVars.py index 0b8c76b..f83fd3c 100644 --- a/buildVars.py +++ b/buildVars.py @@ -19,7 +19,7 @@ # Translators: Long description to be shown for this add-on on add-on information from add-ons manager "addon_description" : _("""Read non-Latin and Latin texts using two separate voices."""), # version - "addon_version" : "4.4", + "addon_version" : "4.5", # Author(s) "addon_author" : u"Seyed Mahmood Taghavi-Shahri ", # URL for the add-on documentation support diff --git a/readme.md b/readme.md index 4271156..57eae92 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,7 @@ Languages with the non-Latin script are Persian, Arabic, Belarusian, Bulgarian, You can find more information on the [homepage of the Dual Voice for NVDA](https://mahmood-taghavi.github.io/dual_voice/). -You can download the [latest version of the Dual Voice for NVDA](https://github.com/Mahmood-Taghavi/dual_voice/releases/download/v4.4/dual_voice-4.4.nvda-addon) +You can download the [latest version of the Dual Voice for NVDA](https://github.com/Mahmood-Taghavi/dual_voice/releases/download/v4.5/dual_voice-4.5.nvda-addon) Note: You can now use a custom dialog box entitled "Dual voice" in the NVDA menu to select the secondary voice and setting of the Dual voice.