public interface Recognizer
Modifier and Type | Method and Description |
---|---|
void |
addAlias(String name,
String[] values)
Adds an alias to use inside of a command.
|
void |
addCommand(String phrase)
Adds a new command phrase.
|
void |
addCommand(String[] commandPhrases)
Adds some command phrases.
|
void |
addMeta(MetaType type,
String value)
Add meta value to synthesizer
|
void |
addOptionalCommand(String command,
String parameter)
Specify additional parameters to send to the server.
|
void |
cancelProcessing()
Cancels the processing of the data when it was already recorded
|
void |
cancelRecord()
Cancels a recording in progress.
|
void |
clearAlias()
Clears all aliases.
|
void |
clearCommand()
Clears all commands.
|
void |
clearOptionalCommand()
Clears optional parameters.
|
FreeformType |
getFreeForm()
Get current free form type
|
boolean |
isRunning()
Test this to determine if this is still running
|
void |
setChime(boolean isOn)
Disable or enable the audio chime
|
void |
setFreeForm(FreeformType freeFormType)
Set to free form recognition.
|
void |
setLocale(String locale)
Set the locale for speech recognition
|
void |
setModel(String model)
Sets the language model
|
void |
startRecord(SpeechRecognizerEvent speechRecognizerEvent)
Start recording.
|
void |
stopRecord()
Stops the recording process.
|
void startRecord(SpeechRecognizerEvent speechRecognizerEvent) throws BusyException, NoNetworkException
speechRecognizerEvent
- BusyException
NoNetworkException
void stopRecord()
void cancelRecord()
void cancelProcessing()
void addCommand(String[] commandPhrases)
commandPhrases
- An array containing your command phrasesvoid addCommand(String phrase)
phrase
- Your command phrasevoid clearCommand()
void addAlias(String name, String[] values)
name
- The name of your alias for referencing inside of your commands.values
- The list of phrases for this alias.void clearAlias()
void addMeta(MetaType type, String value)
type
- value
- void clearOptionalCommand()
void addOptionalCommand(String command, String parameter)
void setFreeForm(FreeformType freeFormType)
FreeformType getFreeForm()
FreeformType
boolean isRunning()
void setModel(String model)
void setLocale(String locale)
void setChime(boolean isOn)