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
def _get_rate(self): return jtalkDriver.get_rate(self._rateBoost)