john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

cmu sphinx 4 java on windows

cmu-sphinx-4-java-on-windows

  1. download the most recent version of the JDK SE (Java Development Kit, Second Edition) e.g. V1.6.0_021

  2. Install it to get your Java Runtime Engine

  3. download the Sphinx 4 binary files

  4. Extract to a directory (e.g. sphinx4-1.0beta4)

  5. Open a command prompt and navigate to the sphinx directory (cd c:\sphinx4-1.0beta4)

  6. java -version should show you what version of Java Runtime you have

  7. c:\sphinx4-1.0beta4\lib\jsapi.exe this will activate your jsapi license

  8. java -mx312m -jar bin/AudioTool.jar

    A graphical Java Audio Tool that allows you to Record, when you hit stop it will automatically playback (and you can replay with Play, and zoom in on the charts).

    Literally you are saying: run the java environment, 312 MB of RAM for a heap, run the "jar" file in directory "bin", "AudioTool.jar"

Unfortunately no other Demo Apps seem to recognize my microphone, java -mx312m -jar bin/AudioTool.jar -dumpMixers

Shows a lot of audio devices available...

The advice from the cmusphinx website crashes the application

java -Dmicrophone[selectMixer]=last -jar bin/AudioTool.jar

So, no luck with: java -mx312m -jar bin/HelloWorld.jar

Say: (Good morning | Hello) ( Bhiksha | Evandro | Paul | Philip | Rita | Will ) Start speaking. Press Ctrl-C to quit.

Nor the exciting ZipCity.jar...

Considering the number of applications that autodetect or just use whatever default OS Microphone (e.g. Windows) this is pretty frustrating.

The "help tip" for Linux (ironically I'm using windows), is "Try switching to another version of the JDK"... so it's Java's fault... right.


  • « Trac account manager trac ini
  • mingw msys compile open source code on windows »

Published

Aug 8, 2010

Category

research

~231 words

Tags

  • 4 10
  • cmu 1
  • java 252
  • on 26
  • research 199
  • sphinx 1
  • windows 72