public static class DetectLanguageOptions.Builder extends Object
| Constructor and Description |
|---|
Builder()
Instantiates a new builder.
|
Builder(Float lidConfidence,
InputStream audio)
Instantiates a new builder with required properties.
|
| Modifier and Type | Method and Description |
|---|---|
DetectLanguageOptions.Builder |
audio(File audio)
Set the audio.
|
DetectLanguageOptions.Builder |
audio(InputStream audio)
Set the audio.
|
DetectLanguageOptions |
build()
Builds a DetectLanguageOptions.
|
DetectLanguageOptions.Builder |
contentType(String contentType)
Set the contentType.
|
DetectLanguageOptions.Builder |
lidConfidence(Float lidConfidence)
Set the lidConfidence.
|
public Builder()
public Builder(Float lidConfidence, InputStream audio)
lidConfidence - the lidConfidenceaudio - the audiopublic DetectLanguageOptions build()
public DetectLanguageOptions.Builder lidConfidence(Float lidConfidence)
lidConfidence - the lidConfidencepublic DetectLanguageOptions.Builder audio(InputStream audio)
audio - the audiopublic DetectLanguageOptions.Builder contentType(String contentType)
contentType - the contentTypepublic DetectLanguageOptions.Builder audio(File audio) throws FileNotFoundException
audio - the audioFileNotFoundException - if the file could not be foundCopyright © 2026 IBM Cloud. All rights reserved.