public class Configuration
extends java.lang.Object
SpeechAligner
,
LiveSpeechRecognizer
,
StreamSpeechRecognizer
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAcousticModelPath() |
java.lang.String |
getDictionaryPath() |
java.lang.String |
getGrammarName() |
java.lang.String |
getGrammarPath() |
java.lang.String |
getLanguageModelPath() |
int |
getSampleRate() |
boolean |
getUseGrammar() |
void |
setAcousticModelPath(java.lang.String acousticModelPath)
Sets path to acoustic model.
|
void |
setDictionaryPath(java.lang.String dictionaryPath)
Sets path to dictionary.
|
void |
setGrammarName(java.lang.String grammarName)
Sets grammar name if fixed grammar is used.
|
void |
setGrammarPath(java.lang.String grammarPath)
Sets path to grammar resources.
|
void |
setLanguageModelPath(java.lang.String languageModelPath)
Sets paths to language model resource.
|
void |
setSampleRate(int sampleRate)
Sets sample rate for the input stream.
|
void |
setUseGrammar(boolean useGrammar)
Sets whether fixed grammar should be used instead of language model.
|
public java.lang.String getAcousticModelPath()
public void setAcousticModelPath(java.lang.String acousticModelPath)
acousticModelPath
- URL of the acoustic modelpublic java.lang.String getDictionaryPath()
public void setDictionaryPath(java.lang.String dictionaryPath)
dictionaryPath
- URL of the dictionarypublic java.lang.String getLanguageModelPath()
public void setLanguageModelPath(java.lang.String languageModelPath)
languageModelPath
- URL of the language modelpublic java.lang.String getGrammarPath()
public void setGrammarPath(java.lang.String grammarPath)
grammarPath
- URL of the grammarpublic java.lang.String getGrammarName()
public void setGrammarName(java.lang.String grammarName)
grammarName
- of the grammarpublic boolean getUseGrammar()
public void setUseGrammar(boolean useGrammar)
useGrammar
- to use grammar or language modelpublic int getSampleRate()
public void setSampleRate(int sampleRate)
sampleRate
- sample rate in Hertz