Class: TencentCloud::Vod::V20180717::AiRecognitionTaskAsrFullTextResultOutputSubtitleItem

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

Overview

字幕信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, language = nil, format = nil, url = nil) ⇒ AiRecognitionTaskAsrFullTextResultOutputSubtitleItem

Returns a new instance of AiRecognitionTaskAsrFullTextResultOutputSubtitleItem.



1442
1443
1444
1445
1446
1447
1448
# File 'lib/v20180717/models.rb', line 1442

def initialize(id=nil, name=nil, language=nil, format=nil, url=nil)
  @Id = id
  @Name = name
  @Language = language
  @Format = format
  @Url = url
end

Instance Attribute Details

#FormatObject

<font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。<font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。<li>vtt:WebVTT 字幕文件;</li> <li>srt:SRT 字幕文件。</li>

Parameters:

  • Id:

    媒资字幕 ID,用于媒资字幕管理,仅当 Format 为 vtt 时有效。

  • Name:

    媒资字幕名字,用于播放器展示,仅当 Format 为 vtt 时有效。

  • Language:

    字幕语言。

  • Format:

    字幕文件格式,取值范围:

  • Url:

    字幕文件 Url。



1440
1441
1442
# File 'lib/v20180717/models.rb', line 1440

def Format
  @Format
end

#IdObject

<font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。<font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。<li>vtt:WebVTT 字幕文件;</li> <li>srt:SRT 字幕文件。</li>

Parameters:

  • Id:

    媒资字幕 ID,用于媒资字幕管理,仅当 Format 为 vtt 时有效。

  • Name:

    媒资字幕名字,用于播放器展示,仅当 Format 为 vtt 时有效。

  • Language:

    字幕语言。

  • Format:

    字幕文件格式,取值范围:

  • Url:

    字幕文件 Url。



1440
1441
1442
# File 'lib/v20180717/models.rb', line 1440

def Id
  @Id
end

#LanguageObject

<font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。<font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。<li>vtt:WebVTT 字幕文件;</li> <li>srt:SRT 字幕文件。</li>

Parameters:

  • Id:

    媒资字幕 ID,用于媒资字幕管理,仅当 Format 为 vtt 时有效。

  • Name:

    媒资字幕名字,用于播放器展示,仅当 Format 为 vtt 时有效。

  • Language:

    字幕语言。

  • Format:

    字幕文件格式,取值范围:

  • Url:

    字幕文件 Url。



1440
1441
1442
# File 'lib/v20180717/models.rb', line 1440

def Language
  @Language
end

#NameObject

<font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。<font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。<li>vtt:WebVTT 字幕文件;</li> <li>srt:SRT 字幕文件。</li>

Parameters:

  • Id:

    媒资字幕 ID,用于媒资字幕管理,仅当 Format 为 vtt 时有效。

  • Name:

    媒资字幕名字,用于播放器展示,仅当 Format 为 vtt 时有效。

  • Language:

    字幕语言。

  • Format:

    字幕文件格式,取值范围:

  • Url:

    字幕文件 Url。



1440
1441
1442
# File 'lib/v20180717/models.rb', line 1440

def Name
  @Name
end

#UrlObject

<font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。<font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。<li>vtt:WebVTT 字幕文件;</li> <li>srt:SRT 字幕文件。</li>

Parameters:

  • Id:

    媒资字幕 ID,用于媒资字幕管理,仅当 Format 为 vtt 时有效。

  • Name:

    媒资字幕名字,用于播放器展示,仅当 Format 为 vtt 时有效。

  • Language:

    字幕语言。

  • Format:

    字幕文件格式,取值范围:

  • Url:

    字幕文件 Url。



1440
1441
1442
# File 'lib/v20180717/models.rb', line 1440

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



1450
1451
1452
1453
1454
1455
1456
# File 'lib/v20180717/models.rb', line 1450

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
  @Language = params['Language']
  @Format = params['Format']
  @Url = params['Url']
end