Interface TTSTalker


  • public interface TTSTalker
    A very simple interface that generates an audioinputstream for text. The voice, language, etc, are all based on the implementation, and should have been configured elsewhere.
    • Method Detail

      • isAvailable

        boolean isAvailable()
        The talker won't be available if the demo is expired, or for some other reason (like concurrent thread limitations, etc).
      • render

        javax.sound.sampled.AudioInputStream render​(java.lang.String value)
                                             throws java.lang.Exception
        Renders the given text to an audio stream.
        Throws:
        java.lang.Exception
      • setDesiredSpeed

        @Deprecated
        void setDesiredSpeed​(TTSSpeed speed)
        Deprecated.
        Indicates to the underlying system what the desired speed should be. The engine may or may not support adjusting this value.

        Important: 3rd party modules should not set or depend on this. Settings concerning the voices should be set elsewhere by the user, and not by each module using the system.