livekit-client 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/livekit-client.esm.mjs +159 -7
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +2 -1
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts +5 -2
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/events.d.ts +20 -1
- package/dist/src/room/events.d.ts.map +1 -1
- package/dist/src/room/participant/Participant.d.ts +2 -1
- package/dist/src/room/participant/Participant.d.ts.map +1 -1
- package/dist/src/room/track/RemoteTrack.d.ts +1 -0
- package/dist/src/room/track/RemoteTrack.d.ts.map +1 -1
- package/dist/src/room/track/Track.d.ts +4 -0
- package/dist/src/room/track/Track.d.ts.map +1 -1
- package/dist/src/room/track/TrackPublication.d.ts +3 -1
- package/dist/src/room/track/TrackPublication.d.ts.map +1 -1
- package/dist/src/room/types.d.ts +8 -0
- package/dist/src/room/types.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts +3 -1
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/ts4.2/src/index.d.ts +1 -1
- package/dist/ts4.2/src/room/RTCEngine.d.ts +2 -1
- package/dist/ts4.2/src/room/Room.d.ts +5 -2
- package/dist/ts4.2/src/room/events.d.ts +20 -1
- package/dist/ts4.2/src/room/participant/Participant.d.ts +2 -1
- package/dist/ts4.2/src/room/track/RemoteTrack.d.ts +1 -0
- package/dist/ts4.2/src/room/track/Track.d.ts +4 -0
- package/dist/ts4.2/src/room/track/TrackPublication.d.ts +3 -1
- package/dist/ts4.2/src/room/types.d.ts +8 -0
- package/dist/ts4.2/src/room/utils.d.ts +3 -1
- package/package.json +8 -8
- package/src/index.ts +1 -1
- package/src/room/RTCEngine.ts +4 -0
- package/src/room/Room.ts +27 -1
- package/src/room/events.ts +23 -0
- package/src/room/participant/Participant.ts +5 -1
- package/src/room/track/RemoteTrack.ts +13 -0
- package/src/room/track/Track.ts +9 -0
- package/src/room/track/TrackPublication.ts +3 -1
- package/src/room/types.ts +9 -0
- package/src/room/utils.ts +17 -2
package/dist/src/index.d.ts
CHANGED
@@ -33,7 +33,7 @@ export { facingModeFromDeviceLabel, facingModeFromLocalTrack } from './room/trac
|
|
33
33
|
export * from './room/track/options';
|
34
34
|
export * from './room/track/processor/types';
|
35
35
|
export * from './room/track/types';
|
36
|
-
export type { DataPublishOptions, SimulationScenario } from './room/types';
|
36
|
+
export type { DataPublishOptions, SimulationScenario, TranscriptionSegment } from './room/types';
|
37
37
|
export * from './version';
|
38
38
|
export { ConnectionQuality, ConnectionState, CriticalTimers, DataPacket_Kind, DefaultReconnectPolicy, DisconnectReason, LocalAudioTrack, LocalParticipant, LocalTrack, LocalTrackPublication, LocalVideoTrack, LogLevel, LoggerNames, Participant, RemoteAudioTrack, RemoteParticipant, RemoteTrack, RemoteTrackPublication, RemoteVideoTrack, Room, SubscriptionError, TrackPublication, createAudioAnalyser, getBrowser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, getLogger, isBrowserSupported, setLogExtension, setLogLevel, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9, Mutex, };
|
39
39
|
export type { AudioAnalyserOptions, ElementInfo, LiveKitReactNativeInfo, ParticipantTrackPermission, };
|
package/dist/src/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1F,OAAO,sBAAsB,MAAM,+BAA+B,CAAC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sBAAsB,EACtB,gBAAgB,EAChB,WAAW,EACX,KAAK,GACN,CAAC;AACF,YAAY,EACV,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,GAC3B,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type AddTrackRequest, type ConnectionQualityUpdate, DataPacket, DataPacket_Kind, DisconnectReason, type JoinResponse, ParticipantInfo, Room as RoomModel, SpeakerInfo, type StreamStateUpdate, SubscribedQualityUpdate, type SubscriptionPermissionUpdate, type SubscriptionResponse, TrackInfo, TrackUnpublishedResponse, UserPacket } from '@livekit/protocol';
|
1
|
+
import { type AddTrackRequest, type ConnectionQualityUpdate, DataPacket, DataPacket_Kind, DisconnectReason, type JoinResponse, ParticipantInfo, Room as RoomModel, SpeakerInfo, type StreamStateUpdate, SubscribedQualityUpdate, type SubscriptionPermissionUpdate, type SubscriptionResponse, TrackInfo, TrackUnpublishedResponse, Transcription, UserPacket } from '@livekit/protocol';
|
2
2
|
import type TypedEventEmitter from 'typed-emitter';
|
3
3
|
import type { SignalOptions } from '../api/SignalClient';
|
4
4
|
import { SignalClient } from '../api/SignalClient';
|
@@ -138,6 +138,7 @@ export type EngineEventCallbacks = {
|
|
138
138
|
mediaTrackAdded: (track: MediaStreamTrack, streams: MediaStream, receiver?: RTCRtpReceiver) => void;
|
139
139
|
activeSpeakersUpdate: (speakers: Array<SpeakerInfo>) => void;
|
140
140
|
dataPacketReceived: (userPacket: UserPacket, kind: DataPacket_Kind) => void;
|
141
|
+
transcriptionReceived: (transcription: Transcription) => void;
|
141
142
|
transportsCreated: (publisher: PCTransport, subscriber: PCTransport) => void;
|
142
143
|
/** @internal */
|
143
144
|
trackSenderAdded: (track: Track, sender: RTCRtpSender) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RTCEngine.d.ts","sourceRoot":"","sources":["../../../src/room/RTCEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAGpB,KAAK,uB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c,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IACzD,kBAAkB,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACxD,iBAAiB,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACxD,4BAA4B,EAAE,CAAC,MAAM,EAAE,4BAA4B,KAAK,IAAI,CAAC;IAC7E,uBAAuB,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACnE,qBAAqB,EAAE,CAAC,mBAAmB,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC/E,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
|
package/dist/src/room/Room.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DataPacket_Kind, DisconnectReason, ParticipantPermission, SubscriptionError } from '@livekit/protocol';
|
1
|
+
import { DataPacket_Kind, DisconnectReason, ParticipantPermission, SubscriptionError, TranscriptionSegment as TranscriptionSegmentModel } from '@livekit/protocol';
|
2
2
|
import type TypedEmitter from 'typed-emitter';
|
3
3
|
import 'webrtc-adapter';
|
4
4
|
import type { InternalRoomOptions, RoomConnectOptions, RoomOptions } from '../options';
|
@@ -12,7 +12,7 @@ import type RemoteTrack from './track/RemoteTrack';
|
|
12
12
|
import RemoteTrackPublication from './track/RemoteTrackPublication';
|
13
13
|
import { Track } from './track/Track';
|
14
14
|
import type { TrackPublication } from './track/TrackPublication';
|
15
|
-
import type { SimulationOptions, SimulationScenario } from './types';
|
15
|
+
import type { SimulationOptions, SimulationScenario, TranscriptionSegment } from './types';
|
16
16
|
export declare enum ConnectionState {
|
17
17
|
Disconnected = "disconnected",
|
18
18
|
Connecting = "connecting",
|
@@ -175,6 +175,8 @@ declare class Room extends Room_base {
|
|
175
175
|
private handleSubscriptionPermissionUpdate;
|
176
176
|
private handleSubscriptionError;
|
177
177
|
private handleDataPacket;
|
178
|
+
bufferedSegments: Map<string, TranscriptionSegmentModel>;
|
179
|
+
private handleTranscription;
|
178
180
|
private handleAudioPlaybackStarted;
|
179
181
|
private handleAudioPlaybackFailed;
|
180
182
|
private handleVideoPlaybackStarted;
|
@@ -241,6 +243,7 @@ export type RoomEventCallbacks = {
|
|
241
243
|
activeSpeakersChanged: (speakers: Array<Participant>) => void;
|
242
244
|
roomMetadataChanged: (metadata: string) => void;
|
243
245
|
dataReceived: (payload: Uint8Array, participant?: RemoteParticipant, kind?: DataPacket_Kind, topic?: string) => void;
|
246
|
+
transcriptionReceived: (transcription: TranscriptionSegment[], participant?: Participant, publication?: TrackPublication) => void;
|
244
247
|
connectionQualityChanged: (quality: ConnectionQuality, participant: Participant) => void;
|
245
248
|
mediaDevicesError: (error: Error) => void;
|
246
249
|
trackStreamStateChanged: (publication: RemoteTrackPublication, streamState: Track.StreamState, participant: RemoteParticipant) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,gBAAgB,EAKhB,qBAAqB,EAMrB,iBAAiB,
|
1
|
+
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,gBAAgB,EAKhB,qBAAqB,EAMrB,iBAAiB,EAOjB,oBAAoB,IAAI,yBAAyB,EAGlD,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,SAAS,MAAM,aAAa,CAAC;AAWpC,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,WAA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B,EAC3C,WAAW,EAAE,iBAAiB,KAC3B,IAAI,CAAC;IACV,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,sBAAsB,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,kCAAkC,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5F,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACvE,mBAAmB,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACxE,CAAC"}
|
@@ -173,6 +173,11 @@ export declare enum RoomEvent {
|
|
173
173
|
* args: (payload: Uint8Array, participant: [[Participant]], kind: [[DataPacket_Kind]], topic?: string)
|
174
174
|
*/
|
175
175
|
DataReceived = "dataReceived",
|
176
|
+
/**
|
177
|
+
* Transcription received from a participant's track.
|
178
|
+
* @beta
|
179
|
+
*/
|
180
|
+
TranscriptionReceived = "transcriptionReceived",
|
176
181
|
/**
|
177
182
|
* Connection quality was changed for a Participant. It'll receive updates
|
178
183
|
* from the local participant, as well as any [[RemoteParticipant]]s that we are
|
@@ -353,6 +358,11 @@ export declare enum ParticipantEvent {
|
|
353
358
|
* args: (payload: Uint8Array, kind: [[DataPacket_Kind]])
|
354
359
|
*/
|
355
360
|
DataReceived = "dataReceived",
|
361
|
+
/**
|
362
|
+
* Transcription received from this participant as data source.
|
363
|
+
* @beta
|
364
|
+
*/
|
365
|
+
TranscriptionReceived = "transcriptionReceived",
|
356
366
|
/**
|
357
367
|
* Has speaking status changed for the current participant
|
358
368
|
*
|
@@ -419,6 +429,7 @@ export declare enum EngineEvent {
|
|
419
429
|
MediaTrackAdded = "mediaTrackAdded",
|
420
430
|
ActiveSpeakersUpdate = "activeSpeakersUpdate",
|
421
431
|
DataPacketReceived = "dataPacketReceived",
|
432
|
+
TranscriptionReceived = "transcriptionReceived",
|
422
433
|
RTPVideoMapUpdate = "rtpVideoMapUpdate",
|
423
434
|
DCBufferStatusChanged = "dcBufferStatusChanged",
|
424
435
|
ParticipantUpdate = "participantUpdate",
|
@@ -499,6 +510,14 @@ export declare enum TrackEvent {
|
|
499
510
|
/**
|
500
511
|
* @internal
|
501
512
|
*/
|
502
|
-
AudioTrackFeatureUpdate = "audioTrackFeatureUpdate"
|
513
|
+
AudioTrackFeatureUpdate = "audioTrackFeatureUpdate",
|
514
|
+
/**
|
515
|
+
* @beta
|
516
|
+
*/
|
517
|
+
TranscriptionReceived = "transcriptionReceived",
|
518
|
+
/**
|
519
|
+
* @experimental
|
520
|
+
*/
|
521
|
+
TimeSyncUpdate = "timeSyncUpdate"
|
503
522
|
}
|
504
523
|
//# sourceMappingURL=events.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/room/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oBAAY,SAAS;IACnB;;OAEG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;;;;;;;;;OAUG;IACH,YAAY,iBAAiB;IAE7B;;;;OAIG;IACH,sBAAsB,2BAA2B;IAEjD;;OAEG;IACH,mBAAmB,wBAAwB;IAE3C;;;;;;OAMG;IACH,oBAAoB,yBAAyB;IAE7C;;;;;OAKG;IACH,uBAAuB,4BAA4B;IAEnD;;;;;;;;OAQG;IACH,cAAc,mBAAmB;IAEjC;;;;;OAKG;IACH,eAAe,oBAAoB;IAEnC;;;;OAIG;IACH,uBAA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ACpB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB;;OAEG;IACH,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,gBAAgB;IAChB,cAAc,mBAAmB;IACjC,gBAAgB;IAChB,kBAAkB,uBAAuB;IACzC,gBAAgB;IAChB,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,iBAAiB,sBAAsB;IACvC,gBAAgB;IAChB,sBAAsB,2BAA2B;IACjD,gBAAgB;IAChB,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,mBAAmB,wBAAwB;IAC3C,gBAAgB;IAChB,eAAe,oBAAoB;IACnC,gBAAgB;IAChB,eAAe,oBAAoB;IACnC;;;OAGG;IACH,cAAc,mBAAmB;IACjC;;;OAGG;IACH,eAAe,oBAAoB;IACnC;;;OAGG;IACH,6BAA6B,kCAAkC;IAC/D;;OAEG;IACH,yBAAyB,8BAA8B;IACvD;;OAEG;IACH,kBAAkB,uBAAuB;IACzC;;OAEG;IACH,oBAAoB,yBAAyB;IAE7C;;OAEG;IACH,uBAAuB,4BAA4B;
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/room/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oBAAY,SAAS;IACnB;;OAEG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;;;;;;;;;OAUG;IACH,YAAY,iBAAiB;IAE7B;;;;OAIG;IACH,sBAAsB,2BAA2B;IAEjD;;OAEG;IACH,mBAAmB,wBAAwB;IAE3C;;;;;;OAMG;IACH,oBAAoB,yBAAyB;IAE7C;;;;;OAKG;IACH,uBAAuB,4BAA4B;IAEnD;;;;;;;;OAQG;IACH,c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zC,uBAAuB,4BAA4B;IACnD,iBAAiB,sBAAsB;IACvC,4BAA4B,iCAAiC;IAC7D,UAAU,eAAe;IACzB,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;IAC/C,OAAO,YAAY;CACpB;AAED,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB;;OAEG;IACH,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,gBAAgB;IAChB,cAAc,mBAAmB;IACjC,gBAAgB;IAChB,kBAAkB,uBAAuB;IACzC,gBAAgB;IAChB,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,iBAAiB,sBAAsB;IACvC,gBAAgB;IAChB,sBAAsB,2BAA2B;IACjD,gBAAgB;IAChB,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,mBAAmB,wBAAwB;IAC3C,gBAAgB;IAChB,eAAe,oBAAoB;IACnC,gBAAgB;IAChB,eAAe,oBAAoB;IACnC;;;OAGG;IACH,cAAc,mBAAmB;IACjC;;;OAGG;IACH,eAAe,oBAAoB;IACnC;;;OAGG;IACH,6BAA6B,kCAAkC;IAC/D;;OAEG;IACH,yBAAyB,8BAA8B;IACvD;;OAEG;IACH,kBAAkB,uBAAuB;IACzC;;OAEG;IACH,oBAAoB,yBAAyB;IAE7C;;OAEG;IACH,uBAAuB,4BAA4B;IAEnD;;OAEG;IACH,qBAAqB,0BAA0B;IAE/C;;OAEG;IACH,cAAc,mBAAmB;CAClC"}
|
@@ -6,7 +6,7 @@ import type RemoteTrack from '../track/RemoteTrack';
|
|
6
6
|
import type RemoteTrackPublication from '../track/RemoteTrackPublication';
|
7
7
|
import { Track } from '../track/Track';
|
8
8
|
import type { TrackPublication } from '../track/TrackPublication';
|
9
|
-
import type { LoggerOptions } from '../types';
|
9
|
+
import type { LoggerOptions, TranscriptionSegment } from '../types';
|
10
10
|
export declare enum ConnectionQuality {
|
11
11
|
Excellent = "excellent",
|
12
12
|
Good = "good",
|
@@ -99,6 +99,7 @@ export type ParticipantEventCallbacks = {
|
|
99
99
|
participantMetadataChanged: (prevMetadata: string | undefined, participant?: any) => void;
|
100
100
|
participantNameChanged: (name: string) => void;
|
101
101
|
dataReceived: (payload: Uint8Array, kind: DataPacket_Kind) => void;
|
102
|
+
transcriptionReceived: (transcription: TranscriptionSegment[], publication?: TrackPublication) => void;
|
102
103
|
isSpeakingChanged: (speaking: boolean) => void;
|
103
104
|
connectionQualityChanged: (connectionQuality: ConnectionQuality) => void;
|
104
105
|
trackStreamStateChanged: (publication: RemoteTrackPublication, streamState: Track.StreamState) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,iBAAiB,IAAI,YAAY,EACjC,iBAAiB,EAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAY,EAAe,gBAAgB,EAAa,MAAM,cAAc,CAAC;AAG7E,OAAO,KAAK,qBAAqB,MAAM,gCAAgC,CAAC;AAExE,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,sBAAsB,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf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iB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,wBAAwB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzE,uBAAuB,EAAE,CACvB,WAAW,EAAE,sBAAsB,EACnC,WAAW,EAAE,KAAK,CAAC,WAAW,KAC3B,IAAI,CAAC;IACV,kCAAkC,EAAE,CAClC,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,KACtC,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1C,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,6BAA6B,EAAE,CAAC,eAAe,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjF,8BAA8B,EAAE,CAC9B,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,KACxC,IAAI,CAAC;CACX,CAAC"}
|
@@ -19,5 +19,6 @@ export default abstract class RemoteTrack<TrackKind extends Track.Kind = Track.K
|
|
19
19
|
getRTCStatsReport(): Promise<RTCStatsReport | undefined>;
|
20
20
|
startMonitor(): void;
|
21
21
|
protected abstract monitorReceiver(): void;
|
22
|
+
registerTimeSyncUpdate(): void;
|
22
23
|
}
|
23
24
|
//# sourceMappingURL=RemoteTrack.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteTrack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,WAAW,CACvC,SAAS,SAAS,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CACzC,SAAQ,KAAK,CAAC,SAAS,CAAC;IACx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-28,11 +28,14 @@ export declare abstract class Track<TrackKind extends Track.Kind = Track.Kind> e
|
|
28
28
|
* has been paused by congestion controller
|
29
29
|
*/
|
30
30
|
streamState: Track.StreamState;
|
31
|
+
/** @internal */
|
32
|
+
rtpTimestamp: number | undefined;
|
31
33
|
protected _mediaStreamTrack: MediaStreamTrack;
|
32
34
|
protected _mediaStreamID: string;
|
33
35
|
protected isInBackground: boolean;
|
34
36
|
private backgroundTimeout;
|
35
37
|
private loggerContextCb;
|
38
|
+
protected timeSyncHandle: number | undefined;
|
36
39
|
protected _currentBitrate: number;
|
37
40
|
protected monitorInterval?: ReturnType<typeof setInterval>;
|
38
41
|
protected log: StructuredLogger;
|
@@ -137,6 +140,7 @@ export type TrackEventCallbacks = {
|
|
137
140
|
upstreamResumed: (track: any) => void;
|
138
141
|
trackProcessorUpdate: (processor?: TrackProcessor<Track.Kind, any>) => void;
|
139
142
|
audioTrackFeatureUpdate: (track: any, feature: AudioTrackFeature, enabled: boolean) => void;
|
143
|
+
timeSyncUpdate: (timestamp: number) => void;
|
140
144
|
};
|
141
145
|
export {};
|
142
146
|
//# sourceMappingURL=Track.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Track.d.ts","sourceRoot":"","sources":["../../../../src/room/track/Track.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,WAAW,IAAI,gBAAgB,EAC/B,WAAW,EACX,SAAS,EACV,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAY,EAAe,gBAAgB,EAAa,MAAM,cAAc,CAAC;AAE7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AASxD,oBAAY,YAAY;IACtB,GAAG,IAAmB;IACtB,MAAM,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,7 +1,7 @@
|
|
1
1
|
import { Encryption_Type } from '@livekit/protocol';
|
2
2
|
import type { SubscriptionError, TrackInfo, UpdateSubscription, UpdateTrackSettings } from '@livekit/protocol';
|
3
3
|
import type TypedEventEmitter from 'typed-emitter';
|
4
|
-
import type { LoggerOptions } from '../types';
|
4
|
+
import type { LoggerOptions, TranscriptionSegment } from '../types';
|
5
5
|
import LocalAudioTrack from './LocalAudioTrack';
|
6
6
|
import LocalVideoTrack from './LocalVideoTrack';
|
7
7
|
import RemoteAudioTrack from './RemoteAudioTrack';
|
@@ -72,6 +72,8 @@ export type PublicationEventCallbacks = {
|
|
72
72
|
unsubscribed: (track: RemoteTrack) => void;
|
73
73
|
subscriptionStatusChanged: (status: TrackPublication.SubscriptionStatus, prevStatus: TrackPublication.SubscriptionStatus) => void;
|
74
74
|
subscriptionFailed: (error: SubscriptionError) => void;
|
75
|
+
transcriptionReceived: (transcription: TranscriptionSegment[]) => void;
|
76
|
+
timeSyncUpdate: (timestamp: number) => void;
|
75
77
|
};
|
76
78
|
export {};
|
77
79
|
//# sourceMappingURL=TrackPublication.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TrackPublication.d.ts","sourceRoot":"","sources":["../../../../src/room/track/TrackPublication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAGnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"TrackPublication.d.ts","sourceRoot":"","sources":["../../../../src/room/track/TrackPublication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EACV,iBAAiB,EACjB,SAA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AAE,gBAAgB,CAAC,kBAAkB,KAC5C,IAAI,CAAC;IACV,kBAAkB,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACvD,qBAAqB,EAAE,CAAC,aAAa,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAC;IACvE,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC"}
|
package/dist/src/room/types.d.ts
CHANGED
@@ -35,4 +35,12 @@ export type LoggerOptions = {
|
|
35
35
|
loggerName?: string;
|
36
36
|
loggerContextCb?: () => Record<string, unknown>;
|
37
37
|
};
|
38
|
+
export interface TranscriptionSegment {
|
39
|
+
id: string;
|
40
|
+
text: string;
|
41
|
+
language: string;
|
42
|
+
startTime: number;
|
43
|
+
endTime: number;
|
44
|
+
final: boolean;
|
45
|
+
}
|
38
46
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/room/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,YAAY,CAAC,EAAE;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CA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C,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACrE,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,kBAAkB,GAClB,SAAS,GACT,cAAc,GACd,cAAc,GACd,WAAW,GACX,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,gBAAgB,GAIhB,sBAAsB,GACtB,6BAA6B,GAC7B,yCAAyC,CAAC;AAE9C,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CAChB"}
|
package/dist/src/room/utils.d.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
import { ClientInfo } from '@livekit/protocol';
|
1
|
+
import { ClientInfo, Transcription as TranscriptionModel } from '@livekit/protocol';
|
2
2
|
import type LocalAudioTrack from './track/LocalAudioTrack';
|
3
3
|
import type RemoteAudioTrack from './track/RemoteAudioTrack';
|
4
4
|
import { VideoCodec } from './track/options';
|
5
|
+
import type { TranscriptionSegment } from './types';
|
5
6
|
export declare const ddExtensionURI = "https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension";
|
6
7
|
export declare function unpackStreamId(packed: string): string[];
|
7
8
|
export declare function sleep(duration: number): Promise<void>;
|
@@ -93,4 +94,5 @@ export declare function isVideoCodec(maybeCodec: string): maybeCodec is VideoCod
|
|
93
94
|
export declare function unwrapConstraint(constraint: ConstrainDOMString): string;
|
94
95
|
export declare function toWebsocketUrl(url: string): string;
|
95
96
|
export declare function toHttpUrl(url: string): string;
|
97
|
+
export declare function extractTranscriptionSegments(transcription: TranscriptionModel): TranscriptionSegment[];
|
96
98
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,aAAa,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIpG,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAe,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EAA0B,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG5E,eAAO,MAAM,cAAc,4FACgE,CAAC;AAE5F,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAMvD;AAED,wBAAsB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE3D;AAED,gBAAgB;AAChB,wBAAgB,mBAAmB,YAElC;AAED,gBAAgB;AAChB,wBAAgB,gBAAgB,YAE/B;AAED,wBAAgB,sBAAsB,YAErC;AAED,wBAAgB,gBAAgB,YAE/B;AAED,wBAAgB,WAAW,IAAI,OAAO,CAmBrC;AAED,wBAAgB,WAAW,IAAI,OAAO,CA2BrC;AAED,wBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAElD;AAED,wBAAgB,iBAAiB,CAAC,GAAG,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAQjE;AAED,wBAA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
|
export * from './room/track/options';
|
34
34
|
export * from './room/track/processor/types';
|
35
35
|
export * from './room/track/types';
|
36
|
-
export type { DataPublishOptions, SimulationScenario } from './room/types';
|
36
|
+
export type { DataPublishOptions, SimulationScenario, TranscriptionSegment } from './room/types';
|
37
37
|
export * from './version';
|
38
38
|
export { ConnectionQuality, ConnectionState, CriticalTimers, DataPacket_Kind, DefaultReconnectPolicy, DisconnectReason, LocalAudioTrack, LocalParticipant, LocalTrack, LocalTrackPublication, LocalVideoTrack, LogLevel, LoggerNames, Participant, RemoteAudioTrack, RemoteParticipant, RemoteTrack, RemoteTrackPublication, RemoteVideoTrack, Room, SubscriptionError, TrackPublication, createAudioAnalyser, getBrowser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, getLogger, isBrowserSupported, setLogExtension, setLogLevel, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9, Mutex, };
|
39
39
|
export type { AudioAnalyserOptions, ElementInfo, LiveKitReactNativeInfo, ParticipantTrackPermission, };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { AddTrackRequest, ConnectionQualityUpdate, JoinResponse, StreamStateUpdate, SubscriptionPermissionUpdate, SubscriptionResponse } from '@livekit/protocol';
|
2
|
-
import { DataPacket, DataPacket_Kind, DisconnectReason, ParticipantInfo, Room as RoomModel, SpeakerInfo, SubscribedQualityUpdate, TrackInfo, TrackUnpublishedResponse, UserPacket } from '@livekit/protocol';
|
2
|
+
import { DataPacket, DataPacket_Kind, DisconnectReason, ParticipantInfo, Room as RoomModel, SpeakerInfo, SubscribedQualityUpdate, TrackInfo, TrackUnpublishedResponse, Transcription, UserPacket } from '@livekit/protocol';
|
3
3
|
import type TypedEventEmitter from 'typed-emitter';
|
4
4
|
import type { SignalOptions } from '../api/SignalClient';
|
5
5
|
import { SignalClient } from '../api/SignalClient';
|
@@ -139,6 +139,7 @@ export type EngineEventCallbacks = {
|
|
139
139
|
mediaTrackAdded: (track: MediaStreamTrack, streams: MediaStream, receiver?: RTCRtpReceiver) => void;
|
140
140
|
activeSpeakersUpdate: (speakers: Array<SpeakerInfo>) => void;
|
141
141
|
dataPacketReceived: (userPacket: UserPacket, kind: DataPacket_Kind) => void;
|
142
|
+
transcriptionReceived: (transcription: Transcription) => void;
|
142
143
|
transportsCreated: (publisher: PCTransport, subscriber: PCTransport) => void;
|
143
144
|
/** @internal */
|
144
145
|
trackSenderAdded: (track: Track, sender: RTCRtpSender) => void;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DataPacket_Kind, DisconnectReason, ParticipantPermission, SubscriptionError } from '@livekit/protocol';
|
1
|
+
import { DataPacket_Kind, DisconnectReason, ParticipantPermission, SubscriptionError, TranscriptionSegment as TranscriptionSegmentModel } from '@livekit/protocol';
|
2
2
|
import type TypedEmitter from 'typed-emitter';
|
3
3
|
import 'webrtc-adapter';
|
4
4
|
import type { InternalRoomOptions, RoomConnectOptions, RoomOptions } from '../options';
|
@@ -12,7 +12,7 @@ import type RemoteTrack from './track/RemoteTrack';
|
|
12
12
|
import RemoteTrackPublication from './track/RemoteTrackPublication';
|
13
13
|
import { Track } from './track/Track';
|
14
14
|
import type { TrackPublication } from './track/TrackPublication';
|
15
|
-
import type { SimulationOptions, SimulationScenario } from './types';
|
15
|
+
import type { SimulationOptions, SimulationScenario, TranscriptionSegment } from './types';
|
16
16
|
export declare enum ConnectionState {
|
17
17
|
Disconnected = "disconnected",
|
18
18
|
Connecting = "connecting",
|
@@ -175,6 +175,8 @@ declare class Room extends Room_base {
|
|
175
175
|
private handleSubscriptionPermissionUpdate;
|
176
176
|
private handleSubscriptionError;
|
177
177
|
private handleDataPacket;
|
178
|
+
bufferedSegments: Map<string, TranscriptionSegmentModel>;
|
179
|
+
private handleTranscription;
|
178
180
|
private handleAudioPlaybackStarted;
|
179
181
|
private handleAudioPlaybackFailed;
|
180
182
|
private handleVideoPlaybackStarted;
|
@@ -241,6 +243,7 @@ export type RoomEventCallbacks = {
|
|
241
243
|
activeSpeakersChanged: (speakers: Array<Participant>) => void;
|
242
244
|
roomMetadataChanged: (metadata: string) => void;
|
243
245
|
dataReceived: (payload: Uint8Array, participant?: RemoteParticipant, kind?: DataPacket_Kind, topic?: string) => void;
|
246
|
+
transcriptionReceived: (transcription: TranscriptionSegment[], participant?: Participant, publication?: TrackPublication) => void;
|
244
247
|
connectionQualityChanged: (quality: ConnectionQuality, participant: Participant) => void;
|
245
248
|
mediaDevicesError: (error: Error) => void;
|
246
249
|
trackStreamStateChanged: (publication: RemoteTrackPublication, streamState: Track.StreamState, participant: RemoteParticipant) => void;
|
@@ -173,6 +173,11 @@ export declare enum RoomEvent {
|
|
173
173
|
* args: (payload: Uint8Array, participant: [[Participant]], kind: [[DataPacket_Kind]], topic?: string)
|
174
174
|
*/
|
175
175
|
DataReceived = "dataReceived",
|
176
|
+
/**
|
177
|
+
* Transcription received from a participant's track.
|
178
|
+
* @beta
|
179
|
+
*/
|
180
|
+
TranscriptionReceived = "transcriptionReceived",
|
176
181
|
/**
|
177
182
|
* Connection quality was changed for a Participant. It'll receive updates
|
178
183
|
* from the local participant, as well as any [[RemoteParticipant]]s that we are
|
@@ -353,6 +358,11 @@ export declare enum ParticipantEvent {
|
|
353
358
|
* args: (payload: Uint8Array, kind: [[DataPacket_Kind]])
|
354
359
|
*/
|
355
360
|
DataReceived = "dataReceived",
|
361
|
+
/**
|
362
|
+
* Transcription received from this participant as data source.
|
363
|
+
* @beta
|
364
|
+
*/
|
365
|
+
TranscriptionReceived = "transcriptionReceived",
|
356
366
|
/**
|
357
367
|
* Has speaking status changed for the current participant
|
358
368
|
*
|
@@ -419,6 +429,7 @@ export declare enum EngineEvent {
|
|
419
429
|
MediaTrackAdded = "mediaTrackAdded",
|
420
430
|
ActiveSpeakersUpdate = "activeSpeakersUpdate",
|
421
431
|
DataPacketReceived = "dataPacketReceived",
|
432
|
+
TranscriptionReceived = "transcriptionReceived",
|
422
433
|
RTPVideoMapUpdate = "rtpVideoMapUpdate",
|
423
434
|
DCBufferStatusChanged = "dcBufferStatusChanged",
|
424
435
|
ParticipantUpdate = "participantUpdate",
|
@@ -499,6 +510,14 @@ export declare enum TrackEvent {
|
|
499
510
|
/**
|
500
511
|
* @internal
|
501
512
|
*/
|
502
|
-
AudioTrackFeatureUpdate = "audioTrackFeatureUpdate"
|
513
|
+
AudioTrackFeatureUpdate = "audioTrackFeatureUpdate",
|
514
|
+
/**
|
515
|
+
* @beta
|
516
|
+
*/
|
517
|
+
TranscriptionReceived = "transcriptionReceived",
|
518
|
+
/**
|
519
|
+
* @experimental
|
520
|
+
*/
|
521
|
+
TimeSyncUpdate = "timeSyncUpdate"
|
503
522
|
}
|
504
523
|
//# sourceMappingURL=events.d.ts.map
|
@@ -6,7 +6,7 @@ import type RemoteTrack from '../track/RemoteTrack';
|
|
6
6
|
import type RemoteTrackPublication from '../track/RemoteTrackPublication';
|
7
7
|
import { Track } from '../track/Track';
|
8
8
|
import type { TrackPublication } from '../track/TrackPublication';
|
9
|
-
import type { LoggerOptions } from '../types';
|
9
|
+
import type { LoggerOptions, TranscriptionSegment } from '../types';
|
10
10
|
export declare enum ConnectionQuality {
|
11
11
|
Excellent = "excellent",
|
12
12
|
Good = "good",
|
@@ -99,6 +99,7 @@ export type ParticipantEventCallbacks = {
|
|
99
99
|
participantMetadataChanged: (prevMetadata: string | undefined, participant?: any) => void;
|
100
100
|
participantNameChanged: (name: string) => void;
|
101
101
|
dataReceived: (payload: Uint8Array, kind: DataPacket_Kind) => void;
|
102
|
+
transcriptionReceived: (transcription: TranscriptionSegment[], publication?: TrackPublication) => void;
|
102
103
|
isSpeakingChanged: (speaking: boolean) => void;
|
103
104
|
connectionQualityChanged: (connectionQuality: ConnectionQuality) => void;
|
104
105
|
trackStreamStateChanged: (publication: RemoteTrackPublication, streamState: Track.StreamState) => void;
|
@@ -19,5 +19,6 @@ export default abstract class RemoteTrack<TrackKind extends Track.Kind = Track.K
|
|
19
19
|
getRTCStatsReport(): Promise<RTCStatsReport | undefined>;
|
20
20
|
startMonitor(): void;
|
21
21
|
protected abstract monitorReceiver(): void;
|
22
|
+
registerTimeSyncUpdate(): void;
|
22
23
|
}
|
23
24
|
//# sourceMappingURL=RemoteTrack.d.ts.map
|
@@ -28,11 +28,14 @@ export declare abstract class Track<TrackKind extends Track.Kind = Track.Kind> e
|
|
28
28
|
* has been paused by congestion controller
|
29
29
|
*/
|
30
30
|
streamState: Track.StreamState;
|
31
|
+
/** @internal */
|
32
|
+
rtpTimestamp: number | undefined;
|
31
33
|
protected _mediaStreamTrack: MediaStreamTrack;
|
32
34
|
protected _mediaStreamID: string;
|
33
35
|
protected isInBackground: boolean;
|
34
36
|
private backgroundTimeout;
|
35
37
|
private loggerContextCb;
|
38
|
+
protected timeSyncHandle: number | undefined;
|
36
39
|
protected _currentBitrate: number;
|
37
40
|
protected monitorInterval?: ReturnType<typeof setInterval>;
|
38
41
|
protected log: StructuredLogger;
|
@@ -137,6 +140,7 @@ export type TrackEventCallbacks = {
|
|
137
140
|
upstreamResumed: (track: any) => void;
|
138
141
|
trackProcessorUpdate: (processor?: TrackProcessor<Track.Kind, any>) => void;
|
139
142
|
audioTrackFeatureUpdate: (track: any, feature: AudioTrackFeature, enabled: boolean) => void;
|
143
|
+
timeSyncUpdate: (timestamp: number) => void;
|
140
144
|
};
|
141
145
|
export {};
|
142
146
|
//# sourceMappingURL=Track.d.ts.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Encryption_Type } from '@livekit/protocol';
|
2
2
|
import type { SubscriptionError, TrackInfo, UpdateSubscription, UpdateTrackSettings } from '@livekit/protocol';
|
3
3
|
import type TypedEventEmitter from 'typed-emitter';
|
4
|
-
import type { LoggerOptions } from '../types';
|
4
|
+
import type { LoggerOptions, TranscriptionSegment } from '../types';
|
5
5
|
import LocalAudioTrack from './LocalAudioTrack';
|
6
6
|
import LocalVideoTrack from './LocalVideoTrack';
|
7
7
|
import RemoteAudioTrack from './RemoteAudioTrack';
|
@@ -72,6 +72,8 @@ export type PublicationEventCallbacks = {
|
|
72
72
|
unsubscribed: (track: RemoteTrack) => void;
|
73
73
|
subscriptionStatusChanged: (status: TrackPublication.SubscriptionStatus, prevStatus: TrackPublication.SubscriptionStatus) => void;
|
74
74
|
subscriptionFailed: (error: SubscriptionError) => void;
|
75
|
+
transcriptionReceived: (transcription: TranscriptionSegment[]) => void;
|
76
|
+
timeSyncUpdate: (timestamp: number) => void;
|
75
77
|
};
|
76
78
|
export {};
|
77
79
|
//# sourceMappingURL=TrackPublication.d.ts.map
|
@@ -35,4 +35,12 @@ export type LoggerOptions = {
|
|
35
35
|
loggerName?: string;
|
36
36
|
loggerContextCb?: () => Record<string, unknown>;
|
37
37
|
};
|
38
|
+
export interface TranscriptionSegment {
|
39
|
+
id: string;
|
40
|
+
text: string;
|
41
|
+
language: string;
|
42
|
+
startTime: number;
|
43
|
+
endTime: number;
|
44
|
+
final: boolean;
|
45
|
+
}
|
38
46
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { ClientInfo } from '@livekit/protocol';
|
1
|
+
import { ClientInfo, Transcription as TranscriptionModel } from '@livekit/protocol';
|
2
2
|
import type LocalAudioTrack from './track/LocalAudioTrack';
|
3
3
|
import type RemoteAudioTrack from './track/RemoteAudioTrack';
|
4
4
|
import { VideoCodec } from './track/options';
|
5
|
+
import type { TranscriptionSegment } from './types';
|
5
6
|
export declare const ddExtensionURI = "https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension";
|
6
7
|
export declare function unpackStreamId(packed: string): string[];
|
7
8
|
export declare function sleep(duration: number): Promise<void>;
|
@@ -93,4 +94,5 @@ export declare function isVideoCodec(maybeCodec: string): maybeCodec is VideoCod
|
|
93
94
|
export declare function unwrapConstraint(constraint: ConstrainDOMString): string;
|
94
95
|
export declare function toWebsocketUrl(url: string): string;
|
95
96
|
export declare function toHttpUrl(url: string): string;
|
97
|
+
export declare function extractTranscriptionSegments(transcription: TranscriptionModel): TranscriptionSegment[];
|
96
98
|
//# sourceMappingURL=utils.d.ts.map
|