Package com.intellijava.core.model.input
Class Text2SpeechInput
java.lang.Object
com.intellijava.core.model.input.Text2SpeechInput
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class to create an instance of SpeechInput with optional fields.static enum
Enum for the speech input gender. -
Constructor Summary
ConstructorDescriptionText2SpeechInput
(String text, Text2SpeechInput.Gender gender) Constructor to create a new SpeechInput object with provided text and gender. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the speech gender.getText()
Getter for speech text.void
setGender
(Text2SpeechInput.Gender gender) Setter for the speech gender.void
Setter for the speech text.
-
Constructor Details
-
Text2SpeechInput
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
Getter for speech text.- Returns:
- the text of the speech input.
-
getGender
Getter for the speech gender.- Returns:
- the gender of the speech input.
-
setText
Setter for the speech text.- Parameters:
text
- the text of the speech input.
-
setGender
Setter for the speech gender.- Parameters:
gender
- the gender of the speech input.
-