Class: Google::Apis::TexttospeechV1::Turn

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Turn

Returns a new instance of Turn.



611
612
613
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 611

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)


604
605
606
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 604

def speaker
  @speaker
end

#textString

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

Returns:

  • (String)


609
610
611
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 609

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



616
617
618
619
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 616

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