From HemeraBook
Jump to: navigation, search

Default (and recommended) mode is sphinx3.


Ensure to have installed SoX v14.2 or later; then check/update the following configuration elements


sphinx3 mode

Since Hemera v0.1.

cmusphinx3 installation

From package

RedHat-based distributions

yum install cmusphinx3

Check/update the following configuration elements (See binary and library paths):


From source

To begin, you need to prepare your computer for compiling source code.

Trick: you should put source in HEMERA_TP_PATH/_fromSource which has been created to help you keeping track on third-party tools you have installed for Hemera, and for more ease updating configuration file (sample gives ready-to-use paths)


  • you MUST checkout sphinxbase, sphinx3 and SphinxTrain into the same root directory, such a way, the configuration system will automagically find sphinxbase headers and libraries
  • you must get the recommended revision (embedded to following links)
svn co
svn co
svn co
  • sphinxbase compilation instructions:
cd sphinxbase
make -s
  • sphinx3 compilation instructions:
 cd ../sphinx3
 make -s
  • SphinxTrain compilation instructions:
 cd ../SphinxTrain
 make -s
  • check/update configuration file 1/2 (See binary and library paths):
    • add following paths, separated by colon, to hemera.path.bin (or get everything from configuration file sample):
      • _fromSource/SphinxTrain/bin*
      • _fromSource/sphinx3/src/programs
    • add following paths, separated by colon, to hemera.path.lib (or get everything from configuration file sample):
      • _fromSource/sphinxbase/src/libsphinxbase/.libs
      • _fromSource/sphinxbase/src/libsphinxad/.libs
      • _fromSource/sphinx3/src/programs/.libs
      • _fromSource/sphinx3/src/libs3decoder/.libs


Any models must be encoded in UTF-8.
For better efficiencies, you should create your own models.

As quick start, you may install existing models; theoretically you can use any model compatible with sphinx3.

This is specific instructions for tested models: English, French