Skip to content

Commit d9bfa68

Browse files
committed
update apis to latest and bump version to 3.0.10
1 parent bab85e3 commit d9bfa68

File tree

101 files changed

+7703
-428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+7703
-428
lines changed

src/TencentCloud/Aai/V20180522/AaiClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
use TencentCloud\Aai\V20180522\Models as Models;
2626

2727
/**
28-
* @method Models\SentenceRecognitionResponse SentenceRecognition(Models\SentenceRecognitionRequest $req) 识别60s内的短语音。
28+
* @method Models\SentenceRecognitionResponse SentenceRecognition(Models\SentenceRecognitionRequest $req) 识别60s内的短语音,当音频放在请求body中传输时整个请求大小不能超过1M,当音频以url方式传输时,音频时长不可超过60s。
29+
* @method Models\TextToVoiceResponse TextToVoice(Models\TextToVoiceRequest $req) 腾讯云语音合成技术(TTS)可以将任意文本转化为语音,实现让机器和应用张口说话。
30+
腾讯TTS技术可以应用到很多场景,比如,移动APP语音播报新闻;智能设备语音提醒;依靠网上现有节目或少量录音,快速合成明星语音,降低邀约成本;支持车载导航语音合成的个性化语音播报。
31+
内测期间免费使用。
2932
*/
3033

3134
class AaiClient extends AbstractClient

src/TencentCloud/Aai/V20180522/Models/SentenceRecognitionRequest.php

+16-16
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
* @method void setEngSerViceType(string $EngSerViceType) 设置引擎类型。8k:电话 8k 通用模型;16k:16k 通用模型。
3030
* @method integer getSourceType() 获取语音数据来源。0:语音 URL;1:语音数据(post body)。
3131
* @method void setSourceType(integer $SourceType) 设置语音数据来源。0:语音 URL;1:语音数据(post body)。
32-
* @method string getUrl() 获取语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。
33-
* @method void setUrl(string $Url) 设置语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。
3432
* @method string getVoiceFormat() 获取识别音频的音频格式(支持mp3,wav)。
3533
* @method void setVoiceFormat(string $VoiceFormat) 设置识别音频的音频格式(支持mp3,wav)。
3634
* @method string getUsrAudioKey() 获取用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
3735
* @method void setUsrAudioKey(string $UsrAudioKey) 设置用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
38-
* @method string getData() 获取语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码
39-
* @method void setData(string $Data) 设置语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码
36+
* @method string getUrl() 获取语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。音频时间长度要小于60s。
37+
* @method void setUrl(string $Url) 设置语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。音频时间长度要小于60s。
38+
* @method string getData() 获取语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码。音频数据要小于900k。
39+
* @method void setData(string $Data) 设置语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码。音频数据要小于900k。
4040
* @method integer getDataLen() 获取数据长度,当 SourceType 值为1时必须填写,为0可不写。
4141
* @method void setDataLen(integer $DataLen) 设置数据长度,当 SourceType 值为1时必须填写,为0可不写。
4242
*/
@@ -66,11 +66,6 @@ class SentenceRecognitionRequest extends AbstractModel
6666
*/
6767
public $SourceType;
6868

69-
/**
70-
* @var string 语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。
71-
*/
72-
public $Url;
73-
7469
/**
7570
* @var string 识别音频的音频格式(支持mp3,wav)。
7671
*/
@@ -82,7 +77,12 @@ class SentenceRecognitionRequest extends AbstractModel
8277
public $UsrAudioKey;
8378

8479
/**
85-
* @var string 语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码
80+
* @var string 语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。音频时间长度要小于60s。
81+
*/
82+
public $Url;
83+
84+
/**
85+
* @var string 语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码。音频数据要小于900k。
8686
*/
8787
public $Data;
8888

@@ -95,10 +95,10 @@ class SentenceRecognitionRequest extends AbstractModel
9595
* @param integer $SubServiceType 子服务类型。0:离线语音识别。1:实时流式识别,2,一句话识别。
9696
* @param string $EngSerViceType 引擎类型。8k:电话 8k 通用模型;16k:16k 通用模型。
9797
* @param integer $SourceType 语音数据来源。0:语音 URL;1:语音数据(post body)。
98-
* @param string $Url 语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。
9998
* @param string $VoiceFormat 识别音频的音频格式(支持mp3,wav)。
10099
* @param string $UsrAudioKey 用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
101-
* @param string $Data 语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码
100+
* @param string $Url 语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。音频时间长度要小于60s。
101+
* @param string $Data 语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码。音频数据要小于900k。
102102
* @param integer $DataLen 数据长度,当 SourceType 值为1时必须填写,为0可不写。
103103
*/
104104
function __construct()
@@ -129,10 +129,6 @@ public function deserialize($param)
129129
$this->SourceType = $param["SourceType"];
130130
}
131131

