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

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

Instance Method Summary collapse

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_nameString

Timepoint name as received from the client within `tag. Corresponds to the JSON propertymarkName`

Returns:

  • (String)


483
484
485
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 483

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)


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