示例#1
0
文件: espeak.py 项目: lpintes/NVDA
	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
示例#2
0
 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
示例#3
0
文件: espeak.py 项目: JRMeyer/nvda
	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
示例#4
0
文件: espeak.py 项目: yang123vc/nvda
	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
示例#5
0
 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