Fix buffer handling issues
by AndreNeedham 8 years 10 months
Fix buffer handling issues

The first bug was that sayText was copying a buffer of up to 112 bytes into a buffer of size 64 (g_text). Fixed it by changing g_text to 128 bytes, plus we don't need to copy the buffer, we can just let textToPhonemes fill the buffer for us.

The next bug was a line of code was checking to see if we'd written 256-16 bytes to a buffer. All buffers are 128 bytes, so I changed it to 128-16.

Note that in general this code is likely to produce no output if the input sentence is larger than about 50 to 60 characters (since the final phoneme data will end up being more than 112 characters which is the limit). There's no easy way to know until after all the processing is done. Probably worth calling that out somewhere.
b9d0360f
Merge pull request #4 from AndreNeedham/master
by Stephen Crane 8 years 10 months
Merge pull request #4 from AndreNeedham/master

Make TTS.cpp build on Arduino Leonardo
6d07f115
Make TTS.cpp build on Arduino Leonardo
by AndreNeedham 8 years 10 months
Make TTS.cpp build on Arduino Leonardo

Any reference to Timer2 registers won't compile on Arduino Leonardo (ATmega32u4). Ifdef out Timer2 references on Leonardo.
b7640587
Merge pull request #3 from gunthercox/master
by Stephen Crane 11 years 1 month
Merge pull request #3 from gunthercox/master

Added schematic reference diagram
9d8ff720
Added schematic to README.md
by Gunther Cox 11 years 1 month
28a83a3d
link to blog
by Stephen Crane 11 years 2 months
92fbdd29
fix issue #1
by Stephen Crane 11 years 2 months
fd769fce
adding sound
by Stephen Crane 12 years 5 months
e6f0c746
api change
by Stephen Crane 12 years 5 months
216e2f98
- supporting new port
by Stephen Crane 12 years 5 months
- supporting new port
- docs
- adding Voice of Tic Bot example
65c3e5ee
Report a bug