Thanks Nick, I appreciate your help. I created two versions of Fennec apk: one [1] with the english models bundled (43.7 mb), and other [2] without it (34.6mb). This was the mozconfig I used [3]
Actually, I had a conversation with Jonas Sicking some months ago and we agreed that the ideal scenario about this is to allow the user to download the package for the language he prefer from some sort of preferences screen, instead ship them bundled into the apk. [1] https://www.dropbox.com/s/6snv6e3mqqcs4zi/fennec-34.0a1.en-US.android-arm.apk?dl=0 [2] https://www.dropbox.com/s/zxxop34unj21r1s/fennec-35.0a1.en-US.android-arm.apk?dl=0 [3] #DEBUG #ac_add_options --enable-debug #ac_add_options --enable-trace-malloc #ac_add_options --enable-accessibility #ac_add_options --enable-signmar ac_add_options --disable-tests # android options ac_add_options --enable-application=mobile/android ac_add_options --with-android-ndk="/Volumes/extra/android-ndk-r8e/" ac_add_options --with-android-sdk="/Volumes/extra/android-sdk-macosx/platforms/android-19/" # FOR ARM ac_add_options --target=arm-linux-androideabi mk_add_options MOZ_OBJDIR=./obj-arm-linux-androideabi-debug # FOR 386 #ac_add_options --target=i386-linux-android #mk_add_options MOZ_OBJDIR=./objdir-droid-i386 On Thu, Oct 30, 2014 at 9:36 PM, Nick Alexander <nalexan...@mozilla.com> wrote: > On 2014-10-30, 4:18 PM, Andre Natal wrote: > >> I've been researching speech recognition in Firefox for two years. First >> SpeechRTC, then emscripten, and now Web Speech API with CMU pocketsphinx >> [1] embedded in Gecko C++ layer, project that I had the luck to develop >> for >> Google Summer of Code with the mentoring of Olli Pettay, Guilherme >> Gonçalves, Steven Lee, Randell Jesup plus others and with the management >> of >> Sandip Kamat. >> >> The implementation already works in B2G, Fennec and all FF desktop >> versions, and the first language supported will be english. The API and >> implementation are in conformity with W3C standard [2]. The preference to >> enable it is: media.webspeech.service.default = pocketsphinx >> > > First, Andre, let me offer my congratulations on getting this project to > this point. We've talked a few times and I've always been impressed. > > Can you point me at Fennec try builds? I vaguely recall that these speech > recognition approaches require large pattern matching files, and I'd like > to see what including the Speech API does to the Fennec APK size. We're > pushing pretty hard on reducing our APK size right now because we believe > it's a big barrier to entry and especially to upgrading older devices. > > Nick > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform