Class: TencentCloud::Mps::V20190612::CreateSmartSubtitleTemplateRequest

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

Overview

CreateSmartSubtitleTemplate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, videosrclanguage = nil, subtitletype = nil, comment = nil, subtitleformat = nil, asrhotwordsconfigure = nil, translateswitch = nil, translatedstlanguage = nil, processtype = nil, selectingsubtitleareasconfig = nil) ⇒ CreateSmartSubtitleTemplateRequest

Returns a new instance of CreateSmartSubtitleTemplateRequest.



9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
# File 'lib/v20190612/models.rb', line 9904

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

Instance Attribute Details

#AsrHotWordsConfigureObject

注意:不传的情况下默认类型为 ASR识别字幕

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9902
9903
9904
# File 'lib/v20190612/models.rb', line 9902

def AsrHotWordsConfigure
  @AsrHotWordsConfigure
end

#CommentObject

注意:不传的情况下默认类型为 ASR识别字幕

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9902
9903
9904
# File 'lib/v20190612/models.rb', line 9902

def Comment
  @Comment
end

#NameObject

注意:不传的情况下默认类型为 ASR识别字幕

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9902
9903
9904
# File 'lib/v20190612/models.rb', line 9902

def Name
  @Name
end

#ProcessTypeObject

注意:不传的情况下默认类型为 ASR识别字幕

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9902
9903
9904
# File 'lib/v20190612/models.rb', line 9902

def ProcessType
  @ProcessType
end

#SelectingSubtitleAreasConfigObject

注意:不传的情况下默认类型为 ASR识别字幕

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9902
9903
9904
# File 'lib/v20190612/models.rb', line 9902

def SelectingSubtitleAreasConfig
  @SelectingSubtitleAreasConfig
end

#SubtitleFormatObject

注意:不传的情况下默认类型为 ASR识别字幕

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9902
9903
9904
# File 'lib/v20190612/models.rb', line 9902

def SubtitleFormat
  @SubtitleFormat
end

#SubtitleTypeObject

注意:不传的情况下默认类型为 ASR识别字幕

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9902
9903
9904
# File 'lib/v20190612/models.rb', line 9902

def SubtitleType
  @SubtitleType
end

#TranslateDstLanguageObject

注意:不传的情况下默认类型为 ASR识别字幕

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9902
9903
9904
# File 'lib/v20190612/models.rb', line 9902

def TranslateDstLanguage
  @TranslateDstLanguage
end

#TranslateSwitchObject

注意:不传的情况下默认类型为 ASR识别字幕

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9902
9903
9904
# File 'lib/v20190612/models.rb', line 9902

def TranslateSwitch
  @TranslateSwitch
end

#VideoSrcLanguageObject

注意:不传的情况下默认类型为 ASR识别字幕

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9902
9903
9904
# File 'lib/v20190612/models.rb', line 9902

def VideoSrcLanguage
  @VideoSrcLanguage
end

Instance Method Details

#deserialize(params) ⇒ Object



9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
# File 'lib/v20190612/models.rb', line 9917

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