public static interface SynthesizeSpeechResponse.Builder extends PollyResponse.Builder, CopyableBuilder<SynthesizeSpeechResponse.Builder,SynthesizeSpeechResponse>
| Modifier and Type | Method and Description |
|---|---|
SynthesizeSpeechResponse.Builder |
contentType(String contentType)
Specifies the type audio stream.
|
SynthesizeSpeechResponse.Builder |
requestCharacters(Integer requestCharacters)
Number of characters synthesized.
|
buildsdkHttpResponse, sdkHttpResponsecopyapply, buildSynthesizeSpeechResponse.Builder contentType(String contentType)
Specifies the type audio stream. This should reflect the OutputFormat parameter in your request.
If you request mp3 as the OutputFormat, the ContentType returned is
audio/mpeg.
If you request ogg_vorbis as the OutputFormat, the ContentType
returned is audio/ogg.
If you request pcm as the OutputFormat, the ContentType returned is
audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
If you request json as the OutputFormat, the ContentType returned is
audio/json.
contentType - Specifies the type audio stream. This should reflect the OutputFormat parameter in your
request.
If you request mp3 as the OutputFormat, the ContentType
returned is audio/mpeg.
If you request ogg_vorbis as the OutputFormat, the ContentType
returned is audio/ogg.
If you request pcm as the OutputFormat, the ContentType
returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
If you request json as the OutputFormat, the ContentType
returned is audio/json.
SynthesizeSpeechResponse.Builder requestCharacters(Integer requestCharacters)
Number of characters synthesized.
requestCharacters - Number of characters synthesized.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.