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
Speech component
Moderator: Benj
-
- Posts: 38
- Joined: Fri Nov 07, 2008 12:57 pm
- Has thanked: 7 times
- Been thanked: 4 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Speech component
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel