Class SpeechSynthesisRequest

    • Method Detail

      • getRequestHandle

        public SafeHandle getRequestHandle()
      • setPitch

        public void setPitch​(String pitch)
        Sets the pitch of the voice.
        Parameters:
        pitch - The pitch value (e.g., "high", "low", "+10%", "-10Hz").
      • setRate

        public void setRate​(String rate)
        Sets the speaking rate of the voice.
        Parameters:
        rate - The rate value (e.g., "fast", "slow", "50%", "1.5").
      • setVolume

        public void setVolume​(String volume)
        Sets the volume of the voice.
        Parameters:
        volume - The volume value (e.g., "loud", "soft", "0.8", "80%").
      • setStyle

        public void setStyle​(String style)
        Sets the style of the voice.
        Parameters:
        style - The style value.
      • setTemperature

        public void setTemperature​(double temperature)
        Sets the temperature for voice synthesis.
        Parameters:
        temperature - The temperature value (0.0 to 2.0).
      • sendTextPiece

        public void sendTextPiece​(String text)
      • finishInput

        public void finishInput()