Skip to content

Commit

Permalink
version 4.5
Browse files Browse the repository at this point in the history
fixed the problem with a sapi5 voice which does not have name attribute in the windows registry. see below link for more details:
espeak-ng/espeak-ng#718
  • Loading branch information
Mahmood-Taghavi committed Mar 1, 2020
1 parent 88f9ec0 commit d0c617d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion addon/globalPlugins/dual_voice_globalPlugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
12 changes: 7 additions & 5 deletions addon/synthDrivers/dual_sapi5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <mahmood.taghavi@gmail.com>",
# URL for the add-on documentation support
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit d0c617d

Please sign in to comment.