Exemplo n.º 1
0
	def _get_voice(self):
		curVoice=getattr(self,'_voice',None)
		if curVoice: return curVoice
		curVoice = _espeak.getCurrentVoice()
		if not curVoice:
			return ""
		return curVoice.identifier.split('+')[0]
Exemplo n.º 2
0
 def _get_voice(self):
     curVoice = getattr(self, '_voice', None)
     if curVoice: return curVoice
     curVoice = _espeak.getCurrentVoice()
     if not curVoice:
         return ""
     return curVoice.identifier.split('+')[0]
Exemplo n.º 3
0
	def _get_voice(self):
		curVoice=getattr(self,'_voice',None)
		if curVoice: return curVoice
		curVoice = _espeak.getCurrentVoice()
		if not curVoice:
			return ""
		# #5783: For backwards compatibility, voice identifies should always be lowercase
		return curVoice.identifier.split('+')[0].lower()
Exemplo n.º 4
0
	def _get_voice(self):
		curVoice=getattr(self,'_voice',None)
		if curVoice: return curVoice
		curVoice = _espeak.getCurrentVoice()
		if not curVoice:
			return ""
		# #5783: For backwards compatibility, voice identifies should always be lowercase
		return curVoice.identifier.split('+')[0].lower()