Class: Google::Apis::TexttospeechV1beta1::MultiSpeakerMarkup

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/texttospeech_v1beta1/classes.rb,
lib/google/apis/texttospeech_v1beta1/representations.rb,
lib/google/apis/texttospeech_v1beta1/representations.rb

Overview

A collection of turns for multi-speaker synthesis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MultiSpeakerMarkup

Returns a new instance of MultiSpeakerMarkup.



279
280
281
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 279

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#turnsArray<Google::Apis::TexttospeechV1beta1::Turn>

Required. Speaker turns. Corresponds to the JSON property turns



277
278
279
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 277

def turns
  @turns
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



284
285
286
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 284

def update!(**args)
  @turns = args[:turns] if args.key?(:turns)
end