Speech component

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
g-slocombe
Posts: 38
Joined: Fri Nov 07, 2008 12:57 pm
Has thanked: 7 times
Been thanked: 4 times

Speech component

Post 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

User avatar
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

Post 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.
PIC_Speech.c
(13.86 KiB) Downloaded 311 times
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.

Post Reply