Class: TencentCloud::Mps::V20190612::AsrFullTextConfigureInfoForUpdate

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, subtitleformat = nil, sourcelanguage = nil) ⇒ AsrFullTextConfigureInfoForUpdate

Returns a new instance of AsrFullTextConfigureInfoForUpdate.



5213
5214
5215
5216
5217
# File 'lib/v20190612/models.rb', line 5213

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

Instance Attribute Details

#SourceLanguageObject

<li>ON:开启智能语音全文识别任务;</li> <li>OFF:关闭智能语音全文识别任务。</li> <li>vtt:生成 WebVTT 字幕文件。</li>

Parameters:

  • Switch:

    语音全文识别任务开关,可选值:

  • SubtitleFormat:

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

  • SourceLanguage:

    视频源语言。



5211
5212
5213
# File 'lib/v20190612/models.rb', line 5211

def SourceLanguage
  @SourceLanguage
end

#SubtitleFormatObject

<li>ON:开启智能语音全文识别任务;</li> <li>OFF:关闭智能语音全文识别任务。</li> <li>vtt:生成 WebVTT 字幕文件。</li>

Parameters:

  • Switch:

    语音全文识别任务开关,可选值:

  • SubtitleFormat:

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

  • SourceLanguage:

    视频源语言。



5211
5212
5213
# File 'lib/v20190612/models.rb', line 5211

def SubtitleFormat
  @SubtitleFormat
end

#SwitchObject

<li>ON:开启智能语音全文识别任务;</li> <li>OFF:关闭智能语音全文识别任务。</li> <li>vtt:生成 WebVTT 字幕文件。</li>

Parameters:

  • Switch:

    语音全文识别任务开关,可选值:

  • SubtitleFormat:

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

  • SourceLanguage:

    视频源语言。



5211
5212
5213
# File 'lib/v20190612/models.rb', line 5211

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



5219
5220
5221
5222
5223
# File 'lib/v20190612/models.rb', line 5219

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