Class: TencentCloud::Mps::V20190612::RawSmartSubtitleParameter

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

Overview

自定义智能字幕参数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subtitletype = nil, videosrclanguage = nil, subtitleformat = nil, translateswitch = nil, translatedstlanguage = nil, asrhotwordsconfigure = nil, extinfo = nil, processtype = nil, selectingsubtitleareasconfig = nil) ⇒ RawSmartSubtitleParameter

Returns a new instance of RawSmartSubtitleParameter.



26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
# File 'lib/v20190612/models.rb', line 26235

def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil, processtype=nil, selectingsubtitleareasconfig=nil)
  @SubtitleType = subtitletype
  @VideoSrcLanguage = videosrclanguage
  @SubtitleFormat = subtitleformat
  @TranslateSwitch = translateswitch
  @TranslateDstLanguage = translatedstlanguage
  @AsrHotWordsConfigure = asrhotwordsconfigure
  @ExtInfo = extinfo
  @ProcessType = processtype
  @SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
end

Instance Attribute Details

#AsrHotWordsConfigureObject

注意:不传的情况下默认类型为 ASR识别字幕 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



26233
26234
26235
# File 'lib/v20190612/models.rb', line 26233

def AsrHotWordsConfigure
  @AsrHotWordsConfigure
end

#ExtInfoObject

注意:不传的情况下默认类型为 ASR识别字幕 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



26233
26234
26235
# File 'lib/v20190612/models.rb', line 26233

def ExtInfo
  @ExtInfo
end

#ProcessTypeObject

注意:不传的情况下默认类型为 ASR识别字幕 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



26233
26234
26235
# File 'lib/v20190612/models.rb', line 26233

def ProcessType
  @ProcessType
end

#SelectingSubtitleAreasConfigObject

注意:不传的情况下默认类型为 ASR识别字幕 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



26233
26234
26235
# File 'lib/v20190612/models.rb', line 26233

def SelectingSubtitleAreasConfig
  @SelectingSubtitleAreasConfig
end

#SubtitleFormatObject

注意:不传的情况下默认类型为 ASR识别字幕 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



26233
26234
26235
# File 'lib/v20190612/models.rb', line 26233

def SubtitleFormat
  @SubtitleFormat
end

#SubtitleTypeObject

注意:不传的情况下默认类型为 ASR识别字幕 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



26233
26234
26235
# File 'lib/v20190612/models.rb', line 26233

def SubtitleType
  @SubtitleType
end

#TranslateDstLanguageObject

注意:不传的情况下默认类型为 ASR识别字幕 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



26233
26234
26235
# File 'lib/v20190612/models.rb', line 26233

def TranslateDstLanguage
  @TranslateDstLanguage
end

#TranslateSwitchObject

注意:不传的情况下默认类型为 ASR识别字幕 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



26233
26234
26235
# File 'lib/v20190612/models.rb', line 26233

def TranslateSwitch
  @TranslateSwitch
end

#VideoSrcLanguageObject

注意:不传的情况下默认类型为 ASR识别字幕 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



26233
26234
26235
# File 'lib/v20190612/models.rb', line 26233

def VideoSrcLanguage
  @VideoSrcLanguage
end

Instance Method Details

#deserialize(params) ⇒ Object



26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
# File 'lib/v20190612/models.rb', line 26247

def deserialize(params)
  @SubtitleType = params['SubtitleType']
  @VideoSrcLanguage = params['VideoSrcLanguage']
  @SubtitleFormat = params['SubtitleFormat']
  @TranslateSwitch = params['TranslateSwitch']
  @TranslateDstLanguage = params['TranslateDstLanguage']
  unless params['AsrHotWordsConfigure'].nil?
    @AsrHotWordsConfigure = AsrHotWordsConfigure.new
    @AsrHotWordsConfigure.deserialize(params['AsrHotWordsConfigure'])
  end
  @ExtInfo = params['ExtInfo']
  @ProcessType = params['ProcessType']
  unless params['SelectingSubtitleAreasConfig'].nil?
    @SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
    @SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
  end
end