Class SpeechUtilities

java.lang.Object
org.ka2ddo.yaac.sound.SpeechUtilities

public class SpeechUtilities extends Object
This class provides service functions specific to text-to-speech and speech-to-text operations that may be needed across multiple plugins.
Author:
Andrew Pavlin, KA2DDO
  • Method Details

    • dephoneticizeCallsign

      public static String dephoneticizeCallsign(String phoneticCallsign)
      Convert a string of standard phonetics into a simple callsign-SSID string.
      Parameters:
      phoneticCallsign - space-delimited phonetic-encoded callsign string
      Returns:
      short-form callsign String
    • expandNumberToText

      public static String expandNumberToText(double num, int precision)
      Convert a floating point number into words that can be spoken.
      Parameters:
      num - double number to format
      precision - the number of digits after the decimal point to report (may be zero)
      Returns:
      String of words in the locale or default locale stating the number
    • phoneticizeCallsign

      public static String phoneticizeCallsign(String callsign)
      Convert an APRS-standard callsign-SSID string into international phonetics.
      Parameters:
      callsign - callsign String (possibly as returned from AX25Callsign.toString()
      Returns:
      String of space-delimited phonetic alphabet words
      See Also: