Class: Google::Apis::TexttospeechV1beta1::Timepoint

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

Timepoint name as received from the client within tag. Corresponds to the JSON property markName

Returns:

  • (String)


229
230
231
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 229

def mark_name
  @mark_name
end

#time_secondsFloat

Time offset in seconds from the start of the synthesized audio. Corresponds to the JSON property timeSeconds

Returns:

  • (Float)


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