132-
if (array_key_exists("Url",$param) and $param["Url"] !== null) {
133-
$this->Url = $param["Url"];
134-
}
135-
136132
if (array_key_exists("VoiceFormat",$param) and $param["VoiceFormat"] !== null) {
137133
$this->VoiceFormat = $param["VoiceFormat"];
138134
}
@@ -141,6 +137,10 @@ public function deserialize($param)
141137
$this->UsrAudioKey = $param["UsrAudioKey"];
142138
}
143139

140+
if (array_key_exists("Url",$param) and $param["Url"] !== null) {
141+
$this->Url = $param["Url"];
142+
}
143+
144144
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
145145
$this->Data = $param["Data"];
146146
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
<?php
2+
/*
3+
* Licensed to the Apache Software Foundation (ASF) under one
4+
* or more contributor license agreements. See the NOTICE file
5+
* distributed with this work for additional information
6+
* regarding copyright ownership. The ASF licenses this file
7+
* to you under the Apache License, Version 2.0 (the
8+
* "License"); you may not use this file except in compliance
9+
* with the License. You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing,
14+
* software distributed under the License is distributed on an
15+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
* KIND, either express or implied. See the License for the
17+
* specific language governing permissions and limitations
18+
* under the License.
19+
*/
20+
namespace TencentCloud\Aai\V20180522\Models;
21+
use TencentCloud\Common\AbstractModel;
22+
23+
/**
24+
* @method string getText() 获取合成语音的源文本
25+
* @method void setText(string $Text) 设置合成语音的源文本
26+
* @method string getSessionId() 获取一次请求对应一个SessionId,会原样返回
27+
* @method void setSessionId(string $SessionId) 设置一次请求对应一个SessionId,会原样返回
28+
* @method integer getProjectId() 获取项目id
29+
* @method void setProjectId(integer $ProjectId) 设置项目id
30+
* @method integer getModelType() 获取模型类型,1-默认模型
31+
* @method void setModelType(integer $ModelType) 设置模型类型,1-默认模型
32+
* @method float getVolume() 获取音量大小,暂仅支持默认值1.0
33+
* @method void setVolume(float $Volume) 设置音量大小,暂仅支持默认值1.0
34+
* @method float getSpeed() 获取语速,暂仅支持默认值1.0
35+
* @method void setSpeed(float $Speed) 设置语速,暂仅支持默认值1.0
36+
* @method integer getVoiceType() 获取音色,1-默认音色
37+
* @method void setVoiceType(integer $VoiceType) 设置音色,1-默认音色
38+
* @method integer getPrimaryLanguage() 获取主语言类型<li>1-中文(包括粤语),最大300字符</li><li>2-英文,最大支持600字符</li>
39+
* @method void setPrimaryLanguage(integer $PrimaryLanguage) 设置主语言类型<li>1-中文(包括粤语),最大300字符</li><li>2-英文,最大支持600字符</li>
40+
* @method integer getSampleRate() 获取音频采样率:暂仅支持16k
41+
* @method void setSampleRate(integer $SampleRate) 设置音频采样率:暂仅支持16k
42+
*/
43+
44+
/**
45+
*TextToVoice请求参数结构体
46+
*/
47+
class TextToVoiceRequest extends AbstractModel
48+
{
49+
/**
50+
* @var string 合成语音的源文本
51+
*/
52+
public $Text;
53+
54+
/**
55+
* @var string 一次请求对应一个SessionId,会原样返回
56+
*/
57+
public $SessionId;
58+
59+
/**
60+
* @var integer 项目id
61+
*/
62+
public $ProjectId;
63+
64+
/**
65+
* @var integer 模型类型,1-默认模型
66+
*/
67+
public $ModelType;
68+
69+
/**
70+
* @var float 音量大小,暂仅支持默认值1.0
71+
*/
72+
public $Volume;
73+
74+
/**
75+
* @var float 语速,暂仅支持默认值1.0
76+
*/
77+
public $Speed;
78+
79+
/**
80+
* @var integer 音色,1-默认音色
81+
*/
82+
public $VoiceType;
83+
84+
/**
85+
* @var integer 主语言类型<li>1-中文(包括粤语),最大300字符</li><li>2-英文,最大支持600字符</li>
86+
*/
87+
public $PrimaryLanguage;
88+
89+
/**
90+
* @var integer 音频采样率:暂仅支持16k
91+
*/
92+
public $SampleRate;
93+
/**
94+
* @param string $Text 合成语音的源文本
95+
* @param string $SessionId 一次请求对应一个SessionId,会原样返回
96+
* @param integer $ProjectId 项目id
97+
* @param integer $ModelType 模型类型,1-默认模型
98+
* @param float $Volume 音量大小,暂仅支持默认值1.0
99+
* @param float $Speed 语速,暂仅支持默认值1.0
100+
* @param integer $VoiceType 音色,1-默认音色
101+
* @param integer $PrimaryLanguage 主语言类型<li>1-中文(包括粤语),最大300字符</li><li>2-英文,最大支持600字符</li>
102+
* @param integer $SampleRate 音频采样率:暂仅支持16k
103+
*/
104+
function __construct()
105+
{
106+
107+
}
108+
/**
109+
* 内部实现,用户禁止调用
110+
*/
111+
public function deserialize($param)
112+
{
113+
if ($param === null) {
114+
return;
115+
}
116+
if (array_key_exists("Text",$param) and $param["Text"] !== null) {
117+
$this->Text = $param["Text"];
118+
}
119+
120+
if (array_key_exists("SessionId",$param) and $param["SessionId"] !== null) {
121+
$this->SessionId = $param["SessionId"];
122+
}
123+
124+
if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
125+
$this->ProjectId = $param["ProjectId"];
126+
}
127+
128+
if (array_key_exists("ModelType",$param) and $param["ModelType"] !== null) {
129+
$this->ModelType = $param["ModelType"];
130+
}
131+
132+
if (array_key_exists("Volume",$param) and $param["Volume"] !== null) {
133+
$this->Volume = $param["Volume"];
134+
}
135+
136+
if (array_key_exists("Speed",$param) and $param["Speed"] !== null) {
137+
$this->Speed = $param["Speed"];
138+
}
139+
140+
if (array_key_exists("VoiceType",$param) and $param["VoiceType"] !== null) {
141+
$this->VoiceType = $param["VoiceType"];
142+
}
143+
144+
if (array_key_exists("PrimaryLanguage",$param) and $param["PrimaryLanguage"] !== null) {
145+
$this->PrimaryLanguage = $param["PrimaryLanguage"];
146+
}
147+
148+
if (array_key_exists("SampleRate",$param) and $param["SampleRate"] !== null) {
149+
$this->SampleRate = $param["SampleRate"];
150+
}
151+
}
152+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?php
2+
/*
3+
* Licensed to the Apache Software Foundation (ASF) under one
4+
* or more contributor license agreements. See the NOTICE file
5+
* distributed with this work for additional information
6+
* regarding copyright ownership. The ASF licenses this file
7+
* to you under the Apache License, Version 2.0 (the
8+
* "License"); you may not use this file except in compliance
9+
* with the License. You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing,
14+
* software distributed under the License is distributed on an
15+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
* KIND, either express or implied. See the License for the
17+
* specific language governing permissions and limitations
18+
* under the License.
19+
*/
20+
namespace TencentCloud\Aai\V20180522\Models;
21+
use TencentCloud\Common\AbstractModel;
22+
23+
/**
24+
* @method string getAudio() 获取base编码的wav音频
25+
* @method void setAudio(string $Audio) 设置base编码的wav音频
26+
* @method string getSessionId() 获取一次请求对应一个SessionId
27+
* @method void setSessionId(string $SessionId) 设置一次请求对应一个SessionId
28+
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
29+
* @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
30+
*/
31+
32+
/**
33+
*TextToVoice返回参数结构体
34+
*/
35+
class TextToVoiceResponse extends AbstractModel
36+
{
37+
/**
38+
* @var string base编码的wav音频
39+
*/
40+
public $Audio;
41+
42+
/**
43+
* @var string 一次请求对应一个SessionId
44+
*/
45+
public $SessionId;
46+
47+
/**
48+
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
49+
*/
50+
public $RequestId;
51+
/**
52+
* @param string $Audio base编码的wav音频
53+
* @param string $SessionId 一次请求对应一个SessionId
54+
* @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
55+
*/
56+
function __construct()
57+
{
58+
59+
}
60+
/**
61+
* 内部实现,用户禁止调用
62+
*/
63+
public function deserialize($param)
64+
{
65+
if ($param === null) {
66+
return;
67+
}
68+
if (array_key_exists("Audio",$param) and $param["Audio"] !== null) {
69+
$this->Audio = $param["Audio"];
70+
}
71+
72+
if (array_key_exists("SessionId",$param) and $param["SessionId"] !== null) {
73+
$this->SessionId = $param["SessionId"];
74+
}
75+
76+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
77+
$this->RequestId = $param["RequestId"];
78+
}
79+
}
80+
}

