Class: TencentCloud::Mps::V20190612::ModifySmartSubtitleTemplateRequest

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

Overview

ModifySmartSubtitleTemplate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ModifySmartSubtitleTemplateRequest.



23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
# File 'lib/v20190612/models.rb', line 23061

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

Instance Attribute Details

#AsrHotWordsConfigureObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def AsrHotWordsConfigure
  @AsrHotWordsConfigure
end

#CommentObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def Comment
  @Comment
end

#DefinitionObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def Definition
  @Definition
end

#NameObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def Name
  @Name
end

#ProcessTypeObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def ProcessType
  @ProcessType
end

#SelectingSubtitleAreasConfigObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def SelectingSubtitleAreasConfig
  @SelectingSubtitleAreasConfig
end

#SubtitleFormatObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def SubtitleFormat
  @SubtitleFormat
end

#SubtitleTypeObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def SubtitleType
  @SubtitleType
end

#TranslateDstLanguageObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def TranslateDstLanguage
  @TranslateDstLanguage
end

#TranslateSwitchObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def TranslateSwitch
  @TranslateSwitch
end

#VideoSrcLanguageObject

注意:不传的情况下,默认是ASR方式

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



23059
23060
23061
# File 'lib/v20190612/models.rb', line 23059

def VideoSrcLanguage
  @VideoSrcLanguage
end

Instance Method Details

#deserialize(params) ⇒ Object



23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
# File 'lib/v20190612/models.rb', line 23075

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