Package org.ka2ddo.yaac.sound
Interface SpeechParamIfc
public interface SpeechParamIfc
This interface defines a means for implementors of
SpeechMapGeneratorIfc
to
get parameter substitutions from voice commands, corresponding to macros
in the command definitions.- Author:
- Andrew Pavlin, KA2DDO
-
Method Summary
-
Method Details
-
getParam
Get the portion of the voice command that corresponds to the specific macro name.- Parameters:
paramName
- String name of the macro whose provided value should be returned- Returns:
- String text extracted from the voice command (can be zero length if parameter allowed no words), or null if the specified macro was not used in the matched command
-
speechNormalizeText
Convert a text string into normalized form for a speech-to-text grammar.- Parameters:
text
- String to normalize- Returns:
- normalized text (punctuation stripped, all lower case)
-