The rest is the normal path where Your CMUSphinx folder is. SPHINX_PATH := /cygdrive/c/Programmierung/DeveloperLibs/CMUSphinxĮxplanation: /cygdrive/ is called from the cygwin. Your SPHINX_PATH should similar to this (this is my folder structure): In windows, don´t use variables like $ to do this. Set the path where Your parent CMUSphinx folder is. SPHINX_PATH := $(HOME)/Projects/Sphinx/trunk Open the Android.mk file inside the PocketSphinxAndroidDemo Folder, for example with WordPad from windows, or Editor. |-PocketSphinxAndroidDemo (subfolder of parent Folder) |-sphinxbase (subfolder of parent Folder) |-pocketsphinx (subfolder of parent Folder) The Structure of all should look like this: Rename them to pocketsphinx and sphinxbase, so that no version number is there. The folders You have downloaded should be something like this when they are unpaked: Now, this is very important, remove the Version declaration from the folders.
ĭON`T DOWNLOAD THE WINZIP FILES, THEY ARE NOT FOR THIS TUTORIAL.Ĭreate a folder anywhere on Your machine and put all three files inside and unzip them.
If any link will not work, because there is another directory meanwhile, go to the CMUSphinx homepage:īE SURE THAT YOU HAVE DOWNLOADED sphinxbase and pocketsphinx with extension. That´s all for installing swig on windows.Ĭ/viewvc/cmusphinx/trunk/PocketSphinxAndroidDemo/?view=tar Then set the path to Your SWIG Folder at Your machine, for Example Instead, go to the end of the other declarations and set " ". Everything that is set before in this field: DON´T TOUCH IT. If You have not set the Path of SWIG, You will see not SWIG like in the example above. Select System Variables and search "PATH". On windows 8 I couldn´t get it work, but the only thing to do is to set the environment Variable to Your System:Īt Windows go to System->System->Advanced Preferences->Environment Variables But be informed that the swig.exe in the SWIG Folder, don´t work on all machines.
Then start installing, this needs a little bit time.ĭownload SWIG 1.3 (latest 1.3 version) fromġ.3 IS NEEDED BECAUSE CMUSphinx DON´T WORK WITH NEWER SWIG VERSIONS Now You will see the tools to download, for CMUSphinx only, choose the Folder "Devel" and click on it until at the left is showing "install".
The best link I found was the RedHat Cygwin. Window->preferences->Android->NDK and push "Browse" button to locate the installed android-ndk folder inside your machine. Check all that is not checked and start.Īfter everything is installed, restart eclipse.
Now open Eclipse as an Admin and goto Help->install new Software and adding the links above into the first field.
Install Android SDK + NDK Plugins from Eclipse update site Download ndk windows exe from developer site:ĭouble click to start the. But You have to be able to build this demo, for this You need android-ndk.ġ.
But no fear, even if it is good to learn how to programm with the android-ndk, the knowledge is not necessary for this. But any day, I get this demo app work and now, I want to share my experience with all interested developers.įor dealing with CMU Sphinx, You have to download and install the android-ndk, a toolset for writing android apps in the native way, for exampe in C or C++. I searched long time about a complete tutorial for windows 8 but could´nt find some. It was very hard, because the tutorial on CMUSphinx website is not usefull on all systems. This Demo is called PocketSphinxAndroidDemo and it shows how to use pocketsphinx on an android device. This lib is called CMUSphinx, there are some versions for different systems, but in this tutorial I only want to show You, how to set up the android demo project from the CMUSphinx website.
I wanted to start with developing some Speech To Text apps, and found a third party library that seems good to do this. This tutorial depends on the following requirements:Ī) Windows 8 64-Bit machine (Asus Vivobook) How to get the PocketSphinxAndroidDemo work