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
copyMethods inherited from interface software.amazon.awssdk.services.polly.model.PollyResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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.
-