lib/v20180522/models.rb in tencentcloud-sdk-aai-3.0.590 vs lib/v20180522/models.rb in tencentcloud-sdk-aai-3.0.591
- old
+ new
@@ -25,11 +25,11 @@
# @type ProjectId: Integer
# @param User: json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
# @type User: String
attr_accessor :Text, :ProjectId, :User
-
+
def initialize(text=nil, projectid=nil, user=nil)
@Text = text
@ProjectId = projectid
@User = user
end
@@ -47,11 +47,11 @@
# @type Answer: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Answer, :RequestId
-
+
def initialize(answer=nil, requestid=nil)
@Answer = answer
@RequestId = requestid
end
@@ -81,11 +81,11 @@
# @type Data: String
# @param DataLen: 数据长度,当 SourceType 值为1时必须填写,为0可不写(此数据长度为数据未进行base64编码时的数据长度)。
# @type DataLen: Integer
attr_accessor :ProjectId, :SubServiceType, :EngSerViceType, :SourceType, :VoiceFormat, :UsrAudioKey, :Url, :Data, :DataLen
-
+
def initialize(projectid=nil, subservicetype=nil, engservicetype=nil, sourcetype=nil, voiceformat=nil, usraudiokey=nil, url=nil, data=nil, datalen=nil)
@ProjectId = projectid
@SubServiceType = subservicetype
@EngSerViceType = engservicetype
@SourceType = sourcetype
@@ -115,11 +115,11 @@
# @type Result: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Result, :RequestId
-
+
def initialize(result=nil, requestid=nil)
@Result = result
@RequestId = requestid
end
@@ -155,11 +155,11 @@
# @type TargetLanguage: String
# @param Seq: 表明当前语音分片的索引,从0开始
# @type Seq: Integer
attr_accessor :ProjectId, :SubServiceType, :RecEngineModelType, :Data, :DataLen, :VoiceId, :IsEnd, :VoiceFormat, :OpenTranslate, :SourceLanguage, :TargetLanguage, :Seq
-
+
def initialize(projectid=nil, subservicetype=nil, recenginemodeltype=nil, data=nil, datalen=nil, voiceid=nil, isend=nil, voiceformat=nil, opentranslate=nil, sourcelanguage=nil, targetlanguage=nil, seq=nil)
@ProjectId = projectid
@SubServiceType = subservicetype
@RecEngineModelType = recenginemodeltype
@Data = data
@@ -197,11 +197,11 @@
# @type NmtText: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsrText, :NmtText, :RequestId
-
+
def initialize(asrtext=nil, nmttext=nil, requestid=nil)
@AsrText = asrtext
@NmtText = nmttext
@RequestId = requestid
end
@@ -237,11 +237,11 @@
# @type SampleRate: Integer
# @param Codec: 返回音频格式,可取值:wav(默认),mp3
# @type Codec: String
attr_accessor :Text, :SessionId, :ModelType, :Volume, :Speed, :ProjectId, :VoiceType, :PrimaryLanguage, :SampleRate, :Codec
-
+
def initialize(text=nil, sessionid=nil, modeltype=nil, volume=nil, speed=nil, projectid=nil, voicetype=nil, primarylanguage=nil, samplerate=nil, codec=nil)
@Text = text
@SessionId = sessionid
@ModelType = modeltype
@Volume = volume
@@ -275,10 +275,10 @@
# @type SessionId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Audio, :SessionId, :RequestId
-
+
def initialize(audio=nil, sessionid=nil, requestid=nil)
@Audio = audio
@SessionId = sessionid
@RequestId = requestid
end