Interface SynthesizeSpeechResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<SynthesizeSpeechResponse.Builder,
,SynthesizeSpeechResponse> PollyResponse.Builder
,SdkBuilder<SynthesizeSpeechResponse.Builder,
,SynthesizeSpeechResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
SynthesizeSpeechResponse
-
Method Summary
Modifier and TypeMethodDescriptioncontentType
(String contentType) Specifies the type audio stream.requestCharacters
(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 Details
-
contentType
Specifies the type audio stream. This should reflect the
OutputFormat
parameter in your request.-
If you request
mp3
as theOutputFormat
, theContentType
returned is audio/mpeg. -
If you request
ogg_vorbis
as theOutputFormat
, theContentType
returned is audio/ogg. -
If you request
pcm
as theOutputFormat
, theContentType
returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format. -
If you request
json
as theOutputFormat
, theContentType
returned is application/x-json-stream.
- Parameters:
contentType
- Specifies the type audio stream. This should reflect theOutputFormat
parameter in your request.-
If you request
mp3
as theOutputFormat
, theContentType
returned is audio/mpeg. -
If you request
ogg_vorbis
as theOutputFormat
, theContentType
returned is audio/ogg. -
If you request
pcm
as theOutputFormat
, theContentType
returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format. -
If you request
json
as theOutputFormat
, theContentType
returned is application/x-json-stream.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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.
-