tencentcloud-sdk-nodejs-intl-en 3.0.1308 → 3.0.1310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.1308",
3
+ "version": "3.0.1310",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -291,9 +291,9 @@ class CccClient extends AbstractClient {
291
291
  }
292
292
 
293
293
  /**
294
- * Used to make outbound calls by invoking AI models, limited to the use of proprietary phone numbers. Currently, the Advanced version seats are available for a **limited time** free trial.
294
+ * This API is used to **call the AI model directly** to trigger a **single** outbound call. It supports configuring the model, prompt content, voice, and all call elements through API parameters.
295
295
 
296
- Before initiating a call, please ensure your AI model is compatible with OpenAI, Azure, or Minimax protocols, and visit the model provider's website to obtain relevant authentication information. For detailed feature descriptions, please refer to the documentation [Tencent Cloud Contact Center AI Call Platform](https://www.tencentcloud.com/document/product/1229/66889).
296
+ The feature requires purchase of the Intelligent Agent call package and is only available for own telephone numbers. For details, refer to the Intelligent Agent Call Purchase Guide (https://www.tencentcloud.comom/document/product/679/125953?from_cn_redirect=1).
297
297
  * @param {CreateAICallRequest} req
298
298
  * @param {function(string, CreateAICallResponse):void} cb
299
299
  * @public
@@ -1193,56 +1193,80 @@ Currently, the supported languages are as follows. The English name of the langu
1193
1193
  this.NotifyMaxCount = null;
1194
1194
 
1195
1195
  /**
1196
- * <p>And VoiceType field needs to select one, here is to use your own custom TTS, VoiceType is some built-in sound qualities</p>
1196
+ * <p>Either the VoiceType field or a custom TTS is required. this uses your own custom TTS, while VoiceType provides some built-in voice types.</p>.
1197
1197
  <ul>
1198
1198
  <li>Tencent TTS<br>
1199
- For configuration, please refer to <a href="https://intl.cloud.tencent.com/document/product/1073/92668?from_cn_redirect=1#55924b56-1a73-4663-a7a1-a8dd82d6e823" target="_blank">Tencent Cloud TTS documentation link</a></li>
1199
+ For configuration, see <a href="https://www.tencentcloud.comom/document/product/1073/92668?from_cn_redirect=1#55924b56-1a73-4663-a7a1-a8dd82d6e823" target="_blank">tencent cloud TTS documentation link</a></li>.
1200
1200
  </ul>
1201
- <div><div class="v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class"><pre class="v-md-prism-"><code>{
1202
- &quot;TTSType&quot;: &quot;tencent&quot;, // String TTS type, currently supports &quot;tencent&quot; and "minixmax", other vendors support in progress
1203
- &quot;AppId&quot;: &quot;Your application ID&quot;, // String required
1204
- &quot;SecretId&quot;: &quot;Your Secret ID&quot;, // String Required
1205
- &quot;SecretKey&quot;: &quot;Your Secret Key&quot;, // String Required
1206
- &quot;VoiceType&quot;: 101001, // Integer Required, Sound quality ID, includes standard and premium sound quality. Premium sound quality is more realistic and differently priced than standard sound quality. See TTS billing overview for details. For the full list of sound quality IDs, see the TTS sound quality list.
1207
- "Speed": 1.25, // Integer Optional, speech speed, range: [-2,6], corresponding to different speeds: -2: represents 0.6x -1: represents 0.8x 0: represents 1.0x (default) 1: represents 1.2x 2: represents 1.5x 6: represents 2.5x For more precise speed control, you can retain two decimal places, such as 0.5/1.25/2.81, etc. For parameter value to actual speed conversion, refer to Speed Conversion
1208
- &quot;Volume&quot;: 5, // Integer Optional, Volume level, range: [0,10], corresponding to 11 levels of volume, default is 0, which represents normal volume.
1209
- &quot;PrimaryLanguage&quot;: 1, // Integer Optional, Primary language 1- Chinese (default) 2- English 3- Japanese
1210
- &quot;FastVoiceType&quot;: &quot;xxxx&quot; // Optional parameter, Fast VRS parameter
1211
- }
1201
+ <div class="v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class"><pre class="v-md-prism-"><code>{
1202
+ "TTSType": "tencent", // String TTS type. currently supports "tencent" and "minixmax". the rest manufacturers are under support.
1203
+   "AppId": "your application ID", // String required.
1204
+   "SecretId": "your key ID", // String required.
1205
+   "SecretKey": "your Key", // String required.
1206
+   "VoiceType": 101001, // Integer required. the voice ID, including standard timbre and premium timbre. premium timbre has higher fidelity and different pricing from standard timbre. please refer to the text to speech billing overview. for the complete supported timbre list, see the text to speech timbre list.
1207
+ "Speed": 1.25, // Integer optional, speaking rate, value range: [-2,6], respectively represent different speaking rates: -2: 0.6x -1: 0.8x 0: 1.0x (default) 1: 1.2x 2: 1.5x 6: 2.5x. if more refined speaking rates are needed, up to 2 decimal places can be retained, such as 0.5, 1.25, or 2.81. for parameter value to actual speech Speed conversion, refer to speech Speed switch.
1208
+   "Volume": 5, // Integer optional. specifies the Volume level. value range: [0,10], corresponding to 11 severity levels respectively. default value: 0, which represents normal Volume.
1209
+   "PrimaryLanguage": 1, // Integer option primary language 1-chinese (default) 2-english 3-japanese.
1210
+ "FastVoiceType": "xxxx" // optional parameter. parameters for quick voice clone.
1211
+ }
1212
1212
  </code></pre>
1213
-
1214
- </div></div><ul>
1215
-
1216
- </div></div><ul>
1213
+ </div><ul>
1214
+ <li>Minimax TTS<br>
1215
+ For configuration, refer to the <a href="https://platform.minimaxi.com/document/T2a%20V2?key=66719005a427f0c8a5701643" target="_blank">Minimax TTS documentation link</a>. note that Minimax TTS has frequency limits. overfrequency may result in response delays. see the <a href="https://platform.minimaxi.com/document/Rate%20limits?key=66b19417290299a26b234572" target="_blank">Minimax TTS frequency limit documentation link</a>.</li>.
1216
+ </ul>
1217
+ <div class="v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class"><pre class="v-md-prism-"><code>{
1218
+ "TTSType": "minimax", // String TTS type.
1219
+ &quot;Model&quot;: &quot;speech-01-turbo&quot;,
1220
+ &quot;APIUrl&quot;: &quot;https://api.minimax.chat/v1/t2a_v2&quot;,
1221
+ &quot;APIKey&quot;: &quot;eyxxxx&quot;,
1222
+ &quot;GroupId&quot;: &quot;181000000000000&quot;,
1223
+ &quot;VoiceType&quot;:&quot;female-tianmei&quot;,
1224
+ &quot;Speed&quot;: 1.2
1225
+ }
1226
+ </code></pre>
1227
+ </div><ul>
1228
+ <li>Volcano TTS</li>.
1229
+ </ul>
1230
+ <p>Configure the timbre type. see <a href="https://www.volcengine.com/docs/6561/162929" target="_blank">volcano TTS documentation link</a><br>.
1231
+ Text to speech timbre list - voice technology - volcano engine.
1232
+ Large model TTS timbre list - voice technology - volcano engine</p>.
1233
+ <div class="v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class"><pre class="v-md-prism-"><code>{
1234
+ "TTSType": "volcengine", // required: String TTS type.
1235
+ "AppId": "xxxxxxxx", // required: String AppId assigned by volcano engine.
1236
+ "Token": "TY9d4sQXHxxxxxxx", // required: String type, access Token for volcano engine.
1237
+ "Speed": 1.0, // optional parameter. speaking rate, defaults to 1.0.
1238
+ "Volume": 1.0, // optional parameter, Volume, defaults to 1.0.
1239
+ "Cluster": "volcano_tts", // optional parameter, business Cluster, is selected by default.
1240
+ "VoiceType": "zh_male_aojiaobazong_moon_bigtts" // timbre type, defaults to the TTS voice type of the large model. if using ordinary text to speech, you need to fill in the corresponding voice type. input errors in voice type can cause no sound.
1241
+ }
1242
+ </code></pre>
1243
+ </div><ul>
1217
1244
  <li>Azure TTS<br>
1218
- For configuration, refer to the<a href="https://docs.azure.cn/zh-cn/ai-services/speech-service/speech-synthesis-markup-voice" target="_blank">Azure TTS documentation</a></li>
1245
+ For configuration, refer to the <a href="https://docs.azure.cn/zh-cn/ai-services/speech-service/speech-synthesis-markup-voice" target="_blank">AzureTTS documentation link</a></li>.
1219
1246
  </ul>
1220
- <div><div class="v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class"><pre class="v-md-prism-"><code>{
1221
- &quot;TTSType&quot;: &quot;azure&quot;, // Required: String TTS type
1222
- &quot;SubscriptionKey&quot;: &quot;xxxxxxxx&quot;, // Required: String subscription key
1223
- &quot;Region&quot;: &quot;chinanorth3&quot;, // Required: String subscription region
1224
- &quot;VoiceName&quot;: &quot;zh-CN-XiaoxiaoNeural&quot;, // Required: String Timbre Name required
1225
- &quot;Language&quot;: &quot;zh-CN&quot;, // Required: String Language for synthesis
1226
- &quot;Rate&quot;: 1 // Optional: float Playback Speed 0.5-2 default is 1
1247
+ <div class="v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class"><pre class="v-md-prism-"><code>{
1248
+ "TTSType": "azure", // required: String TTS type.
1249
+ "SubscriptionKey": "xxxxxxxx", // required: String subscription Key.
1250
+ "Region": "chinanorth3", // required: String the Region to subscribe to.
1251
+ "VoiceName": "zh-CN-XiaoxiaoNeural", // required: String specifies the required VoiceName.
1252
+ "Language": "zh-CN", // required: String specifies the synthesis Language.
1253
+ "Rate": 1 // optional: float, speech speed. value range: 0.52. default is 1.
1227
1254
  }
1228
1255
  </code></pre>
1229
-
1230
- </div></div><ul>
1231
- <li>Custom</li>
1256
+ </div><ul>
1257
+ <li>Custom TTS</li>.
1232
1258
  </ul>
1233
- <p>TTS<br>
1234
- Please refer to the specific protocol standards in the <a href="https://doc.weixin.qq.com/doc/w3_ANQAiAbdAFwHILbJBmtSqSbV1WZ3L?scode=AJEAIQdfAAo5a1xajYANQAiAbdAFw" target="_blank">Tencent documentation</a></p>
1235
- <div><div class="v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class"><pre class="v-md-prism-"><code>{
1236
- &quot;TTSType&quot;: &quot;custom&quot;, // Required String
1237
- &quot;APIKey&quot;: &quot;ApiKey&quot;, // Required String for Authentication
1238
- &quot;APIUrl&quot;: &quot;http://0.0.0.0:8080/stream-audio&quot; // Required String, TTS API URL
1239
- &quot;AudioFormat&quot;: &quot;wav&quot;, // String, optional, expected audio format, such as mp3, ogg_opus, pcm, wav, default is wav, currently only pcm and wav are supported,
1240
- &quot;SampleRate&quot;: 16000, // Integer, optional, audio sample rate, default is 16000 (16k), recommended value is 16000
1241
- &quot;AudioChannel&quot;: 1, // Integer, optional, number of audio channels, values: 1 or 2, default is 1
1259
+ <p>For the specific protocol specification, refer to <a href="https://doc.weixin.qq.com/doc/w3_ANQAiAbdAFwHILbJBmtSqSbV1WZ3L?scode=AJEAIQdfAAo5a1xajYANQAiAbdAFw" target="_blank">tencent documentation</a></p>.
1260
+ <div class="v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class"><pre class="v-md-prism-"><code>{
1261
+ "TTSType": "custom", // String required.
1262
+ "APIKey": "APIKey", // String required. be used to authenticate.
1263
+ "APIUrl": "http://0.0.0.0:8080/stream-audio" // String, required, TTS API URL.
1264
+ "AudioFormat": "wav", // String, optional, specifies the desired audio format, such as mp3, ogg_opus, pcm, wav. defaults to wav. currently only support pcm and wav.
1265
+ "SampleRate": 16000, // Integer, optional, audio sample rate, defaults to 16000 (16k), recommended value is 16000.
1266
+ "AudioChannel": 1, // Integer, optional, audio channel quantity. valid values: 1 or 2. default is 1.
1242
1267
  }
1243
1268
  </code></pre>
1244
-
1245
- </div></div>
1269
+ </div>
1246
1270
  * @type {string || null}
1247
1271
  */
