tencentcloud-sdk-nodejs-trtc 4.1.9 → 4.1.18
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
|
@@ -210,6 +210,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
210
210
|
- 拉取特定用户的流。
|
|
211
211
|
|
|
212
212
|
服务端通过TRTC的自定义消息实时下发字幕以及转录消息,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
**注意:**
|
|
216
|
+
TranscriptionMode为0时,需要保证一个房间内只发起一个任务,如果发起多个任务,则机器人之间会相互订阅,除非主动停止任务,否则只有10小时后任务才会超时退出,这种情况下建议填写SessionId,保证后续重复发起的任务失败。
|
|
213
217
|
*/
|
|
214
218
|
StartAITranscription(req: StartAITranscriptionRequest, cb?: (error: string, rep: StartAITranscriptionResponse) => void): Promise<StartAITranscriptionResponse>;
|
|
215
219
|
/**
|
|
@@ -284,6 +284,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
284
284
|
- 拉取特定用户的流。
|
|
285
285
|
|
|
286
286
|
服务端通过TRTC的自定义消息实时下发字幕以及转录消息,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
**注意:**
|
|
290
|
+
TranscriptionMode为0时,需要保证一个房间内只发起一个任务,如果发起多个任务,则机器人之间会相互订阅,除非主动停止任务,否则只有10小时后任务才会超时退出,这种情况下建议填写SessionId,保证后续重复发起的任务失败。
|
|
287
291
|
*/
|
|
288
292
|
async StartAITranscription(req, cb) {
|
|
289
293
|
return this.request("StartAITranscription", req, cb);
|
|
@@ -3521,12 +3521,9 @@ export interface StartAITranscriptionRequest {
|
|
|
3521
3521
|
*/
|
|
3522
3522
|
TranscriptionParams: TranscriptionParams;
|
|
3523
3523
|
/**
|
|
3524
|
-
* 调用方传入的唯一Id
|
|
3524
|
+
* 调用方传入的唯一Id,服务端用来任务去重,重复的任务会发起失败。服务端固定使用SdkAppId+RoomId+RoomIdType+RobotUserId来去重,如果传入了SessionId,也会使用SessionId去重。
|
|
3525
3525
|
注意:
|
|
3526
|
-
|
|
3527
|
-
如果不传该参数,服务端的去重策略如下:
|
|
3528
|
-
- 如果TranscriptionMode字段是0,则一个房间只能开启一个任务
|
|
3529
|
-
- 如果TranscriptionMode字段是1,则一个TargetUserId只能开启一个任务
|
|
3526
|
+
TranscriptionMode为0时,需要保证一个房间内只发起一个任务,如果发起多个任务,则机器人之间会相互订阅,除非主动停止任务,否则只有10小时后任务才会超时退出,这种情况下建议填写SessionId,保证后续重复发起的任务失败。
|
|
3530
3527
|
*/
|
|
3531
3528
|
SessionId?: string;
|
|
3532
3529
|
/**
|