[espeak-ng:master] reported: Procedure not clear on how to remove/disable a language #github


espeak-ng@groups.io Integration <espeak-ng@...>
 

[espeak-ng:master] New Comment on Issue #922 Procedure not clear on how to remove/disable a language
By jbowler:

So far as what @jaacoppi suggests it's pretty trivial to try - just remove src/libespeak-ng/compile*.c from the source files for the library/DLL...

I just tested it, the library builds with no issues. I get (amd64 with -O2):

~/src/espeak-ng/master-build $ size !$/libespeak-ng.so.1.1.51
size src/.libs//libespeak-ng.so.1.1.51
   text    data     bss     dec     hex filename
 479817   31308  111464  622589   97ffd src/.libs/libespeak-ng.so.1.1.51

If I build the library with all the compile support:

~/src/espeak-ng/master-build $ size src/.libs//libespeak-ng.so.1.1.51
   text    data     bss     dec     hex filename
 533092   35708  155976  724776   b0f28 src/.libs//libespeak-ng.so.1.1.51

So that saves over 100k at run-time (text+data+bss). ROM usage depends primarily on the text - data tends to be highly compressible - and that only amounts to 53275 bytes, still that's 10%.

An espeak-ng static build with the "compile" options commented out should just do this automatically, and commenting out the five compile options is easy too...