src/TencentCloud/Cbs/V20170312/CbsClient.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
* 本接口为异步接口,接口成功返回时,云盘并未立即扩容到指定大小,可通过接口[DescribeDisks](/document/product/362/16315)来查询对应云盘的状态,如果云盘的状态为“EXPANDING”,表示正在扩容中,当状态变为“UNATTACHED”,表示扩容完成。
9696
* @method Models\TerminateDisksResponse TerminateDisks(Models\TerminateDisksRequest $req) 本接口(TerminateDisks)用于退还云硬盘。
9797
98-
* 当前仅支持退还包年包月云盘。
98+
* 不再使用的云盘,可通过本接口主动退还。
99+
* 本接口支持退还预付费云盘和按小时后付费云盘。按小时后付费云盘可直接退还,预付费云盘需符合退还规则。
99100
* 支持批量操作,每次请求批量云硬盘的上限为50。如果批量云盘存在不允许操作的,请求会以特定错误码返回。
100101
*/
101102

src/TencentCloud/Cbs/V20170312/Models/AttachDisksRequest.php

+12
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* @method void setDiskIds(array $DiskIds) 设置将要被挂载的弹性云盘ID。通过[DescribeDisks](/document/product/362/16315)接口查询。单次最多可挂载10块弹性云盘。
2626
* @method string getInstanceId() 获取云服务器实例ID。云盘将被挂载到此云服务器上,通过[DescribeInstances](/document/product/213/15728)接口查询。
2727
* @method void setInstanceId(string $InstanceId) 设置云服务器实例ID。云盘将被挂载到此云服务器上,通过[DescribeInstances](/document/product/213/15728)接口查询。
28+
* @method boolean getDeleteWithInstance() 获取可选参数,不传该参数则仅执行挂载操作。传入`True`时,会在挂载成功后将云硬盘设置为随云主机销毁模式,仅对按量计费云硬盘有效。
29+
* @method void setDeleteWithInstance(boolean $DeleteWithInstance) 设置可选参数,不传该参数则仅执行挂载操作。传入`True`时,会在挂载成功后将云硬盘设置为随云主机销毁模式,仅对按量计费云硬盘有效。
2830
*/
2931

