diff options
Diffstat (limited to 'Speak.activity/voice.py')
-rw-r--r-- | Speak.activity/voice.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Speak.activity/voice.py b/Speak.activity/voice.py index 38984c6..ecd3d5d 100644 --- a/Speak.activity/voice.py +++ b/Speak.activity/voice.py @@ -72,6 +72,7 @@ expectedVoiceNames = [ ] _allVoices = {} +DEFAULT = None class Voice: def __init__(self, language, name): @@ -112,9 +113,7 @@ def allVoices(): _allVoices[voice.friendlyname] = voice return _allVoices - - -def defaultVoice(): +def _defaultVoice(): """Try to figure out the default voice, from the current locale ($LANG). Fall back to espeak's voice called Default.""" @@ -143,3 +142,5 @@ def defaultVoice(): print "Best voice for LANG %s seems to be %s %s" % (lang, best.language, best.friendlyname) return best + +DEFAULT = _defaultVoice() |