Class: TencentCloud::Mps::V20190612::AiRecognitionTaskAsrFullTextResultOutput

Inherits:
Common::AbstractModel
  • Object
show all
Extended by:
Gem::Deprecate
Defined in:
lib/v20190612/models.rb

Overview

语音全文识别结果。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(segmentset = nil, subtitlepath = nil, outputstorage = nil) ⇒ AiRecognitionTaskAsrFullTextResultOutput

Returns a new instance of AiRecognitionTaskAsrFullTextResultOutput.



2770
2771
2772
2773
2774
# File 'lib/v20190612/models.rb', line 2770

def initialize(segmentset=nil, subtitlepath=nil, outputstorage=nil)
  @SegmentSet = segmentset
  @SubtitlePath = subtitlepath
  @OutputStorage = outputstorage
end

Instance Attribute Details

#OutputStorageObject

Parameters:

  • SegmentSet:

    语音全文识别片段列表。

  • SubtitlePath:

    字幕文件地址。

  • OutputStorage:

    字幕文件存储位置。



2765
2766
2767
# File 'lib/v20190612/models.rb', line 2765

def OutputStorage
  @OutputStorage
end

#SegmentSetObject

Parameters:

  • SegmentSet:

    语音全文识别片段列表。

  • SubtitlePath:

    字幕文件地址。

  • OutputStorage:

    字幕文件存储位置。



2765
2766
2767
# File 'lib/v20190612/models.rb', line 2765

def SegmentSet
  @SegmentSet
end

#SubtitlePathObject

Parameters:

  • SegmentSet:

    语音全文识别片段列表。

  • SubtitlePath:

    字幕文件地址。

  • OutputStorage:

    字幕文件存储位置。



2765
2766
2767
# File 'lib/v20190612/models.rb', line 2765

def SubtitlePath
  @SubtitlePath
end

Instance Method Details

#deserialize(params) ⇒ Object



2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
# File 'lib/v20190612/models.rb', line 2776

def deserialize(params)
  unless params['SegmentSet'].nil?
    @SegmentSet = []
    params['SegmentSet'].each do |i|
      airecognitiontaskasrfulltextsegmentitem_tmp = AiRecognitionTaskAsrFullTextSegmentItem.new
      airecognitiontaskasrfulltextsegmentitem_tmp.deserialize(i)
      @SegmentSet << airecognitiontaskasrfulltextsegmentitem_tmp
    end
  end
  @SubtitlePath = params['SubtitlePath']
  unless params['OutputStorage'].nil?
    @OutputStorage = TaskOutputStorage.new
    @OutputStorage.deserialize(params['OutputStorage'])
  end
end