Class: TencentCloud::Asr::V20190614::SentenceWord

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190614/models.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(word = nil, starttime = nil, endtime = nil) ⇒ SentenceWord

Returns a new instance of SentenceWord.



1731
1732
1733
1734
1735
# File 'lib/v20190614/models.rb', line 1731

def initialize(word=nil, starttime=nil, endtime=nil)
  @Word = word
  @StartTime = starttime
  @EndTime = endtime
end

Instance Attribute Details

#EndTimeObject

Parameters:

  • Word:

    词结果

  • StartTime:

    词在音频中的开始时间

  • EndTime:

    词在音频中的结束时间



1729
1730
1731
# File 'lib/v20190614/models.rb', line 1729

def EndTime
  @EndTime
end

#StartTimeObject

Parameters:

  • Word:

    词结果

  • StartTime:

    词在音频中的开始时间

  • EndTime:

    词在音频中的结束时间



1729
1730
1731
# File 'lib/v20190614/models.rb', line 1729

def StartTime
  @StartTime
end

#WordObject

Parameters:

  • Word:

    词结果

  • StartTime:

    词在音频中的开始时间

  • EndTime:

    词在音频中的结束时间



1729
1730
1731
# File 'lib/v20190614/models.rb', line 1729

def Word
  @Word
end

Instance Method Details

#deserialize(params) ⇒ Object



1737
1738
1739
1740
1741
# File 'lib/v20190614/models.rb', line 1737

def deserialize(params)
  @Word = params['Word']
  @StartTime = params['StartTime']
  @EndTime = params['EndTime']
end