public static class CreateSpeakerModelOptions.Builder extends Object
| Constructor and Description | 
|---|
Builder()
Instantiates a new builder. 
 | 
Builder(String speakerName,
       InputStream audio)
Instantiates a new builder with required properties. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CreateSpeakerModelOptions.Builder | 
audio(File audio)
Set the audio. 
 | 
CreateSpeakerModelOptions.Builder | 
audio(InputStream audio)
Set the audio. 
 | 
CreateSpeakerModelOptions | 
build()
Builds a CreateSpeakerModelOptions. 
 | 
CreateSpeakerModelOptions.Builder | 
speakerName(String speakerName)
Set the speakerName. 
 | 
public Builder()
public Builder(String speakerName, InputStream audio)
speakerName - the speakerNameaudio - the audiopublic CreateSpeakerModelOptions build()
public CreateSpeakerModelOptions.Builder speakerName(String speakerName)
speakerName - the speakerNamepublic CreateSpeakerModelOptions.Builder audio(InputStream audio)
audio - the audiopublic CreateSpeakerModelOptions.Builder audio(File audio) throws FileNotFoundException
audio - the audioFileNotFoundException - if the file could not be foundCopyright © 2021 IBM Cloud. All rights reserved.