aspose file tools
The moose likes Other Open Source Projects and the fly likes Sphinx4 - Using a custom dictionary Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Sphinx4 - Using a custom dictionary" Watch "Sphinx4 - Using a custom dictionary" New topic
Author

Sphinx4 - Using a custom dictionary

Scheepers de Bruin
Ranch Hand

Joined: Jul 19, 2005
Posts: 99
Hi

I am using sphinx to do a verbal interface for an application with limited simple commands and no dictation capabilities, but it is way too slow and chows too much memory. I suspect this is because of the size of the vocabulary (63000+ words)

Using the edu.cmu.sphinx.linguist.dictionary.FastDictionary I know you can create your own dictionary with this format:
ONE HH W AH N
TWO T UW
THREE TH R IY
FOUR F AO R
etc.

I did get it to start reading a dictionary file once, but encountered this exception:

Problem when loading Test: java.lang.Error: Error loading word: nementh
java.lang.Error: Error loading word: nementh
at edu.cmu.sphinx.linguist.dictionary.FastDictionary.loadDictionary(FastDictionary.java:228)
at edu.cmu.sphinx.linguist.dictionary.FastDictionary.allocate(FastDictionary.java:171)
at edu.cmu.sphinx.linguist.language.grammar.Grammar.allocate(Grammar.java:159)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.allocate(FlatLinguist.java:319)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.allocate(SimpleBreadthFirstSearchManager.java:602)
at edu.cmu.sphinx.decoder.Decoder.allocate(Decoder.java:109)
at edu.cmu.sphinx.recognizer.Recognizer.allocate(Recognizer.java:182)
at nementh.Test.main(Test.java:38)

NOW, due to unfortunate accident involving my toaster and a USB port, I have lost the configuration that got Sphinx to start reading the dictionary, and I've failed at getting it to do it again.

So I have two questions:
1) How does one specify a custom dictionary
2) Once that's accomplished, does this exception mean I am using incorrect phenomes to define words or what?

Thanks in advance!
[ February 17, 2006: Message edited by: Scheepers de Bruin ]

We're doomed!!<br />Yay!!!<br />No that's bad Girr!!<br />Yay!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sphinx4 - Using a custom dictionary
 
Similar Threads
password strength using dictionary words.
NullPointerException problems in Main
Is anyone have program for making dictionary using standard(core) java?
Help! How to design this mutithreading application??
Finding anagrams in a dictionary file using pre-fixes