Class FreeTTSVoice


  • public class FreeTTSVoice
    extends BaseVoice
    Extends the BaseVoice class to encapsulate FreeTTSSynthesizer specific data.
    • Constructor Detail

      • FreeTTSVoice

        public FreeTTSVoice​(Voice freettsVoice,
                            java.lang.String validatorName)
        Constructs a FreeTTSVoice
        Parameters:
        freettsVoice - the freetts voice
        validatorName - the classname of the validator to use
    • Method Detail

      • toString

        public java.lang.String toString()
        Gets a string representation of the object
        Overrides:
        toString in class BaseVoice
        Returns:
        the name of this voice
      • getVoice

        public Voice getVoice()
        Gets a FreeTTS com.sun.speech.freetts.Voice from this JSAPI voice
        Returns:
        a FreeTTS Voice or null, if the voice cannot be found
      • setId

        public void setId​(java.lang.String id)
        Sets the id for this voice.
        Overrides:
        setId in class BaseVoice
        Parameters:
        id - the new id
        See Also:
        BaseVoice.getId()
      • clone

        public java.lang.Object clone()
        Creates a copy of this BaseVoice.
        Overrides:
        clone in class BaseVoice
        Returns:
        the cloned object