示例#1
0
	def _set_voice(self, identifier):
		log.debug("_set_voice %s" % (identifier))
		rate = jtalkDriver.get_rate(self._rateBoost)
		for v in jtalkDriver._jtalk_voices:
			if v['id'] == identifier:
				if self.voice_id != identifier:
					self.voice_id = identifier
					jtalkDriver.terminate()
					jtalkDriver.initialize(v)
					jtalkDriver.set_rate(rate,self._rateBoost)
					jtalkDriver.set_volume(self._volume)
					return
		return
示例#2
0
	def _get_rate(self):
		return jtalkDriver.get_rate(self._rateBoost)