trtc-sdk-v5 5.14.2-beta.3 → 5.14.2-beta.4
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 +2 -2
- package/index.d.ts +0 -43
- 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/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/watermark/package.json +1 -1
- package/plugins/voice-changer/package.json +1 -1
- package/trtc.esm.js +30 -30
- package/trtc.js +1 -1
- package/plugins/realtime-transcriber/package.json +0 -29
- package/plugins/realtime-transcriber/realtime-transcriber.esm.d.ts +0 -16
- package/plugins/realtime-transcriber/realtime-transcriber.esm.js +0 -1
- package/plugins/realtime-transcriber/realtime-transcriber.umd.js +0 -1
package/index.d.ts
CHANGED
|
@@ -505,25 +505,6 @@ 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
|
-
|
|
527
508
|
export declare interface PermissionResult {
|
|
528
509
|
camera: PermissionState | null;
|
|
529
510
|
microphone: PermissionState | null;
|
|
@@ -1270,28 +1251,6 @@ export declare const TRTCEvent: {
|
|
|
1270
1251
|
* })
|
|
1271
1252
|
*/
|
|
1272
1253
|
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';
|
|
1295
1254
|
};
|
|
1296
1255
|
export declare interface TRTCEventTypes {
|
|
1297
1256
|
[TRTCEvent.ERROR]: [RtcError];
|
|
@@ -1394,8 +1353,6 @@ export declare interface TRTCEventTypes {
|
|
|
1394
1353
|
width: number;
|
|
1395
1354
|
height: number;
|
|
1396
1355
|
}];
|
|
1397
|
-
[TRTCEvent.REALTIME_TRANSCRIBER_MESSAGE]: [RealtimeTranscriberMessageEvent];
|
|
1398
|
-
[TRTCEvent.REALTIME_TRANSCRIBER_STATE_CHANGED]: [RealtimeTranscriberStateEvent];
|
|
1399
1356
|
}
|
|
1400
1357
|
|
|
1401
1358
|
export declare interface CustomMessageData {
|
package/package.json
CHANGED