Class: TencentCloud::Mps::V20190612::TranslateConfigureInfo

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

Overview

语音翻译任务控制参数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, sourcelanguage = nil, destinationlanguage = nil, subtitleformat = nil) ⇒ TranslateConfigureInfo



26441
26442
26443
26444
26445
26446
# File 'lib/v20190612/models.rb', line 26441

def initialize(switch=nil, sourcelanguage=nil, destinationlanguage=nil, subtitleformat=nil)
  @Switch = switch
  @SourceLanguage = sourcelanguage
  @DestinationLanguage = destinationlanguage
  @SubtitleFormat = subtitleformat
end

Instance Attribute Details

#DestinationLanguageObject

<li>ON:开启智能语音翻译任务;</li> <li>OFF:关闭智能语音翻译任务。</li> <li>vtt:生成 WebVTT 字幕文件。</li> 注意:此字段可能返回 null,表示取不到有效值。



26439
26440
26441
# File 'lib/v20190612/models.rb', line 26439

def DestinationLanguage
  @DestinationLanguage
end

#SourceLanguageObject

<li>ON:开启智能语音翻译任务;</li> <li>OFF:关闭智能语音翻译任务。</li> <li>vtt:生成 WebVTT 字幕文件。</li> 注意:此字段可能返回 null,表示取不到有效值。



26439
26440
26441
# File 'lib/v20190612/models.rb', line 26439

def SourceLanguage
  @SourceLanguage
end

#SubtitleFormatObject

<li>ON:开启智能语音翻译任务;</li> <li>OFF:关闭智能语音翻译任务。</li> <li>vtt:生成 WebVTT 字幕文件。</li> 注意:此字段可能返回 null,表示取不到有效值。



26439
26440
26441
# File 'lib/v20190612/models.rb', line 26439

def SubtitleFormat
  @SubtitleFormat
end

#SwitchObject

<li>ON:开启智能语音翻译任务;</li> <li>OFF:关闭智能语音翻译任务。</li> <li>vtt:生成 WebVTT 字幕文件。</li> 注意:此字段可能返回 null,表示取不到有效值。



26439
26440
26441
# File 'lib/v20190612/models.rb', line 26439

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



26448
26449
26450
26451
26452
26453
# File 'lib/v20190612/models.rb', line 26448

def deserialize(params)
  @Switch = params['Switch']
  @SourceLanguage = params['SourceLanguage']
  @DestinationLanguage = params['DestinationLanguage']
  @SubtitleFormat = params['SubtitleFormat']
end