Update Dyvmsapi SDK.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2021-10-26 Version: 1.36.910
|
||||||
|
- Update Dyvmsapi SDK.
|
||||||
|
|
||||||
2021-10-25 Version: 1.36.909
|
2021-10-25 Version: 1.36.909
|
||||||
- DescribeDtsJobs api, delay filed change from int to long.
|
- DescribeDtsJobs api, delay filed change from int to long.
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,10 @@ namespace AlibabaCloud
|
|||||||
void setVoiceCodeParam(const std::string& voiceCodeParam);
|
void setVoiceCodeParam(const std::string& voiceCodeParam);
|
||||||
bool getEarlyMediaAsr()const;
|
bool getEarlyMediaAsr()const;
|
||||||
void setEarlyMediaAsr(bool earlyMediaAsr);
|
void setEarlyMediaAsr(bool earlyMediaAsr);
|
||||||
|
int getBackgroundSpeed()const;
|
||||||
|
void setBackgroundSpeed(int backgroundSpeed);
|
||||||
|
int getBackgroundVolume()const;
|
||||||
|
void setBackgroundVolume(int backgroundVolume);
|
||||||
int getSpeed()const;
|
int getSpeed()const;
|
||||||
void setSpeed(int speed);
|
void setSpeed(int speed);
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
@@ -59,6 +63,8 @@ namespace AlibabaCloud
|
|||||||
void setVoiceCode(const std::string& voiceCode);
|
void setVoiceCode(const std::string& voiceCode);
|
||||||
std::string getCalledShowNumber()const;
|
std::string getCalledShowNumber()const;
|
||||||
void setCalledShowNumber(const std::string& calledShowNumber);
|
void setCalledShowNumber(const std::string& calledShowNumber);
|
||||||
|
bool getEnableITN()const;
|
||||||
|
void setEnableITN(bool enableITN);
|
||||||
int getActionCodeTimeBreak()const;
|
int getActionCodeTimeBreak()const;
|
||||||
void setActionCodeTimeBreak(int actionCodeTimeBreak);
|
void setActionCodeTimeBreak(int actionCodeTimeBreak);
|
||||||
bool getTtsConf()const;
|
bool getTtsConf()const;
|
||||||
@@ -79,6 +85,8 @@ namespace AlibabaCloud
|
|||||||
void setVolume(int volume);
|
void setVolume(int volume);
|
||||||
int getMuteTime()const;
|
int getMuteTime()const;
|
||||||
void setMuteTime(int muteTime);
|
void setMuteTime(int muteTime);
|
||||||
|
std::string getBackgroundFileCode()const;
|
||||||
|
void setBackgroundFileCode(const std::string& backgroundFileCode);
|
||||||
std::string getOutId()const;
|
std::string getOutId()const;
|
||||||
void setOutId(const std::string& outId);
|
void setOutId(const std::string& outId);
|
||||||
std::string getAsrModelId()const;
|
std::string getAsrModelId()const;
|
||||||
@@ -92,6 +100,8 @@ namespace AlibabaCloud
|
|||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
std::string voiceCodeParam_;
|
std::string voiceCodeParam_;
|
||||||
bool earlyMediaAsr_;
|
bool earlyMediaAsr_;
|
||||||
|
int backgroundSpeed_;
|
||||||
|
int backgroundVolume_;
|
||||||
int speed_;
|
int speed_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string asrBaseId_;
|
std::string asrBaseId_;
|
||||||
@@ -101,6 +111,7 @@ namespace AlibabaCloud
|
|||||||
int ttsSpeed_;
|
int ttsSpeed_;
|
||||||
std::string voiceCode_;
|
std::string voiceCode_;
|
||||||
std::string calledShowNumber_;
|
std::string calledShowNumber_;
|
||||||
|
bool enableITN_;
|
||||||
int actionCodeTimeBreak_;
|
int actionCodeTimeBreak_;
|
||||||
bool ttsConf_;
|
bool ttsConf_;
|
||||||
bool actionCodeBreak_;
|
bool actionCodeBreak_;
|
||||||
@@ -111,6 +122,7 @@ namespace AlibabaCloud
|
|||||||
int streamAsr_;
|
int streamAsr_;
|
||||||
int volume_;
|
int volume_;
|
||||||
int muteTime_;
|
int muteTime_;
|
||||||
|
std::string backgroundFileCode_;
|
||||||
std::string outId_;
|
std::string outId_;
|
||||||
std::string asrModelId_;
|
std::string asrModelId_;
|
||||||
int pauseTime_;
|
int pauseTime_;
|
||||||
|
|||||||
@@ -39,12 +39,12 @@ void SingleCallByTtsResult::parse(const std::string &payload)
|
|||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["CallId"].isNull())
|
|
||||||
callId_ = value["CallId"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
if(!value["Code"].isNull())
|
||||||
code_ = value["Code"].asString();
|
code_ = value["Code"].asString();
|
||||||
if(!value["Message"].isNull())
|
if(!value["Message"].isNull())
|
||||||
message_ = value["Message"].asString();
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["CallId"].isNull())
|
||||||
|
callId_ = value["CallId"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,28 @@ void SmartCallRequest::setEarlyMediaAsr(bool earlyMediaAsr)
|
|||||||
setParameter("EarlyMediaAsr", earlyMediaAsr ? "true" : "false");
|
setParameter("EarlyMediaAsr", earlyMediaAsr ? "true" : "false");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int SmartCallRequest::getBackgroundSpeed()const
|
||||||
|
{
|
||||||
|
return backgroundSpeed_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmartCallRequest::setBackgroundSpeed(int backgroundSpeed)
|
||||||
|
{
|
||||||
|
backgroundSpeed_ = backgroundSpeed;
|
||||||
|
setParameter("BackgroundSpeed", std::to_string(backgroundSpeed));
|
||||||
|
}
|
||||||
|
|
||||||
|
int SmartCallRequest::getBackgroundVolume()const
|
||||||
|
{
|
||||||
|
return backgroundVolume_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmartCallRequest::setBackgroundVolume(int backgroundVolume)
|
||||||
|
{
|
||||||
|
backgroundVolume_ = backgroundVolume;
|
||||||
|
setParameter("BackgroundVolume", std::to_string(backgroundVolume));
|
||||||
|
}
|
||||||
|
|
||||||
int SmartCallRequest::getSpeed()const
|
int SmartCallRequest::getSpeed()const
|
||||||
{
|
{
|
||||||
return speed_;
|
return speed_;
|
||||||
@@ -159,6 +181,17 @@ void SmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
|||||||
setParameter("CalledShowNumber", calledShowNumber);
|
setParameter("CalledShowNumber", calledShowNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool SmartCallRequest::getEnableITN()const
|
||||||
|
{
|
||||||
|
return enableITN_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmartCallRequest::setEnableITN(bool enableITN)
|
||||||
|
{
|
||||||
|
enableITN_ = enableITN;
|
||||||
|
setParameter("EnableITN", enableITN ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
int SmartCallRequest::getActionCodeTimeBreak()const
|
int SmartCallRequest::getActionCodeTimeBreak()const
|
||||||
{
|
{
|
||||||
return actionCodeTimeBreak_;
|
return actionCodeTimeBreak_;
|
||||||
@@ -269,6 +302,17 @@ void SmartCallRequest::setMuteTime(int muteTime)
|
|||||||
setParameter("MuteTime", std::to_string(muteTime));
|
setParameter("MuteTime", std::to_string(muteTime));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string SmartCallRequest::getBackgroundFileCode()const
|
||||||
|
{
|
||||||
|
return backgroundFileCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmartCallRequest::setBackgroundFileCode(const std::string& backgroundFileCode)
|
||||||
|
{
|
||||||
|
backgroundFileCode_ = backgroundFileCode;
|
||||||
|
setParameter("BackgroundFileCode", backgroundFileCode);
|
||||||
|
}
|
||||||
|
|
||||||
std::string SmartCallRequest::getOutId()const
|
std::string SmartCallRequest::getOutId()const
|
||||||
{
|
{
|
||||||
return outId_;
|
return outId_;
|
||||||
|
|||||||
@@ -39,12 +39,12 @@ void SmartCallResult::parse(const std::string &payload)
|
|||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["CallId"].isNull())
|
|
||||||
callId_ = value["CallId"].asString();
|
|
||||||
if(!value["Code"].isNull())
|
if(!value["Code"].isNull())
|
||||||
code_ = value["Code"].asString();
|
code_ = value["Code"].asString();
|
||||||
if(!value["Message"].isNull())
|
if(!value["Message"].isNull())
|
||||||
message_ = value["Message"].asString();
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["CallId"].isNull())
|
||||||
|
callId_ = value["CallId"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user