Class: TencentCloud::Asr::V20190614::VoicePrintCompareResponse

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

Overview

VoicePrintCompare返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, requestid = nil) ⇒ VoicePrintCompareResponse

Returns a new instance of VoicePrintCompareResponse.



2226
2227
2228
2229
# File 'lib/v20190614/models.rb', line 2226

def initialize(data=nil, requestid=nil)
  @Data = data
  @RequestId = requestid
end

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    音频声纹比对结果,包含相似度打分

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2224
2225
2226
# File 'lib/v20190614/models.rb', line 2224

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    音频声纹比对结果,包含相似度打分

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2224
2225
2226
# File 'lib/v20190614/models.rb', line 2224

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



2231
2232
2233
2234
2235
2236
2237
# File 'lib/v20190614/models.rb', line 2231

def deserialize(params)
  unless params['Data'].nil?
    @Data = VoicePrintCompareData.new
    @Data.deserialize(params['Data'])
  end
  @RequestId = params['RequestId']
end