Exemple #1
0
	def __init__(self):
		self.voice_id = 'V2'
		self._volume = 100
		self._pitch = 50
		self._inflection = 50
		self._rateBoost = False
		jtalkDriver.initialize()
		self.rate = 50
Exemple #2
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