Class: Google::Apis::TexttospeechV1beta1::Timepoint
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1beta1::Timepoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/texttospeech_v1beta1/classes.rb,
generated/google/apis/texttospeech_v1beta1/representations.rb,
generated/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.
236 237 238 |
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 236 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
229 230 231 |
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 229 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
234 235 236 |
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 234 def time_seconds @time_seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
241 242 243 244 |
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 241 def update!(**args) @mark_name = args[:mark_name] if args.key?(:mark_name) @time_seconds = args[:time_seconds] if args.key?(:time_seconds) end |