Class: Google::Apis::TexttospeechV1::Turn
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1::Turn
- 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
-
#speaker ⇒ String
Required.
-
#text ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Turn
constructor
A new instance of Turn.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#speaker ⇒ String
Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to
documentation for available speakers.
Corresponds to the JSON property speaker
604 605 606 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 604 def speaker @speaker end |
#text ⇒ String
Required. The text to speak.
Corresponds to the JSON property text
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 |