Class Text2SpeechInput

java.lang.Object
com.intellijava.core.model.input.Text2SpeechInput

public class Text2SpeechInput extends Object
SpeechTextInput class represents the speech input with the provided text and gender. It also provides a Builder to create an instance with optional fields.
Author:
github.com/Barqawiz
  • Constructor Details

    • Text2SpeechInput

      public Text2SpeechInput(String text, Text2SpeechInput.Gender gender)
      Constructor to create a new SpeechInput object with provided text and gender.
      Parameters:
      text - the text of the speech input.
      gender - the gender of the speech input.
  • Method Details

    • getText

      public String getText()
      Getter for speech text.
      Returns:
      the text of the speech input.
    • getGender

      public Text2SpeechInput.Gender getGender()
      Getter for the speech gender.
      Returns:
      the gender of the speech input.
    • setText

      public void setText(String text)
      Setter for the speech text.
      Parameters:
      text - the text of the speech input.
    • setGender

      public void setGender(Text2SpeechInput.Gender gender)
      Setter for the speech gender.
      Parameters:
      gender - the gender of the speech input.