3032
/**
@@ -41,9 +43,15 @@ class AttachDisksRequest extends AbstractModel
4143
* @var string 云服务器实例ID。云盘将被挂载到此云服务器上,通过[DescribeInstances](/document/product/213/15728)接口查询。
4244
*/
4345
public $InstanceId;
46+
47+
/**
48+
* @var boolean 可选参数,不传该参数则仅执行挂载操作。传入`True`时,会在挂载成功后将云硬盘设置为随云主机销毁模式,仅对按量计费云硬盘有效。
49+
*/
50+
public $DeleteWithInstance;
4451
/**
4552
* @param array $DiskIds 将要被挂载的弹性云盘ID。通过[DescribeDisks](/document/product/362/16315)接口查询。单次最多可挂载10块弹性云盘。
4653
* @param string $InstanceId 云服务器实例ID。云盘将被挂载到此云服务器上,通过[DescribeInstances](/document/product/213/15728)接口查询。
54+
* @param boolean $DeleteWithInstance 可选参数,不传该参数则仅执行挂载操作。传入`True`时,会在挂载成功后将云硬盘设置为随云主机销毁模式,仅对按量计费云硬盘有效。
4755
*/
4856
function __construct()
4957
{
@@ -64,5 +72,9 @@ public function deserialize($param)
6472
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
6573
$this->InstanceId = $param["InstanceId"];
6674
}
75+
76+
if (array_key_exists("DeleteWithInstance",$param) and $param["DeleteWithInstance"] !== null) {
77+
$this->DeleteWithInstance = $param["DeleteWithInstance"];
78+
}
6779
}
6880
}

0 commit comments

Comments
 (0)