Class: TencentCloud::Asr::V20190614::VoicePrintUpdateRequest

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

Overview

VoicePrintUpdate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of VoicePrintUpdateRequest.



2489
2490
2491
2492
2493
2494
2495
# File 'lib/v20190614/models.rb', line 2489

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

Instance Attribute Details

#DataObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav

  • SampleRate:

    音频采样率 目前仅支持16000 单位Hz

  • VoicePrintId:

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

  • Data:

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

  • SpeakerNick:

    说话人昵称 不超过32字节



2487
2488
2489
# File 'lib/v20190614/models.rb', line 2487

def Data
  @Data
end

#SampleRateObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav

  • SampleRate:

    音频采样率 目前仅支持16000 单位Hz

  • VoicePrintId:

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

  • Data:

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

  • SpeakerNick:

    说话人昵称 不超过32字节



2487
2488
2489
# File 'lib/v20190614/models.rb', line 2487

def SampleRate
  @SampleRate
end

#SpeakerNickObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav

  • SampleRate:

    音频采样率 目前仅支持16000 单位Hz

  • VoicePrintId:

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

  • Data:

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

  • SpeakerNick:

    说话人昵称 不超过32字节



2487
2488
2489
# File 'lib/v20190614/models.rb', line 2487

def SpeakerNick
  @SpeakerNick
end

#VoiceFormatObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav

  • SampleRate:

    音频采样率 目前仅支持16000 单位Hz

  • VoicePrintId:

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

  • Data:

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

  • SpeakerNick:

    说话人昵称 不超过32字节



2487
2488
2489
# File 'lib/v20190614/models.rb', line 2487

def VoiceFormat
  @VoiceFormat
end

#VoicePrintIdObject

Parameters:

  • VoiceFormat:

    音频格式 0: pcm, 1: wav

  • SampleRate:

    音频采样率 目前仅支持16000 单位Hz

  • VoicePrintId:

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

  • Data:

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

  • SpeakerNick:

    说话人昵称 不超过32字节



2487
2488
2489
# File 'lib/v20190614/models.rb', line 2487

def VoicePrintId
  @VoicePrintId
end

Instance Method Details

#deserialize(params) ⇒ Object



2497
2498
2499
2500
2501
2502
2503
# File 'lib/v20190614/models.rb', line 2497

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