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.



601
602
603
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 601

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)


594
595
596
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 594

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)


599
600
601
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 599

def time_seconds
  @time_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



606
607
608
609
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 606

def update!(**args)
  @mark_name = args[:mark_name] if args.key?(:mark_name)
  @time_seconds = args[:time_seconds] if args.key?(:time_seconds)
end