Skip to content

Commit

Permalink
Raise pitch for capitals
Browse files Browse the repository at this point in the history
  • Loading branch information
tspivey committed Nov 20, 2016
1 parent 553de02 commit a87eeb2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mac
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ def handle_line(line):
elif line[0] == u"x":
synth.stop()
elif line[0] == u"l":
synth.speak(u"[[char ltrl]] %s [[char norm]]" % line[1:])
prefix = u"[[char ltrl]]"
suffix = "[[char norm]]"
if len(line) == 2 and line[1].isupper():
prefix += u"[[pbas +10]]"
suffix += u"[[pbas -10]]"
synth.speak(prefix+line[1:]+suffix)
elif line[0] == u"r":
rate = line[1:]

Expand Down

0 comments on commit a87eeb2

Please sign in to comment.