Package com.intellijava.core.model.input
Class Text2SpeechInput.Builder
java.lang.Object
com.intellijava.core.model.input.Text2SpeechInput.Builder
- Enclosing class:
Text2SpeechInput
Builder class to create an instance of SpeechInput with optional fields.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a new instance of SpeechInput with the values set in the Builder.setGender
(Text2SpeechInput.Gender gender) Setter for the speech input gender.Setter for speech input text.
-
Constructor Details
-
Builder
Constructor that creates a new Builder object with the provided text.- Parameters:
text
- the text of the speech input.
-
-
Method Details
-
setText
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
Build a new instance of SpeechInput with the values set in the Builder.- Returns:
- a new instance of SpeechInput.
-