Connected Devices/QA/Tips and Tricks: Difference between revisions

Jump to navigation Jump to search
Line 258: Line 258:


===== setting up pocketsphinx with OpenHAB =====
===== setting up pocketsphinx with OpenHAB =====
# set MAVEN_OPTS to "-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m" (ie export MAVEN_OPTS='-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m'
# go to your smarthome directory
# go to your smarthome directory
# git branch -f nar-maven-impl mozilla/nar-maven-impl
# git branch -f nar-maven-impl mozilla/nar-maven-impl
Line 264: Line 265:
# make sure your JAVA_HOME variable is set correctly ( http://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/ )
# make sure your JAVA_HOME variable is set correctly ( http://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/ )
# ./setup_pocketsphinx.sh
# ./setup_pocketsphinx.sh
* Note: if you run into a failed test : "KSServicePocketsphinxTest.recognizeTest:150 KSServicePocketsphinx.spot() failed to spot the word:forward", there may be a chance you need to edit the paths for https://github.com/mozilla/smarthome/blob/vaani-orchestrator/bundles/io/org.eclipse.smarthome.io.voice/src/main/java/org/eclipse/smarthome/io/voice/internal/KSServicePocketsphinx.java#L138 and a similar line to point correctly to the local pocketsphinx directories.  This is just a temporary setting to get working, it will be fixed soon.


=== Misc setup===
=== Misc setup===
Confirmed users
4,378

edits

Navigation menu