Skip to content

Commit

Permalink
Capitalize voice name for you, so you don't have to enter it that way.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmd committed Apr 11, 2012
1 parent b83956a commit 65d2f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def processUserCommand( command, arguments, connection, view ):
message('Voices: ' + voice_list, 'voiceList', None)
elif (args.startswith('voice ')):
requested_voice = args[6:].lstrip()
if setvoice(requested_voice):
if setvoice(requested_voice.capitalize()):
message('Set voice to ' + requested_voice, 'voiceSet', None)
else:
message('%s is an invalid voice' % requested_voice, 'voiceSet',
Expand All @@ -79,7 +79,7 @@ def processUserCommand( command, arguments, connection, view ):
'----',
'/speech on - Enable speech',
'/speech off - Disable speech',
'/speech voices - List available voices. Note these are case-sensitive.',
'/speech voices - List available voices.',
'/speech voice VOICE - Set speaking voice',
'/speech help - Display this help'
]
Expand Down

0 comments on commit 65d2f3d

Please sign in to comment.