Class: TencentCloud::Mps::V20190612::SmartSubtitleTaskAsrFullTextResultOutput

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

Overview

语音全文识别结果。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(segmentset = nil, path = nil, subtitlepath = nil, outputstorage = nil) ⇒ SmartSubtitleTaskAsrFullTextResultOutput

Returns a new instance of SmartSubtitleTaskAsrFullTextResultOutput.



27992
27993
27994
27995
27996
27997
# File 'lib/v20190612/models.rb', line 27992

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

Instance Attribute Details

#OutputStorageObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SegmentSet:

    语音全文识别片段列表。

  • Path:

    字幕文件路径

  • SubtitlePath:

    字幕文件地址。

  • OutputStorage:

    字幕文件存储位置。



27990
27991
27992
# File 'lib/v20190612/models.rb', line 27990

def OutputStorage
  @OutputStorage
end

#PathObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SegmentSet:

    语音全文识别片段列表。

  • Path:

    字幕文件路径

  • SubtitlePath:

    字幕文件地址。

  • OutputStorage:

    字幕文件存储位置。



27990
27991
27992
# File 'lib/v20190612/models.rb', line 27990

def Path
  @Path
end

#SegmentSetObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SegmentSet:

    语音全文识别片段列表。

  • Path:

    字幕文件路径

  • SubtitlePath:

    字幕文件地址。

  • OutputStorage:

    字幕文件存储位置。



27990
27991
27992
# File 'lib/v20190612/models.rb', line 27990

def SegmentSet
  @SegmentSet
end

#SubtitlePathObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SegmentSet:

    语音全文识别片段列表。

  • Path:

    字幕文件路径

  • SubtitlePath:

    字幕文件地址。

  • OutputStorage:

    字幕文件存储位置。



27990
27991
27992
# File 'lib/v20190612/models.rb', line 27990

def SubtitlePath
  @SubtitlePath
end

Instance Method Details

#deserialize(params) ⇒ Object



27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
# File 'lib/v20190612/models.rb', line 27999

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