Class: TencentCloud::Mps::V20190612::RecognizeAudioSentence
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::RecognizeAudioSentence
- Defined in:
- lib/v20190612/models.rb
Overview
识别音频单句结果
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(start = nil, _end = nil, text = nil, wordsinfo = nil) ⇒ RecognizeAudioSentence
constructor
A new instance of RecognizeAudioSentence.
Constructor Details
#initialize(start = nil, _end = nil, text = nil, wordsinfo = nil) ⇒ RecognizeAudioSentence
Returns a new instance of RecognizeAudioSentence.
26553 26554 26555 26556 26557 26558 |
# File 'lib/v20190612/models.rb', line 26553 def initialize(start=nil, _end=nil, text=nil, wordsinfo=nil) @Start = start @End = _end @Text = text @WordsInfo = wordsinfo end |
Instance Attribute Details
#End ⇒ Object
26551 26552 26553 |
# File 'lib/v20190612/models.rb', line 26551 def End @End end |
#Start ⇒ Object
26551 26552 26553 |
# File 'lib/v20190612/models.rb', line 26551 def Start @Start end |
#Text ⇒ Object
26551 26552 26553 |
# File 'lib/v20190612/models.rb', line 26551 def Text @Text end |
#WordsInfo ⇒ Object
26551 26552 26553 |
# File 'lib/v20190612/models.rb', line 26551 def WordsInfo @WordsInfo end |
Instance Method Details
#deserialize(params) ⇒ Object
26560 26561 26562 26563 26564 26565 26566 26567 26568 26569 26570 26571 26572 |
# File 'lib/v20190612/models.rb', line 26560 def deserialize(params) @Start = params['Start'] @End = params['End'] @Text = params['Text'] unless params['WordsInfo'].nil? @WordsInfo = [] params['WordsInfo'].each do |i| wordresult_tmp = WordResult.new wordresult_tmp.deserialize(i) @WordsInfo << wordresult_tmp end end end |