 darbienapp
|
For my app I’m testing using custom pre-recorded prompt (wav files) instead of the Flite TTS, and I made some small modifications to the FliteController class to play pre-recorded prompts and it seems to work fine.
However, one thing I noticed when I commented out all the voices in “OpenEarsVoiceConfig.h”, the compiled binary size doesn’t seem to change versus when I leave all the voices in. Is this expected? How can I reduce my binary size?
|
 Halle
|
That’s not expected, are you using the all_load linker flag (you shouldn’t unless you have to) and did you clean all before compiling?
|
 darbienapp
|
Halle,
Yes I did do a build clean all before compiling. Where can I set or change this “all_load” linker flag? Also, what is confusing to me is that I noticed after compilation the OpenEarsLibrary.a file is around 40MB, but usually my executable from compiling the OpenEarsSampleProject is only around 21MB. The app seems to work okay regardless even when I run it on the device.
|
 Halle
|
That’s odd. Usually my binaries if I remove all of the voices are around 12MB IIRC. all_load will not be set if you have never set it, but if you have set it or if another developer who worked on the same project set it, you can unset it by doing a search for all_load in your build settings. If nothing comes up, you haven’t set it.
Can you give me some more info on what is going on with this:
Also, what is confusing to me is that I noticed after compilation the OpenEarsLibrary.a file is around 40MB, but usually my executable from compiling the OpenEarsSampleProject is only around 21MB. The app seems to work okay regardless even when I run it on the device.
Does it mean that you are getting this result when you compile with an app that isn’t the sample app, or does it mean that you are still using the sample app but you just noticed how big the library is?
Something I would check is whether OpenEarsVoiceConfig.h was dragged into the new project (if it is a new project) as a relative link, or whether it was unintentionally copied into the new app. If it was copied in, it will not have any effect on which voices were linked in the library.
Have you already taken a look here? http://www.politepix.com/openears/support#13
|