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.
by
AndreNeedham
8 years 2 months
Merge pull request #4 from AndreNeedham/master
Make TTS.cpp build on Arduino Leonardo
by
Stephen Crane
8 years 2 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.
by
AndreNeedham
8 years 2 months
Merge pull request #3 from gunthercox/master
Added schematic reference diagram
by
Stephen Crane
10 years 5 months
link to blog
by
Stephen Crane
10 years 6 months
fix issue #1
by
Stephen Crane
10 years 6 months
adding sound
by
Stephen Crane
11 years 9 months
api change
by
Stephen Crane
11 years 9 months
- supporting new port
- docs
- adding Voice of Tic Bot example
by
Stephen Crane
11 years 9 months