Interface SynthesizeSpeechResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<SynthesizeSpeechResponse.Builder,SynthesizeSpeechResponse>,PollyResponse.Builder,SdkBuilder<SynthesizeSpeechResponse.Builder,SynthesizeSpeechResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- SynthesizeSpeechResponse
public static interface SynthesizeSpeechResponse.Builder extends PollyResponse.Builder, SdkPojo, CopyableBuilder<SynthesizeSpeechResponse.Builder,SynthesizeSpeechResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SynthesizeSpeechResponse.BuildercontentType(String contentType)Specifies the type audio stream.SynthesizeSpeechResponse.BuilderrequestCharacters(Integer requestCharacters)Number of characters synthesized.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.polly.model.PollyResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
contentType
SynthesizeSpeechResponse.Builder contentType(String contentType)
Specifies the type audio stream. This should reflect the
OutputFormatparameter in your request.-
If you request
mp3as theOutputFormat, theContentTypereturned is audio/mpeg. -
If you request
ogg_vorbisas theOutputFormat, theContentTypereturned is audio/ogg. -
If you request
pcmas theOutputFormat, theContentTypereturned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format. -
If you request
jsonas theOutputFormat, theContentTypereturned is application/x-json-stream.
- Parameters:
contentType- Specifies the type audio stream. This should reflect theOutputFormatparameter in your request.-
If you request
mp3as theOutputFormat, theContentTypereturned is audio/mpeg. -
If you request
ogg_vorbisas theOutputFormat, theContentTypereturned is audio/ogg. -
If you request
pcmas theOutputFormat, theContentTypereturned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format. -
If you request
jsonas theOutputFormat, theContentTypereturned is application/x-json-stream.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
requestCharacters
SynthesizeSpeechResponse.Builder requestCharacters(Integer requestCharacters)
Number of characters synthesized.
- Parameters:
requestCharacters- Number of characters synthesized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-