Package org.ka2ddo.yaac.sound
Class SpeechUtilities
java.lang.Object
org.ka2ddo.yaac.sound.SpeechUtilities
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 Summary
Modifier and TypeMethodDescriptionstatic String
dephoneticizeCallsign
(String phoneticCallsign) Convert a string of standard phonetics into a simple callsign-SSID string.static String
expandNumberToText
(double num, int precision) Convert a floating point number into words that can be spoken.static String
phoneticizeCallsign
(String callsign) Convert an APRS-standard callsign-SSID string into international phonetics.
-
Method Details
-
dephoneticizeCallsign
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
Convert a floating point number into words that can be spoken.- Parameters:
num
- double number to formatprecision
- 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
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:
-