Class CreateSpeakerModelOptions.Builder
java.lang.Object
com.ibm.watson.text_to_speech.v1.model.CreateSpeakerModelOptions.Builder
- Enclosing class:
- CreateSpeakerModelOptions
public static class CreateSpeakerModelOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(String speakerName, InputStream audio)Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description CreateSpeakerModelOptions.Builderaudio(File audio)Set the audio.CreateSpeakerModelOptions.Builderaudio(InputStream audio)Set the audio.CreateSpeakerModelOptionsbuild()Builds a CreateSpeakerModelOptions.CreateSpeakerModelOptions.BuilderspeakerName(String speakerName)Set the speakerName.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
speakerName- the speakerNameaudio- the audio
-
-
Method Details
-
build
Builds a CreateSpeakerModelOptions.- Returns:
- the new CreateSpeakerModelOptions instance
-
speakerName
Set the speakerName.- Parameters:
speakerName- the speakerName- Returns:
- the CreateSpeakerModelOptions builder
-
audio
Set the audio.- Parameters:
audio- the audio- Returns:
- the CreateSpeakerModelOptions builder
-
audio
Set the audio.- Parameters:
audio- the audio- Returns:
- the CreateSpeakerModelOptions builder
- Throws:
FileNotFoundException- if the file could not be found
-