1248
1272
  this.CustomTTSConfig = null;
@@ -1300,14 +1324,45 @@ dify-inputs-xxx specifies the inputs variable for dify.
1300
1324
  this.ToneWord = null;
1301
1325
 
1302
1326
  /**
1303
- * Compliance prompt sound.
1304
- This parameter specifies whether to play morse code during call initiation (default: true), indicating the conversation content is AI-generated.
1305
- This parameter signifies disabled when set to false. the parameter indicates you understand and agree to the following protocol:.
1306
- Our side fully acknowledges and understands that according to the laws and regulations including the "cybersecurity law" (https://www.gov.cn/xinwen/2016-11/07/content_5129723.htm), "provision on administration of deep synthesis of internet-based information service" (https://www.gov.cn/zhengce/zhengceku/2022-12/12/content_5731431.htm), "interim measures for the management of generative artificial intelligence services" (https://www.gov.cn/zhengce/zhengceku/202307/content_6891752.htm), and "measures for the identification of artificial intelligence-generated synthetic content" (https://www.gov.cn/zhengce/zhengceku/202503/content_7014286.htm), explicit and implicit identification shall be added to ai-generated synthetic content. based on business needs, we request tencent cloud not to add explicit identification to generated synthetic content. we commit to lawful and compliant use of such content to avoid confusion or misunderstanding. if the ai-generated synthetic content is used to provide services to the public or spread over networks, we will proactively add explicit identification compliant with legal provisions and national standard requirements and bear the legal obligations for ai-generated synthetic content identification. if we fail to properly fulfill the identification obligations for ai-generated content, resulting in adverse consequences or penalties from the competent department, we will fully assume all related responsibilities.
1327
+ * Compliant prompt sound.
1328
+ This parameter set to true (default) means call initiation plays morse code, with a Note that the conversation content is AI-generated.
1329
+ Passing 'false' to this parameter disables the compliance prompt sound. passing 'false' signifies you have read and agree to the following agreement:.
1330
+ Our side fully acknowledges and understands that according to the laws and regulations specified in the "cybersecurity law" (https://www.cac.gov.cn/2016-11/07/c_1119867116.htm), "provision on administration of deep synthesis of internet-based information service" (https://www.gov.cn/zhengce/zhengceku/2022-12/12/content_5731431.htm), "interim measures for the management of generative artificial intelligence services" (https://www.gov.cn/zhengce/zhengceku/202307/content_6891752.htm), and "measures for the identification of artificial intelligence-generated synthetic content" (https://www.gov.cn/zhengce/zhengceku/202503/content_7014286.htm), explicit and implicit identification should be added to ai-generated synthetic content. based on business requirements, we request tencent cloud not to add explicit identification to generated synthetic content. we commit to lawful and compliant use of generated synthetic content to avoid causing confusion or misunderstanding. if the generated synthetic content is used to provide services to the public or spread over networks, we will proactively add explicit identification that complies with legal provisions and national standards, and bear the legal obligation for identifying ai-generated synthetic content. our side will fully assume all related responsibilities if adverse consequences arise from failure to appropriately and reasonably fulfill the obligation of ai content identification, or if penalties are imposed by the competent department.
1307
1331
  * @type {boolean || null}
1308
1332
  */
