Class Text2SpeechInput.Builder

java.lang.Object
com.intellijava.core.model.input.Text2SpeechInput.Builder
Enclosing class:
Text2SpeechInput

public static class Text2SpeechInput.Builder extends Object
Builder class to create an instance of SpeechInput with optional fields.
  • Constructor Details

    • Builder

      public Builder(String text)
      Constructor that creates a new Builder object with the provided text.
      Parameters:
      text - the text of the speech input.
  • Method Details

    • setText

      public Text2SpeechInput.Builder setText(String text)
      Setter for speech input text.
      Parameters:
      text - the text of the speech input.
      Returns:
      the current instance of the Builder.
    • setGender

      Setter for the speech input gender.
      Parameters:
      gender - the gender of the speech input.
      Returns:
      the current instance of the Builder.
    • build

      public Text2SpeechInput build()
      Build a new instance of SpeechInput with the values set in the Builder.
      Returns:
      a new instance of SpeechInput.