• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sphinx4 - Using a custom dictionary

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic