Class CMUClusterUnitVoice

    • Field Detail

      • database

        protected java.net.URL database
    • Constructor Detail

      • CMUClusterUnitVoice

        public CMUClusterUnitVoice​(java.lang.String name,
                                   Gender gender,
                                   Age age,
                                   java.lang.String description,
                                   java.util.Locale locale,
                                   java.lang.String domain,
                                   java.lang.String organization,
                                   CMULexicon lexicon,
                                   java.net.URL database)
        Creates a simple cluster unit voice
        Parameters:
        name - the name of the voice
        gender - the gender of the voice
        age - the age of the voice
        description - a human-readable string providing a description that can be displayed for the users.
        locale - the locale of the voice
        domain - the domain of this voice. For example,
        organization - the organization which created the voice "general", "time", or "weather".
        lexicon - the lexicon to load
        database - the url to the database containing unit data for this voice.
    • Method Detail

      • getDatabase

        public java.net.URL getDatabase()
        Gets the url to the database that defines the unit data for this voice.
        Specified by:
        getDatabase in interface de.dfki.lt.freetts.ConcatenativeVoice
        Returns:
        a url to the database
      • setupFeatureSet

        protected void setupFeatureSet()
                                throws java.io.IOException
        Sets up the FeatureSet for this Voice.
        Overrides:
        setupFeatureSet in class CMUVoice
        Throws:
        java.io.IOException - if an I/O error occurs
      • getUnitSelector

        public UtteranceProcessor getUnitSelector()
                                           throws java.io.IOException
        Returns the unit selector to be used by this voice. Derived voices typically override this to customize behaviors. This voice uses a cluster unit selector as the unit selector.
        Specified by:
        getUnitSelector in interface de.dfki.lt.freetts.ConcatenativeVoice
        Overrides:
        getUnitSelector in class CMUVoice
        Returns:
        the post lexical processor
        Throws:
        java.io.IOException - if an IO error occurs while getting processor
      • getPitchmarkGenerator

        public UtteranceProcessor getPitchmarkGenerator()
                                                 throws java.io.IOException
        Returns the pitch mark generator to be used by this voice. Derived voices typically override this to customize behaviors. There is no default unit selector
        Specified by:
        getPitchmarkGenerator in interface de.dfki.lt.freetts.ConcatenativeVoice
        Overrides:
        getPitchmarkGenerator in class CMUVoice
        Returns:
        the post lexical processor
        Throws:
        java.io.IOException - if an IO error occurs while getting processor
      • getUnitConcatenator

        public UtteranceProcessor getUnitConcatenator()
                                               throws java.io.IOException
        Returns the unit concatenator to be used by this voice. Derived voices typically override this to customize behaviors. There is no default unit selector
        Specified by:
        getUnitConcatenator in interface de.dfki.lt.freetts.ConcatenativeVoice
        Overrides:
        getUnitConcatenator in class CMUVoice
        Returns:
        the post lexical processor
        Throws:
        java.io.IOException - if an IO error occurs while getting processor
      • toString

        public java.lang.String toString()
        Converts this object to a string
        Overrides:
        toString in class CMUVoice
        Returns:
        a string representation of this object