I posted yesterday that i was unable to run the WavFile demo....for that matter any demo at all
So, after giving up, i asked my colleague chandra for help and as always he got it running.
So here are a few steps/tweaks to get your demos of sphinx 4 working....it turns out there are some documentation errors:
1.Install jsapi...i used freetts-1.2.1...which is opensorce and available on Sourceforge..
Download the binary and unzip it.
Copy the jsapi.jar file prsent in freetts-1.2.1\lib to the sphinx4-1.0beta\lib directory.
2.Also
sphinx4 1.0beta\demo\sphinx\hellodigits\README.html suggests that to run the hellodigits demo you should type the follg at sphinx4 prompt :
sphinx4> java -jar bin/HelloDigits.jar
But as the manifest contains ../lib/jsapi.jar
so it expects a lib directory, 1 level up from where you are trying to run the demo.
So instead of :
sphinx4-1.0beta> java -jar bin/HelloDigits.jar
use
sphinx4-1.0beta\bin>java -jar HelloDigits.jar
Why this is required ?
If you open any of the demos jar files(with winzip say) and view the manifest file,(go to sphinx4-1.0beta\bin, right click HelloDigits.jar open with WinZip executable, and then double click on the manifest.mf in the winzip window)
it shows the following :
Contents of sphinx4-1.0beta\bin\HelloDigits.jar file's manifest.mf file
Hi
I posted yesterday that i was unable to run the WavFile demo....for that matter any demo at all
So, after giving up, i asked my colleague chandra for help and as always he got it running.
So here are a few steps/tweaks to get your demos of sphinx 4 working....it turns out there are some documentation errors:
1.Install jsapi...i used freetts-1.2.1...which is opensorce and available on Sourceforge..
Download the binary and unzip it.
Copy the jsapi.jar file prsent in freetts-1.2.1\lib to the sphinx4-1.0beta\lib directory.
2.Also
sphinx4 1.0beta\demo\sphinx\hellodigits\README.html suggests that to run the hellodigits demo you should type the follg at sphinx4 prompt :
sphinx4> java -jar bin/HelloDigits.jar
But as the manifest contains ../lib/jsapi.jar
so it expects a lib directory, 1 level up from where you are trying to run the demo.
So instead of :
sphinx4-1.0beta> java -jar bin/HelloDigits.jar
use
sphinx4-1.0beta\bin>java -jar HelloDigits.jar
Why this is required ?
If you open any of the demos jar files(with winzip say) and view the manifest file,(go to sphinx4-1.0beta\bin, right click HelloDigits.jar open with WinZip executable, and then double click on the manifest.mf in the winzip window)
it shows the following :
Contents of sphinx4-1.0beta\bin\HelloDigits.jar file's manifest.mf file
anifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.4.2_04-b05 (Sun Microsystems Inc.)
Main-Class: demo.sphinx.hellodigits.HelloDigits
Class-Path: ../lib/sphinx4.jar ../lib/jsapi.jar ../lib/TIDIGITS_8gau_1
3dCep_16k_40mel_130Hz_6800Hz.jar
So this expects jsapi.jar in the sphinx4-1.0beta\lib directory.
Hope this helps....and once again my sincere thanks to chandra(my colleague who figured all this out) for helping me out once again
I hope Jerry or Arthur or Alan or any of the other developers would correct it in the readme files of the demos after verifying it.
Cheers
Ashish a.k.a Augustya