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
b9d0360f
Merge pull request #4 from AndreNeedham/master Make TTS.cpp build on Arduino Leonardo
by Stephen Crane 8 years 2 months
6d07f115
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
b7640587
Merge pull request #3 from gunthercox/master Added schematic reference diagram
by Stephen Crane 10 years 5 months
9d8ff720
Added schematic to README.md
by Gunther Cox 10 years 5 months
28a83a3d
link to blog
by Stephen Crane 10 years 6 months
92fbdd29
fix issue #1
by Stephen Crane 10 years 6 months
fd769fce
adding sound
by Stephen Crane 11 years 9 months
e6f0c746
api change
by Stephen Crane 11 years 9 months
216e2f98
- supporting new port - docs - adding Voice of Tic Bot example
by Stephen Crane 11 years 9 months
65c3e5ee
Report a bug