Bug 1051146 - Part 6: Introduce build integration of new English model. r=smaug, r=gps
authorKelly Davis <kdavis@mozilla.com>
Thu, 28 May 2015 07:24:00 -0400
changeset 269669 df42f0f5963abb5caf5b354b53bf2c74d47ecc93
parent 269668 844f87b9c201b0ebc475a9b2a782da8deafab7ba
child 269670 efe257c2ba148e29ea4d321594b87307fbc45301
push id2540
push userwcosta@mozilla.com
push dateWed, 03 Jun 2015 20:55:41 +0000
reviewerssmaug, gps
bugs1051146
milestone41.0a1
Bug 1051146 - Part 6: Introduce build integration of new English model. r=smaug, r=gps
b2g/installer/package-manifest.in
dom/media/webspeech/recognition/Makefile.in
--- a/b2g/installer/package-manifest.in
+++ b/b2g/installer/package-manifest.in
@@ -130,16 +130,19 @@
 #endif
 @RESPATH@/blocklist.xml
 @RESPATH@/ua-update.json
 #ifdef XP_UNIX
 #ifndef XP_MACOSX
 @RESPATH@/run-mozilla.sh
 #endif
 #endif
+#ifdef MOZ_WEBSPEECH_MODELS
+@BINPATH@/models/
+#endif
 
 ; [Components]
 @RESPATH@/components/components.manifest
 @RESPATH@/components/alerts.xpt
 #ifdef ACCESSIBILITY
 #ifdef XP_WIN32
 @BINPATH@/AccessibleMarshal.dll
 #endif
new file mode 100644
--- /dev/null
+++ b/dom/media/webspeech/recognition/Makefile.in
@@ -0,0 +1,16 @@
+ifdef MOZ_WEBSPEECH_MODELS
+MODELSPS_KEEP_PATH := 1
+
+MODELSPS_FILES := models/dict/cmu07a.dic \
+		models/en-us-semi/mixture_weights \
+		models/en-us-semi/feat.params \
+		models/en-us-semi/mdef \
+		models/en-us-semi/means \
+		models/en-us-semi/noisedict \
+		models/en-us-semi/sendump \
+		models/en-us-semi/transition_matrices \
+		models/en-us-semi/variances
+
+MODELSPS_DEST := $(DIST)/bin/models
+INSTALL_TARGETS += MODELSPS
+endif