Class: TencentCloud::Asr::V20190614::VoicePrintVerifyRequest

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

Overview

VoicePrintVerify请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(voiceformat = nil, samplerate = nil, data = nil, voiceprintid = nil) ⇒ VoicePrintVerifyRequest

Returns a new instance of VoicePrintVerifyRequest.



2569
2570
2571
2572
2573
2574
# File 'lib/v20190614/models.rb', line 2569

def initialize(voiceformat=nil, samplerate=nil, data=nil, voiceprintid=nil)
  @VoiceFormat = voiceformat
  @SampleRate = samplerate
  @Data = data
  @VoicePrintId = voiceprintid
end

Instance Attribute Details

#DataObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav

  • SampleRate:

    音频采样率,目前支持16000,单位:Hz,必填

  • Data:

    音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M

  • VoicePrintId:

    说话人id, 说话人唯一标识



2567
2568
2569
# File 'lib/v20190614/models.rb', line 2567

def Data
  @Data
end

#SampleRateObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav

  • SampleRate:

    音频采样率,目前支持16000,单位:Hz,必填

  • Data:

    音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M

  • VoicePrintId:

    说话人id, 说话人唯一标识



2567
2568
2569
# File 'lib/v20190614/models.rb', line 2567

def SampleRate
  @SampleRate
end

#VoiceFormatObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav

  • SampleRate:

    音频采样率,目前支持16000,单位:Hz,必填

  • Data:

    音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M

  • VoicePrintId:

    说话人id, 说话人唯一标识



2567
2568
2569
# File 'lib/v20190614/models.rb', line 2567

def VoiceFormat
  @VoiceFormat
end

#VoicePrintIdObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav

  • SampleRate:

    音频采样率,目前支持16000,单位:Hz,必填

  • Data:

    音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M

  • VoicePrintId:

    说话人id, 说话人唯一标识



2567
2568
2569
# File 'lib/v20190614/models.rb', line 2567

def VoicePrintId
  @VoicePrintId
end

Instance Method Details

#deserialize(params) ⇒ Object



2576
2577
2578
2579
2580
2581
# File 'lib/v20190614/models.rb', line 2576

def deserialize(params)
  @VoiceFormat = params['VoiceFormat']
  @SampleRate = params['SampleRate']
  @Data = params['Data']
  @VoicePrintId = params['VoicePrintId']
end