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.



9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
# File 'lib/v20190612/models.rb', line 9825

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提取框选区域配置



9823
9824
9825
# File 'lib/v20190612/models.rb', line 9823

def AsrHotWordsConfigure
  @AsrHotWordsConfigure
end

#CommentObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9823
9824
9825
# File 'lib/v20190612/models.rb', line 9823

def Comment
  @Comment
end

#NameObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9823
9824
9825
# File 'lib/v20190612/models.rb', line 9823

def Name
  @Name
end

#ProcessTypeObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9823
9824
9825
# File 'lib/v20190612/models.rb', line 9823

def ProcessType
  @ProcessType
end

#SelectingSubtitleAreasConfigObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9823
9824
9825
# File 'lib/v20190612/models.rb', line 9823

def SelectingSubtitleAreasConfig
  @SelectingSubtitleAreasConfig
end

#SubtitleFormatObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9823
9824
9825
# File 'lib/v20190612/models.rb', line 9823

def SubtitleFormat
  @SubtitleFormat
end

#SubtitleTypeObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9823
9824
9825
# File 'lib/v20190612/models.rb', line 9823

def SubtitleType
  @SubtitleType
end

#TranslateDstLanguageObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9823
9824
9825
# File 'lib/v20190612/models.rb', line 9823

def TranslateDstLanguage
  @TranslateDstLanguage
end

#TranslateSwitchObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9823
9824
9825
# File 'lib/v20190612/models.rb', line 9823

def TranslateSwitch
  @TranslateSwitch
end

#VideoSrcLanguageObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



9823
9824
9825
# File 'lib/v20190612/models.rb', line 9823

def VideoSrcLanguage
  @VideoSrcLanguage
end

Instance Method Details

#deserialize(params) ⇒ Object



9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
# File 'lib/v20190612/models.rb', line 9838

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