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.



22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
# File 'lib/v20190612/models.rb', line 22757

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



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def AsrHotWordsConfigure
  @AsrHotWordsConfigure
end

#CommentObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def Comment
  @Comment
end

#DefinitionObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def Definition
  @Definition
end

#NameObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def Name
  @Name
end

#ProcessTypeObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def ProcessType
  @ProcessType
end

#SelectingSubtitleAreasConfigObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def SelectingSubtitleAreasConfig
  @SelectingSubtitleAreasConfig
end

#SubtitleFormatObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def SubtitleFormat
  @SubtitleFormat
end

#SubtitleTypeObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def SubtitleType
  @SubtitleType
end

#TranslateDstLanguageObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def TranslateDstLanguage
  @TranslateDstLanguage
end

#TranslateSwitchObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def TranslateSwitch
  @TranslateSwitch
end

#VideoSrcLanguageObject

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

Parameters:

  • SelectingSubtitleAreasConfig:

    字幕OCR提取框选区域配置



22755
22756
22757
# File 'lib/v20190612/models.rb', line 22755

def VideoSrcLanguage
  @VideoSrcLanguage
end

Instance Method Details

#deserialize(params) ⇒ Object



22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
# File 'lib/v20190612/models.rb', line 22771

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