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_stream ⇒ Types::StartSpeechSynthesisStreamActionStream

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



1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1031

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

#engine ⇒ String

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)


1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1031

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

#language_code ⇒ String

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)


1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1031

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

#lexicon_names ⇒ Array<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>)


1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1031

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

#output_format ⇒ String

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

Returns:

  • (String)


1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1031

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

#sample_rate ⇒ String

The audio frequency, specified in Hz.

Returns:

  • (String)


1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1031

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

#voice_id ⇒ String

The voice ID to use for the synthesis. To get a list of available voice IDs, use the DescribeVoices operation. To use a custom voice, specify the voice ID that CreateVoice returned, for example, vc-9a8fa85dd3. You can't specify the ARN of a voice.

Returns:

  • (String)


1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1031

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