Ejemplo n.º 1
0
	def _set_value(self,value):
		"""Overridden to use code that supports updating speech dicts when changing voice"""
		id = self._values[value].id
		if self.setting.id == "voice":
			synthDriverHandler.changeVoice(self.synth, id)
			# Voice parameters may change when the voice changes, so update the config.
			self.synth.saveSettings()
		else:
			super(StringSynthSetting,self)._set_value(id)
Ejemplo n.º 2
0
 def _set_value(self, value):
     """Overridden to use code that supports updating speech dicts when changing voice"""
     ID = self._values[value].ID
     if self.setting.name == "voice":
         synthDriverHandler.changeVoice(self.synth, ID)
         # Voice parameters may change when the voice changes, so update the config.
         self.synth.saveSettings()
     else:
         super(StringSynthSetting, self)._set_value(ID)