Class: Google::Apis::TexttospeechV1beta1::Turn

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 Multi-speaker turn.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Turn

Returns a new instance of Turn.



627
628
629
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 627

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

Instance Attribute Details

#speakerString

Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available speakers. Corresponds to the JSON property speaker

Returns:

  • (String)


620
621
622
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 620

def speaker
  @speaker
end

#textString

Required. The text to speak. Corresponds to the JSON property text

Returns:

  • (String)


625
626
627
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 625

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



632
633
634
635
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 632

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