android.speech.recognition.impl
Class SrecGrammarImpl
java.lang.Object
android.speech.recognition.impl.GrammarImpl
android.speech.recognition.impl.EmbeddedGrammarImpl
android.speech.recognition.impl.SrecGrammarImpl
- All Implemented Interfaces:
- EmbeddedGrammar, Grammar, SrecGrammar, Runnable
public class SrecGrammarImpl
- extends EmbeddedGrammarImpl
- implements SrecGrammar
|
Constructor Summary |
SrecGrammarImpl(long nativeObject)
Creates a new SrecGrammarImpl. |
SrecGrammarImpl
public SrecGrammarImpl(long nativeObject)
- Creates a new SrecGrammarImpl.
- Parameters:
nativeObject - the native object
addItem
public void addItem(String slotName,
SlotItem item,
int weight,
String semanticValue)
- Description copied from interface:
SrecGrammar
- Adds an item to a slot.
- Specified by:
addItem in interface SrecGrammar
- Parameters:
slotName - the name of the slotitem - the item to add to the slot.weight - the weight of the item. Smaller values are more likely to get recognized. This should be >= 0.semanticValue - the value that will be returned if this item is recognized.
addItemList
public void addItemList(String slotName,
Vector<SrecGrammar.Item> items)
- Description copied from interface:
SrecGrammar
- Add a list of item to a slot.
- Specified by:
addItemList in interface SrecGrammar
- Parameters:
slotName - the name of the slotitems - the vector of SrecGrammar.Item to add to the slot.
Please submit a feedback, bug or feature