1309
1333
  this.EnableComplianceAudio = null;
1310
1334
 
1335
+ /**
1336
+ * Whether to enable voice mail recognition.
1337
+ * @type {boolean || null}
1338
+ */
1339
+ this.EnableVoicemailDetection = null;
1340
+
1341
+ /**
1342
+ * Detect behavior when the peer is voice mail. this parameter is valid only when EnableVoicemailDetection is True.
1343
+ 0: hang up the phone (default).
1344
+ * @type {number || null}
1345
+ */
1346
+ this.VoicemailAction = null;
1347
+
1348
+ /**
1349
+ * Large model extended parameter, format is json string.
1350
+ * @type {string || null}
1351
+ */
1352
+ this.LLMExtraBody = null;
1353
+
1354
+ /**
1355
+ * Maximum call duration, default not limited. unit: milliseconds (ms).
1356
+ * @type {number || null}
1357
+ */
1358
+ this.MaxCallDurationMs = null;
1359
+
1360
+ /**
1361
+ * Maximum ringing duration. auto hang up when the duration threshold is reached. **only own number supports current parameter.**.
1362
+ * @type {number || null}
1363
+ */
1364
+ this.MaxRingTimeoutSecond = null;
1365
+
1311
1366
  }
1312
1367
 
1313
1368
  /**
@@ -1387,6 +1442,11 @@ Our side fully acknowledges and understands that according to the laws and regul
1387
1442
  this.ToneWord = obj;
1388
1443
  }
1389
1444
  this.EnableComplianceAudio = 'EnableComplianceAudio' in params ? params.EnableComplianceAudio : null;
1445
+ this.EnableVoicemailDetection = 'EnableVoicemailDetection' in params ? params.EnableVoicemailDetection : null;
1446
+ this.VoicemailAction = 'VoicemailAction' in params ? params.VoicemailAction : null;
1447
+ this.LLMExtraBody = 'LLMExtraBody' in params ? params.LLMExtraBody : null;
1448
+ this.MaxCallDurationMs = 'MaxCallDurationMs' in params ? params.MaxCallDurationMs : null;
1449
+ this.MaxRingTimeoutSecond = 'MaxRingTimeoutSecond' in params ? params.MaxRingTimeoutSecond : null;
1390
1450
 
1391
1451
  }
1392
1452
  }