You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Polly::Types::SynthesizeSpeechOutput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#audio_streamIO

Stream containing the synthesized speech.

Returns:

  • (IO)


384
385
386
387
388
389
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 384

class SynthesizeSpeechOutput < Struct.new(
  :audio_stream,
  :content_type,
  :request_characters)
  include Aws::Structure
end

#content_typeString

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.

Returns:

  • (String)


384
385
386
387
388
389
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 384

class SynthesizeSpeechOutput < Struct.new(
  :audio_stream,
  :content_type,
  :request_characters)
  include Aws::Structure
end

#request_charactersInteger

Number of characters synthesized.

Returns:

  • (Integer)


384
385
386
387
388
389
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 384

class SynthesizeSpeechOutput < Struct.new(
  :audio_stream,
  :content_type,
  :request_characters)
  include Aws::Structure
end