def _getAvailableVoices(self): voices=OrderedDict() for v in _espeak.getVoiceList(): l=v.languages[1:] identifier=os.path.basename(v.identifier) voices[identifier]=VoiceInfo(identifier,v.name,l) return voices
def _getAvailableVoices(self): voices = OrderedDict() for v in _espeak.getVoiceList(): l = v.languages[1:] identifier = os.path.basename(v.identifier) voices[identifier] = VoiceInfo(identifier, v.name, l) return voices
def _getAvailableVoices(self): voices=OrderedDict() for v in _espeak.getVoiceList(): l=v.languages[1:] # #5783: For backwards compatibility, voice identifies should always be lowercase identifier=os.path.basename(v.identifier).lower() voices[identifier]=VoiceInfo(identifier,v.name,l) return voices
def _getAvailableVoices(self): voices = OrderedDict() for v in _espeak.getVoiceList(): l = v.languages[1:] # #7167: Some languages names contain unicode characters EG: Norwegian Bokmål name = v.name.decode("UTF-8") # #5783: For backwards compatibility, voice identifies should always be lowercase identifier = os.path.basename(v.identifier).lower() voices[identifier] = VoiceInfo(identifier, name, l) return voices