Class: Aws::Polly::Types::StartSpeechSynthesisStreamInput

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#action_streamTypes::StartSpeechSynthesisStreamActionStream

The input event stream that contains text events and stream control events.



694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 694

class StartSpeechSynthesisStreamInput < Struct.new(
  :engine,
  :language_code,
  :lexicon_names,
  :output_format,
  :sample_rate,
  :voice_id,
  :action_stream)
  SENSITIVE = []
  include Aws::Structure
end

#engineString

Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. Currently, only the generative engine is supported. If you specify a voice that the selected engine doesn't support, Amazon Polly returns an error.

Returns:

  • (String)


694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 694

class StartSpeechSynthesisStreamInput < Struct.new(
  :engine,
  :language_code,
  :lexicon_names,
  :output_format,
  :sample_rate,
  :voice_id,
  :action_stream)
  SENSITIVE = []
  include Aws::Structure
end

#language_codeString

An optional parameter that sets the language code for the speech synthesis request. Specify this parameter only when using a bilingual voice. If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the bilingual voice.

Returns:

  • (String)


694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 694

class StartSpeechSynthesisStreamInput < Struct.new(
  :engine,
  :language_code,
  :lexicon_names,
  :output_format,
  :sample_rate,
  :voice_id,
  :action_stream)
  SENSITIVE = []
  include Aws::Structure
end

#lexicon_namesArray<String>

The names of one or more pronunciation lexicons for the service to apply during synthesis. Amazon Polly applies lexicons only when the lexicon language matches the voice language.

Returns:

  • (Array<String>)


694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 694

class StartSpeechSynthesisStreamInput < Struct.new(
  :engine,
  :language_code,
  :lexicon_names,
  :output_format,
  :sample_rate,
  :voice_id,
  :action_stream)
  SENSITIVE = []
  include Aws::Structure
end

#output_formatString

The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.

Returns:

  • (String)


694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 694

class StartSpeechSynthesisStreamInput < Struct.new(
  :engine,
  :language_code,
  :lexicon_names,
  :output_format,
  :sample_rate,
  :voice_id,
  :action_stream)
  SENSITIVE = []
  include Aws::Structure
end

#sample_rateString

The audio frequency, specified in Hz.

Returns:

  • (String)


694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 694

class StartSpeechSynthesisStreamInput < Struct.new(
  :engine,
  :language_code,
  :lexicon_names,
  :output_format,
  :sample_rate,
  :voice_id,
  :action_stream)
  SENSITIVE = []
  include Aws::Structure
end

#voice_idString

The voice to use in synthesis. To get a list of available voice IDs, use the DescribeVoices operation.

Returns:

  • (String)


694
695
696
697
698
699
700
701
702
703
704
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 694

class StartSpeechSynthesisStreamInput < Struct.new(
  :engine,
  :language_code,
  :lexicon_names,
  :output_format,
  :sample_rate,
  :voice_id,
  :action_stream)
  SENSITIVE = []
  include Aws::Structure
end