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

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

Overview

语音翻译任务控制参数

Instance Attribute Summary collapse

  • #SourceLanguage ⇒ Object
  • ON:开启智能语音翻译任务;
  • OFF:关闭智能语音翻译任务。
  • vtt:生成 WebVTT 字幕文件。
  • 注意:此字段可能返回 null,表示取不到有效值。.
  • #SubtitleFormat ⇒ Object
  • ON:开启智能语音翻译任务;
  • OFF:关闭智能语音翻译任务。
  • vtt:生成 WebVTT 字幕文件。
  • 注意:此字段可能返回 null,表示取不到有效值。.
  • #Switch ⇒ Object
  • ON:开启智能语音翻译任务;
  • OFF:关闭智能语音翻译任务。
  • vtt:生成 WebVTT 字幕文件。
  • 注意:此字段可能返回 null,表示取不到有效值。.

    Instance Method Summary collapse

    Constructor Details

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

    Returns a new instance of TranslateConfigureInfo.

    
    
    31218
    31219
    31220
    31221
    31222
    31223
    # File 'lib/v20190612/models.rb', line 31218
    
    def initialize(switch=nil, sourcelanguage=nil, destinationlanguage=nil, subtitleformat=nil)
      @Switch = switch
      @SourceLanguage = sourcelanguage
      @DestinationLanguage = destinationlanguage
      @SubtitleFormat = subtitleformat
    end
    

    Instance Attribute Details

    #DestinationLanguageObject

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

    Parameters:

    • Switch:

      语音翻译任务开关,可选值:

    • SourceLanguage:

      视频源语言。

    • DestinationLanguage:

      翻译目标语言。

    • SubtitleFormat:

      生成的字幕文件格式,填空字符串表示不生成字幕文件,可选值:

    
    
    31216
    31217
    31218
    # File 'lib/v20190612/models.rb', line 31216
    
    def DestinationLanguage
      @DestinationLanguage
    end
    

    #SourceLanguageObject

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

    Parameters:

    • Switch:

      语音翻译任务开关,可选值:

    • SourceLanguage:

      视频源语言。

    • DestinationLanguage:

      翻译目标语言。

    • SubtitleFormat:

      生成的字幕文件格式,填空字符串表示不生成字幕文件,可选值:

    
    
    31216
    31217
    31218
    # File 'lib/v20190612/models.rb', line 31216
    
    def SourceLanguage
      @SourceLanguage
    end
    

    #SubtitleFormatObject

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

    Parameters:

    • Switch:

      语音翻译任务开关,可选值:

    • SourceLanguage:

      视频源语言。

    • DestinationLanguage:

      翻译目标语言。

    • SubtitleFormat:

      生成的字幕文件格式,填空字符串表示不生成字幕文件,可选值:

    
    
    31216
    31217
    31218
    # File 'lib/v20190612/models.rb', line 31216
    
    def SubtitleFormat
      @SubtitleFormat
    end
    

    #SwitchObject

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

    Parameters:

    • Switch:

      语音翻译任务开关,可选值:

    • SourceLanguage:

      视频源语言。

    • DestinationLanguage:

      翻译目标语言。

    • SubtitleFormat:

      生成的字幕文件格式,填空字符串表示不生成字幕文件,可选值:

    
    
    31216
    31217
    31218
    # File 'lib/v20190612/models.rb', line 31216
    
    def Switch
      @Switch
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    31225
    31226
    31227
    31228
    31229
    31230
    # File 'lib/v20190612/models.rb', line 31225
    
    def deserialize(params)
      @Switch = params['Switch']
      @SourceLanguage = params['SourceLanguage']
      @DestinationLanguage = params['DestinationLanguage']
      @SubtitleFormat = params['SubtitleFormat']
    end