Class: Google::Apis::TexttospeechV1::MultiSpeakerMarkup

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/texttospeech_v1/classes.rb,
lib/google/apis/texttospeech_v1/representations.rb,
lib/google/apis/texttospeech_v1/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.



338
339
340
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 338

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

Instance Attribute Details

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

Required. Speaker turns. Corresponds to the JSON property turns



336
337
338
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 336

def turns
  @turns
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



343
344
345
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 343

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