Class: Google::Apis::TexttospeechV1beta1::Timepoint
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1beta1::Timepoint
- 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
This contains a mapping between a certain point in the input text and a corresponding time in the output audio.
Instance Attribute Summary collapse
-
#mark_name ⇒ String
Timepoint name as received from the client within `` tag.
-
#time_seconds ⇒ Float
Time offset in seconds from the start of the synthesized audio.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Timepoint
constructor
A new instance of Timepoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Timepoint
Returns a new instance of Timepoint.
490 491 492 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 490 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mark_name ⇒ String
Timepoint name as received from the client within `tag.
Corresponds to the JSON property
markName`
483 484 485 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 483 def mark_name @mark_name end |
#time_seconds ⇒ Float
Time offset in seconds from the start of the synthesized audio.
Corresponds to the JSON property timeSeconds
488 489 490 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 488 def time_seconds @time_seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
495 496 497 498 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 495 def update!(**args) @mark_name = args[:mark_name] if args.key?(:mark_name) @time_seconds = args[:time_seconds] if args.key?(:time_seconds) end |