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

    Modifier and Type
    Method
    Description
    getParam(String paramName)
    Get the portion of the voice command that corresponds to the specific macro name.
    Convert a text string into normalized form for a speech-to-text grammar.
  • Method Details

    • getParam

      String getParam(String paramName)
      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

      String speechNormalizeText(String text)
      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)