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 Details

    • contentType

      SynthesizeSpeechResponse.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 application/x-json-stream.

      Parameters:
      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 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.