Class: TencentCloud::Ie::V20200304::SubtitleItem

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

Overview

语音字幕识别项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, zh = nil, en = nil, startpts = nil, endpts = nil, period = nil, confidence = nil, endflag = nil, puncendts = nil) ⇒ SubtitleItem

Returns a new instance of SubtitleItem.



3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
# File 'lib/v20200304/models.rb', line 3137

def initialize(id=nil, zh=nil, en=nil, startpts=nil, endpts=nil, period=nil, confidence=nil, endflag=nil, puncendts=nil)
  @Id = id
  @Zh = zh
  @En = en
  @StartPts = startpts
  @EndPts = endpts
  @Period = period
  @Confidence = confidence
  @EndFlag = endflag
  @PuncEndTs = puncendts
end

Instance Attribute Details

#ConfidenceObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    语音识别结果

  • Zh:

    中文翻译结果

  • En:

    英文翻译结果

  • StartPts:

    语句起始时间戳PTS(ms)

  • EndPts:

    语句结束时间戳PTS(ms)

  • Period:

    字符串形式的起始结束时间

  • Confidence:

    结果的置信度(百分制)

  • EndFlag:

    当前语句是否结束

  • PuncEndTs:

    语句分割时间戳



3135
3136
3137
# File 'lib/v20200304/models.rb', line 3135

def Confidence
  @Confidence
end

#EnObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    语音识别结果

  • Zh:

    中文翻译结果

  • En:

    英文翻译结果

  • StartPts:

    语句起始时间戳PTS(ms)

  • EndPts:

    语句结束时间戳PTS(ms)

  • Period:

    字符串形式的起始结束时间

  • Confidence:

    结果的置信度(百分制)

  • EndFlag:

    当前语句是否结束

  • PuncEndTs:

    语句分割时间戳



3135
3136
3137
# File 'lib/v20200304/models.rb', line 3135

def En
  @En
end

#EndFlagObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    语音识别结果

  • Zh:

    中文翻译结果

  • En:

    英文翻译结果

  • StartPts:

    语句起始时间戳PTS(ms)

  • EndPts:

    语句结束时间戳PTS(ms)

  • Period:

    字符串形式的起始结束时间

  • Confidence:

    结果的置信度(百分制)

  • EndFlag:

    当前语句是否结束

  • PuncEndTs:

    语句分割时间戳



3135
3136
3137
# File 'lib/v20200304/models.rb', line 3135

def EndFlag
  @EndFlag
end

#EndPtsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    语音识别结果

  • Zh:

    中文翻译结果

  • En:

    英文翻译结果

  • StartPts:

    语句起始时间戳PTS(ms)

  • EndPts:

    语句结束时间戳PTS(ms)

  • Period:

    字符串形式的起始结束时间

  • Confidence:

    结果的置信度(百分制)

  • EndFlag:

    当前语句是否结束

  • PuncEndTs:

    语句分割时间戳



3135
3136
3137
# File 'lib/v20200304/models.rb', line 3135

def EndPts
  @EndPts
end

#IdObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    语音识别结果

  • Zh:

    中文翻译结果

  • En:

    英文翻译结果

  • StartPts:

    语句起始时间戳PTS(ms)

  • EndPts:

    语句结束时间戳PTS(ms)

  • Period:

    字符串形式的起始结束时间

  • Confidence:

    结果的置信度(百分制)

  • EndFlag:

    当前语句是否结束

  • PuncEndTs:

    语句分割时间戳



3135
3136
3137
# File 'lib/v20200304/models.rb', line 3135

def Id
  @Id
end

#PeriodObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    语音识别结果

  • Zh:

    中文翻译结果

  • En:

    英文翻译结果

  • StartPts:

    语句起始时间戳PTS(ms)

  • EndPts:

    语句结束时间戳PTS(ms)

  • Period:

    字符串形式的起始结束时间

  • Confidence:

    结果的置信度(百分制)

  • EndFlag:

    当前语句是否结束

  • PuncEndTs:

    语句分割时间戳



3135
3136
3137
# File 'lib/v20200304/models.rb', line 3135

def Period
  @Period
end

#PuncEndTsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    语音识别结果

  • Zh:

    中文翻译结果

  • En:

    英文翻译结果

  • StartPts:

    语句起始时间戳PTS(ms)

  • EndPts:

    语句结束时间戳PTS(ms)

  • Period:

    字符串形式的起始结束时间

  • Confidence:

    结果的置信度(百分制)

  • EndFlag:

    当前语句是否结束

  • PuncEndTs:

    语句分割时间戳



3135
3136
3137
# File 'lib/v20200304/models.rb', line 3135

def PuncEndTs
  @PuncEndTs
end

#StartPtsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    语音识别结果

  • Zh:

    中文翻译结果

  • En:

    英文翻译结果

  • StartPts:

    语句起始时间戳PTS(ms)

  • EndPts:

    语句结束时间戳PTS(ms)

  • Period:

    字符串形式的起始结束时间

  • Confidence:

    结果的置信度(百分制)

  • EndFlag:

    当前语句是否结束

  • PuncEndTs:

    语句分割时间戳



3135
3136
3137
# File 'lib/v20200304/models.rb', line 3135

def StartPts
  @StartPts
end

#ZhObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    语音识别结果

  • Zh:

    中文翻译结果

  • En:

    英文翻译结果

  • StartPts:

    语句起始时间戳PTS(ms)

  • EndPts:

    语句结束时间戳PTS(ms)

  • Period:

    字符串形式的起始结束时间

  • Confidence:

    结果的置信度(百分制)

  • EndFlag:

    当前语句是否结束

  • PuncEndTs:

    语句分割时间戳



3135
3136
3137
# File 'lib/v20200304/models.rb', line 3135

def Zh
  @Zh
end

Instance Method Details

#deserialize(params) ⇒ Object



3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
# File 'lib/v20200304/models.rb', line 3149

def deserialize(params)
  @Id = params['Id']
  @Zh = params['Zh']
  @En = params['En']
  @StartPts = params['StartPts']
  @EndPts = params['EndPts']
  @Period = params['Period']
  @Confidence = params['Confidence']
  @EndFlag = params['EndFlag']
  @PuncEndTs = params['PuncEndTs']
end