Page 1 of 1
Speech component
Posted: Wed Feb 17, 2010 4:33 pm
by g-slocombe
If I use the suggested address in the speech component I just get audible clicks, but if I guess an address value eg 14 it works fine. Is there any way I can determine the size of my program in bytes?.
Then I can insert my speech address after this value. Or is it not as simple as that do I need to leave some space in reserve for RAM?.
any suggestions Regards Gary
Re: Speech component
Posted: Wed Feb 17, 2010 5:21 pm
by Benj
Hello Gary
Did I send you an updated speech component? If not then here is the current v4.2 version of the C code file which should address larger memories correctly.
Otherwise if this not working correctly then firstly please let me know and secondly here is a workaround...
If you untick all of the phonemes in the speech component and then click the "compile to hex" button then you will get a message such as this in the compile message window...
Memory Usage Report
===================
RAM available:3968 bytes, used:48 bytes (1.3%), free:3920 bytes (98.7%),
Heap size:3920 bytes, Heap max single alloc:127 bytes
ROM available:49152 bytes, used:670 bytes (1.4%), free:48482 bytes (98.6%)
Then enable the phonemes you require in the speech component properties and set the base address above the end of your program memory. eg in this example any value over 670.