2

Does using libraries like OpenEars will drastically enlarge my app size? Or I can just extract the text to speech stuff, and get away with it...Probably removing all those langs? I don't have any idea.

I checked and OpenEars sample app is 33MB - which is big!

So my question is - can I implement text to speech in my app without compromising the size so much? I mean I can live with 2-3 MBs but 30...

Thank you!

Halle
  • 3,584
  • 1
  • 37
  • 53
Devfly
  • 2,495
  • 5
  • 38
  • 56

2 Answers2

2

OpenEars developer here. Just follow the instructions here to reduce your final app size, there's no need to ship all the voices or any features of the framework that you aren't making use of. Depending on which voices you're using and which feature, you might see an app size increase of between 6 megs and ~20 unless you're using a large number of the available voices. The sample app uses all of the framework features and two voices, and supports a few iOS versions, so its binary size reflects that.

Halle
  • 3,584
  • 1
  • 37
  • 53
  • Also, for some reason I didn't take my own advice and turn on Deployment Postprocessing for the sample app. It's now down to a svelte 16MB. I appreciate the heads-up that it was unnervingly large. – Halle Sep 12 '12 at 08:54
0

My guess is you can't, audio will take up a lot of space. Removing unneeded language will free some space but 2-3 mb for all the audio guess that isen't really possible.

rckoenes
  • 69,092
  • 8
  • 134
  • 166
  • There isn't really much in the way of audio shipped as part of OpenEars, but the individual TTS voices have a lot of data that is synthesized into audio, particularly the 16-bit voices. It's pretty trivial to exclude the voices from compiling with the app if they are unused, however. – Halle Sep 10 '12 at 20:17