Class: TencentCloud::Asr::V20190614::VoicePrintCompareRequest

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(voiceformat = nil, samplerate = nil, srcaudiodata = nil, destaudiodata = nil) ⇒ VoicePrintCompareRequest

Returns a new instance of VoicePrintCompareRequest.



2202
2203
2204
2205
2206
2207
# File 'lib/v20190614/models.rb', line 2202

def initialize(voiceformat=nil, samplerate=nil, srcaudiodata=nil, destaudiodata=nil)
  @VoiceFormat = voiceformat
  @SampleRate = samplerate
  @SrcAudioData = srcaudiodata
  @DestAudioData = destaudiodata
end

Instance Attribute Details

#DestAudioDataObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav;pcm和wav音频无损压缩,识别准确度更高

  • SampleRate:

    音频采样率,目前仅支持16k,请填写16000

  • SrcAudioData:

    对比源音频数据, 音频要求:base64 编码,16k采样率, 16bit位深,pcm或者wav格式, 单声道,音频时长不超过30秒的音频,base64编码数据大小不超过2M

  • DestAudioData:

    对比目标音频数据, 音频要求:base64 编码,16k采样率, 16bit位深,pcm或者wav格式, 单声道,音频时长不超过30秒的音频,base64编码数据大小不超过2M



2200
2201
2202
# File 'lib/v20190614/models.rb', line 2200

def DestAudioData
  @DestAudioData
end

#SampleRateObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav;pcm和wav音频无损压缩,识别准确度更高

  • SampleRate:

    音频采样率,目前仅支持16k,请填写16000

  • SrcAudioData:

    对比源音频数据, 音频要求:base64 编码,16k采样率, 16bit位深,pcm或者wav格式, 单声道,音频时长不超过30秒的音频,base64编码数据大小不超过2M

  • DestAudioData:

    对比目标音频数据, 音频要求:base64 编码,16k采样率, 16bit位深,pcm或者wav格式, 单声道,音频时长不超过30秒的音频,base64编码数据大小不超过2M



2200
2201
2202
# File 'lib/v20190614/models.rb', line 2200

def SampleRate
  @SampleRate
end

#SrcAudioDataObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav;pcm和wav音频无损压缩,识别准确度更高

  • SampleRate:

    音频采样率,目前仅支持16k,请填写16000

  • SrcAudioData:

    对比源音频数据, 音频要求:base64 编码,16k采样率, 16bit位深,pcm或者wav格式, 单声道,音频时长不超过30秒的音频,base64编码数据大小不超过2M

  • DestAudioData:

    对比目标音频数据, 音频要求:base64 编码,16k采样率, 16bit位深,pcm或者wav格式, 单声道,音频时长不超过30秒的音频,base64编码数据大小不超过2M



2200
2201
2202
# File 'lib/v20190614/models.rb', line 2200

def SrcAudioData
  @SrcAudioData
end

#VoiceFormatObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav;pcm和wav音频无损压缩,识别准确度更高

  • SampleRate:

    音频采样率,目前仅支持16k,请填写16000

  • SrcAudioData:

    对比源音频数据, 音频要求:base64 编码,16k采样率, 16bit位深,pcm或者wav格式, 单声道,音频时长不超过30秒的音频,base64编码数据大小不超过2M

  • DestAudioData:

    对比目标音频数据, 音频要求:base64 编码,16k采样率, 16bit位深,pcm或者wav格式, 单声道,音频时长不超过30秒的音频,base64编码数据大小不超过2M



2200
2201
2202
# File 'lib/v20190614/models.rb', line 2200

def VoiceFormat
  @VoiceFormat
end

Instance Method Details

#deserialize(params) ⇒ Object



2209
2210
2211
2212
2213
2214
# File 'lib/v20190614/models.rb', line 2209

def deserialize(params)
  @VoiceFormat = params['VoiceFormat']
  @SampleRate = params['SampleRate']
  @SrcAudioData = params['SrcAudioData']
  @DestAudioData = params['DestAudioData']
end