I'm new to Sphinx, and wish to transcript news podcasts into speech. I have been trying to adapt the WavFile demo in order to use the WSJ instead of recognising digits.
Thus far I have managed to get the demos running without problem, and have progressed on to trying to get the WavFile demo to work.
The steps I have taken so far are to:
Change config.xml to the configuration file used for HelloNGram
Include a copy of HelloNGram.trigram.lm in the WavFile jar
Edit the manifest to add the WSJ jar instead of tidigits
Change the original file 12345.wav to the audio sample I wish to transcribe, keeping the name the same.
Increasing the java heap size on run which prevents out of memory errors.
I still have a problem which persists, and seems to occur after having tried a few approaches, and was wondering if anyone might have any recommendations?
java -mx1024m -jar bin/WavFile.jar
Loading Recognizer as defined in 'jar:file:/C:/sphinx4-1.0beta2/bin/WavFile.jar!/edu/cmu/sphinx/demo/wavfile/config.xml'...
Exception in thread "main" java.lang.NullPointerException
at edu.cmu.sphinx.demo.wavfile.WavFile.main(WavFile.java:50)
Any help would be greatly appreciated. A copy of config.xml is below:
Hi,
I'm new to Sphinx, and wish to transcript news podcasts into speech. I have been trying to adapt the WavFile demo in order to use the WSJ instead of recognising digits.
Thus far I have managed to get the demos running without problem, and have progressed on to trying to get the WavFile demo to work.
The steps I have taken so far are to:
Change config.xml to the configuration file used for HelloNGram
Include a copy of HelloNGram.trigram.lm in the WavFile jar
Edit the manifest to add the WSJ jar instead of tidigits
Change the original file 12345.wav to the audio sample I wish to transcribe, keeping the name the same.
Increasing the java heap size on run which prevents out of memory errors.
I still have a problem which persists, and seems to occur after having tried a few approaches, and was wondering if anyone might have any recommendations?
java -mx1024m -jar bin/WavFile.jar
Loading Recognizer as defined in 'jar:file:/C:/sphinx4-1.0beta2/bin/WavFile.jar!/edu/cmu/sphinx/demo/wavfile/config.xml'...
Exception in thread "main" java.lang.NullPointerException
at edu.cmu.sphinx.demo.wavfile.WavFile.main(WavFile.java:50)
Any help would be greatly appreciated. A copy of config.xml is below:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Sphinx-4 Configuration file
-->
<!-- ******** -->
<!-- biship configuration file -->
<!-- ******** -->
<config>
<!-- ******** -->
<!-- frequently tuned properties -->
<!-- ******** -->
<property name="absoluteBeamWidth" value="5000"/>
<property name="relativeBeamWidth" value="1E-120"/>
<property name="absoluteWordBeamWidth" value="200"/>
<property name="relativeWordBeamWidth" value="1E-80"/>
<property name="wordInsertionProbability" value="0.7"/>
<property name="languageWeight" value="10.5"/>
<property name="silenceInsertionProbability" value=".1"/>
<property name="frontend" value="epFrontEnd"/>
<property name="recognizer" value="recognizer"/>
<property name="showCreations" value="false"/>
</config>
Thank you for your time,
Tom
> was wondering if anyone might have any recommendations?
Search the forum before asking?
Your problem is that you don't include WSJ jar into classpath.