trtc-sdk-v5 5.14.2-beta.2 → 5.14.2-beta.3
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/assets/debug-dialog.js +1 -1
- package/index.d.ts +43 -0
- package/package.json +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/chorus/package.json +1 -1
- package/plugins/cross-room/package.json +1 -1
- package/plugins/custom-encryption/custom-encryption.esm.js +1 -1
- package/plugins/custom-encryption/custom-encryption.umd.js +1 -1
- package/plugins/custom-encryption/package.json +1 -1
- package/plugins/device-detector/package.json +1 -1
- package/plugins/{video-effect/face-detection → realtime-transcriber}/package.json +8 -8
- package/plugins/realtime-transcriber/realtime-transcriber.esm.d.ts +16 -0
- package/plugins/realtime-transcriber/realtime-transcriber.esm.js +1 -0
- package/plugins/realtime-transcriber/realtime-transcriber.umd.js +1 -0
- package/plugins/small-stream-auto-switcher/package.json +1 -1
- package/plugins/video-decoder/package.json +1 -1
- package/plugins/video-decoder/video-decoder.esm.js +1 -1
- package/plugins/video-decoder/video-decoder.umd.js +1 -1
- package/plugins/video-effect/basic-beauty/package.json +1 -1
- package/plugins/video-effect/beauty/package.json +1 -1
- package/plugins/video-effect/video-mixer/package.json +1 -1
- package/plugins/video-effect/virtual-background/package.json +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.esm.js +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.umd.js +1 -1
- package/plugins/video-effect/watermark/package.json +1 -1
- package/plugins/voice-changer/package.json +1 -1
- package/trtc.esm.js +29 -29
- package/trtc.js +1 -1
- package/plugins/video-effect/face-detection/face-detection.esm.d.ts +0 -13
- package/plugins/video-effect/face-detection/face-detection.esm.js +0 -1
- package/plugins/video-effect/face-detection/face-detection.umd.js +0 -1
package/index.d.ts
CHANGED
|
@@ -505,6 +505,25 @@ export declare interface PermissionOption {
|
|
|
505
505
|
types?: ('camera' | 'microphone')[];
|
|
506
506
|
}
|
|
507
507
|
|
|
508
|
+
export declare interface RealtimeTranscriberStateEvent {
|
|
509
|
+
state: 'started' | 'stopped';
|
|
510
|
+
roomId: string | number;
|
|
511
|
+
transcriberRobotId: string;
|
|
512
|
+
sourceLanguage?: string;
|
|
513
|
+
error?: number;
|
|
514
|
+
errorMessage?: string;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export declare interface RealtimeTranscriberMessageEvent {
|
|
518
|
+
segmentId: string;
|
|
519
|
+
roomId: string | number;
|
|
520
|
+
speakerUserId: string;
|
|
521
|
+
sourceText: string;
|
|
522
|
+
translationTexts?: Record<string, string>; // { 'en': 'hello', 'fr': 'bonjour' }
|
|
523
|
+
timestamp: number;
|
|
524
|
+
isCompleted: boolean;
|
|
525
|
+
}
|
|
526
|
+
|
|
508
527
|
export declare interface PermissionResult {
|
|
509
528
|
camera: PermissionState | null;
|
|
510
529
|
microphone: PermissionState | null;
|
|
@@ -1251,6 +1270,28 @@ export declare const TRTCEvent: {
|
|
|
1251
1270
|
* })
|
|
1252
1271
|
*/
|
|
1253
1272
|
readonly VIDEO_SIZE_CHANGED: 'video-size-changed';
|
|
1273
|
+
/**
|
|
1274
|
+
* @since v5.15.0
|
|
1275
|
+
* @description Realtime transcriber message
|
|
1276
|
+
* @default 'realtime-transcriber-message'
|
|
1277
|
+
* @memberof module:EVENT
|
|
1278
|
+
* @example
|
|
1279
|
+
* trtc.on(TRTC.EVENT.REALTIME_TRANSCRIBER_MESSAGE, event => {
|
|
1280
|
+
* // event.data: custom message data, type is ArrayBuffer.
|
|
1281
|
+
* })
|
|
1282
|
+
*/
|
|
1283
|
+
readonly REALTIME_TRANSCRIBER_MESSAGE: 'realtime-transcriber-message';
|
|
1284
|
+
/**
|
|
1285
|
+
* @since v5.15.0
|
|
1286
|
+
* @description Realtime transcriber state changed
|
|
1287
|
+
* @default 'realtime-transcriber-state-changed'
|
|
1288
|
+
* @memberof module:EVENT
|
|
1289
|
+
* @example
|
|
1290
|
+
* trtc.on(TRTC.EVENT.REALTIME_TRANSCRIBER_STATE_CHANGED, event => {
|
|
1291
|
+
* // event.state: transcriber state.
|
|
1292
|
+
* })
|
|
1293
|
+
*/
|
|
1294
|
+
readonly REALTIME_TRANSCRIBER_STATE_CHANGED: 'realtime-transcriber-state-changed';
|
|
1254
1295
|
};
|
|
1255
1296
|
export declare interface TRTCEventTypes {
|
|
1256
1297
|
[TRTCEvent.ERROR]: [RtcError];
|
|
@@ -1353,6 +1394,8 @@ export declare interface TRTCEventTypes {
|
|
|
1353
1394
|
width: number;
|
|
1354
1395
|
height: number;
|
|
1355
1396
|
}];
|
|
1397
|
+
[TRTCEvent.REALTIME_TRANSCRIBER_MESSAGE]: [RealtimeTranscriberMessageEvent];
|
|
1398
|
+
[TRTCEvent.REALTIME_TRANSCRIBER_STATE_CHANGED]: [RealtimeTranscriberStateEvent];
|
|
1356
1399
|
}
|
|
1357
1400
|
|
|
1358
1401
|
export declare interface CustomMessageData {
|
package/package.json
CHANGED