24 from global_parameters
import GlobalParams
25 from limited_vocabulary_creator
import *
27 from rapp_exceptions
import RappError
28 from rapp_utilities
import RappUtilities
46 jar_path =
".:" + self._globalParams._sphinx_jar_files_url +
"/" + \
47 self._globalParams._sphinx_jar_file +
":" + \
48 self._globalParams._sphinx_package_url +
"/src"
55 'jar_path' : jar_path, \
56 'configuration_path' : self._globalParams._language_models_url + \
57 "/greekPack/default.config.xml", \
58 'acoustic_model' : self._globalParams._acoustic_models_url, \
59 'grammar_name' :
'hello', \
60 'grammar_folder' : self._globalParams._language_models_url + \
62 'dictionary' : self._globalParams._language_models_url + \
63 "/englishPack/cmudict-en-us.dict", \
64 'language_model' : self._globalParams._language_models_url + \
65 "/englishPack/en-us.lm.bin", \
66 'grammar_disabled' :
True
79 raise NotImplementedError(
"Child classes should explicitly override this function")
Creates temporary configuration files for the input limited vocabulary.
_vocabulary
The limited vocabulary creator.
_generic_sphinx_configuration
The generic Sphinx configuration.
def __init__
Performs initializations.
def getGenericConfiguration
Returns the Generic English Configuration.
_globalParams
Contains global Sphinx parameters.
def getLimitedVocebularyConfiguration
Computes the Limited English Configuration.
Allows the creation of configuration files for Sphinx speech recognition.