Class: TencentCloud::Vrs::V20200824::DetectionEnvAndSoundQualityRespData

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

Overview

环境检测和音频检测响应

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(audioid = nil, detectioncode = nil, detectionmsg = nil, detectiontip = nil) ⇒ DetectionEnvAndSoundQualityRespData

Returns a new instance of DetectionEnvAndSoundQualityRespData.



357
358
359
360
361
362
# File 'lib/v20200824/models.rb', line 357

def initialize(audioid=nil, detectioncode=nil, detectionmsg=nil, detectiontip=nil)
  @AudioId = audioid
  @DetectionCode = detectioncode
  @DetectionMsg = detectionmsg
  @DetectionTip = detectiontip
end

Instance Attribute Details

#AudioIdObject

0 表示当前语音通过-1 表示检测失败,需要重试-2 表示语音检测不通过,提示用户再重新录制一下(通常漏读,错读,或多读)-3 表示语音中噪声较大,不通过注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • DetectionMsg:

    检测提示信息

  • DetectionTip:

    检测提示信息



355
356
357
# File 'lib/v20200824/models.rb', line 355

def AudioId
  @AudioId
end

#DetectionCodeObject

0 表示当前语音通过-1 表示检测失败,需要重试-2 表示语音检测不通过,提示用户再重新录制一下(通常漏读,错读,或多读)-3 表示语音中噪声较大,不通过注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • DetectionMsg:

    检测提示信息

  • DetectionTip:

    检测提示信息



355
356
357
# File 'lib/v20200824/models.rb', line 355

def DetectionCode
  @DetectionCode
end

#DetectionMsgObject

0 表示当前语音通过-1 表示检测失败,需要重试-2 表示语音检测不通过,提示用户再重新录制一下(通常漏读,错读,或多读)-3 表示语音中噪声较大,不通过注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • DetectionMsg:

    检测提示信息

  • DetectionTip:

    检测提示信息



355
356
357
# File 'lib/v20200824/models.rb', line 355

def DetectionMsg
  @DetectionMsg
end

#DetectionTipObject

0 表示当前语音通过-1 表示检测失败,需要重试-2 表示语音检测不通过,提示用户再重新录制一下(通常漏读,错读,或多读)-3 表示语音中噪声较大,不通过注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • DetectionMsg:

    检测提示信息

  • DetectionTip:

    检测提示信息



355
356
357
# File 'lib/v20200824/models.rb', line 355

def DetectionTip
  @DetectionTip
end

Instance Method Details

#deserialize(params) ⇒ Object



364
365
366
367
368
369
370
371
372
373
374
375
376
# File 'lib/v20200824/models.rb', line 364

def deserialize(params)
  @AudioId = params['AudioId']
  @DetectionCode = params['DetectionCode']
  @DetectionMsg = params['DetectionMsg']
  unless params['DetectionTip'].nil?
    @DetectionTip = []
    params['DetectionTip'].each do |i|
      words_tmp = Words.new
      words_tmp.deserialize(i)
      @DetectionTip << words_tmp
    end
  end
end