@livekit/rtc-node 0.13.10 → 0.13.12
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/dist/audio_filter.cjs +48 -0
- package/dist/audio_filter.cjs.map +1 -0
- package/dist/audio_filter.d.cts +5 -0
- package/dist/audio_filter.d.ts +5 -0
- package/dist/audio_filter.d.ts.map +1 -0
- package/dist/audio_filter.js +24 -0
- package/dist/audio_filter.js.map +1 -0
- package/dist/audio_source.cjs +5 -1
- package/dist/audio_source.cjs.map +1 -1
- package/dist/audio_source.d.ts.map +1 -1
- package/dist/audio_source.js +5 -1
- package/dist/audio_source.js.map +1 -1
- package/dist/audio_stream.cjs +30 -41
- package/dist/audio_stream.cjs.map +1 -1
- package/dist/audio_stream.d.cts +18 -23
- package/dist/audio_stream.d.ts +18 -23
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +30 -41
- package/dist/audio_stream.js.map +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/proto/audio_frame_pb.cjs +312 -2
- package/dist/proto/audio_frame_pb.cjs.map +1 -1
- package/dist/proto/audio_frame_pb.d.cts +278 -1
- package/dist/proto/audio_frame_pb.d.ts +278 -1
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +301 -2
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/ffi_pb.cjs +12 -2
- package/dist/proto/ffi_pb.cjs.map +1 -1
- package/dist/proto/ffi_pb.d.cts +65 -1
- package/dist/proto/ffi_pb.d.ts +65 -1
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +13 -3
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/video_stream.cjs +20 -48
- package/dist/video_stream.cjs.map +1 -1
- package/dist/video_stream.d.cts +4 -19
- package/dist/video_stream.d.ts +4 -19
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +20 -48
- package/dist/video_stream.js.map +1 -1
- package/package.json +6 -6
- package/src/audio_filter.ts +27 -0
- package/src/audio_source.ts +7 -3
- package/src/audio_stream.ts +61 -49
- package/src/index.ts +2 -0
- package/src/proto/audio_frame_pb.ts +533 -0
- package/src/proto/ffi_pb.ts +75 -1
- package/src/version.ts +1 -1
- package/src/video_stream.ts +24 -60
package/dist/audio_stream.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/audio_stream.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport {
|
|
1
|
+
{"version":3,"sources":["../src/audio_stream.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { ReadableStream, type UnderlyingSource } from 'node:stream/web';\nimport { AudioFrame } from './audio_frame.js';\nimport type { FfiEvent } from './ffi_client.js';\nimport { FfiClient, FfiClientEvent, FfiHandle } from './ffi_client.js';\nimport type { NewAudioStreamResponse } from './proto/audio_frame_pb.js';\nimport { AudioStreamType, NewAudioStreamRequest } from './proto/audio_frame_pb.js';\nimport type { Track } from './track.js';\n\nexport interface AudioStreamOptions {\n noiseCancellation?: NoiseCancellationOptions;\n sampleRate?: number;\n numChannels?: number;\n}\n\nexport interface NoiseCancellationOptions {\n moduleId: string;\n options: Record<string, any>;\n}\n\nclass AudioStreamSource implements UnderlyingSource<AudioFrame> {\n private controller?: ReadableStreamDefaultController<AudioFrame>;\n private ffiHandle: FfiHandle;\n private sampleRate: number;\n private numChannels: number;\n private ncOptions?: NoiseCancellationOptions;\n\n constructor(\n track: Track,\n sampleRateOrOptions?: number | AudioStreamOptions,\n numChannels?: number,\n ) {\n if (sampleRateOrOptions !== undefined && typeof sampleRateOrOptions !== 'number') {\n this.sampleRate = sampleRateOrOptions.sampleRate ?? 48000;\n this.numChannels = sampleRateOrOptions.numChannels ?? 1;\n this.ncOptions = sampleRateOrOptions.noiseCancellation;\n } else {\n this.sampleRate = (sampleRateOrOptions as number) ?? 48000;\n this.numChannels = numChannels ?? 1;\n }\n\n const req = new NewAudioStreamRequest({\n type: AudioStreamType.AUDIO_STREAM_NATIVE,\n trackHandle: track.ffi_handle.handle,\n sampleRate: this.sampleRate,\n numChannels: this.numChannels,\n ...(this.ncOptions\n ? {\n audioFilterModuleId: this.ncOptions.moduleId,\n audioFilterOptions: JSON.stringify(this.ncOptions.options),\n }\n : {}),\n });\n\n const res = FfiClient.instance.request<NewAudioStreamResponse>({\n message: {\n case: 'newAudioStream',\n value: req,\n },\n });\n\n this.ffiHandle = new FfiHandle(res.stream!.handle!.id!);\n\n FfiClient.instance.on(FfiClientEvent.FfiEvent, this.onEvent);\n }\n\n private onEvent = (ev: FfiEvent) => {\n if (!this.controller) {\n throw new Error('Stream controller not initialized');\n }\n\n if (\n ev.message.case != 'audioStreamEvent' ||\n ev.message.value.streamHandle != this.ffiHandle.handle\n ) {\n return;\n }\n\n const streamEvent = ev.message.value.message;\n switch (streamEvent.case) {\n case 'frameReceived':\n const frame = AudioFrame.fromOwnedInfo(streamEvent.value.frame!);\n this.controller.enqueue(frame);\n break;\n case 'eos':\n FfiClient.instance.off(FfiClientEvent.FfiEvent, this.onEvent);\n this.controller.close();\n break;\n }\n };\n\n start(controller: ReadableStreamDefaultController<AudioFrame>) {\n this.controller = controller;\n }\n\n cancel() {\n FfiClient.instance.off(FfiClientEvent.FfiEvent, this.onEvent);\n this.ffiHandle.dispose();\n }\n}\n\nexport class AudioStream extends ReadableStream<AudioFrame> {\n constructor(track: Track);\n constructor(track: Track, sampleRate: number);\n constructor(track: Track, sampleRate: number, numChannels: number);\n constructor(track: Track, options: AudioStreamOptions);\n constructor(\n track: Track,\n sampleRateOrOptions?: number | AudioStreamOptions,\n numChannels?: number,\n ) {\n super(new AudioStreamSource(track, sampleRateOrOptions, numChannels));\n }\n}\n"],"mappings":"AAGA,SAAS,sBAA6C;AACtD,SAAS,kBAAkB;AAE3B,SAAS,WAAW,gBAAgB,iBAAiB;AAErD,SAAS,iBAAiB,6BAA6B;AAcvD,MAAM,kBAA0D;AAAA,EAO9D,YACE,OACA,qBACA,aACA;AAmCF,SAAQ,UAAU,CAAC,OAAiB;AAClC,UAAI,CAAC,KAAK,YAAY;AACpB,cAAM,IAAI,MAAM,mCAAmC;AAAA,MACrD;AAEA,UACE,GAAG,QAAQ,QAAQ,sBACnB,GAAG,QAAQ,MAAM,gBAAgB,KAAK,UAAU,QAChD;AACA;AAAA,MACF;AAEA,YAAM,cAAc,GAAG,QAAQ,MAAM;AACrC,cAAQ,YAAY,MAAM;AAAA,QACxB,KAAK;AACH,gBAAM,QAAQ,WAAW,cAAc,YAAY,MAAM,KAAM;AAC/D,eAAK,WAAW,QAAQ,KAAK;AAC7B;AAAA,QACF,KAAK;AACH,oBAAU,SAAS,IAAI,eAAe,UAAU,KAAK,OAAO;AAC5D,eAAK,WAAW,MAAM;AACtB;AAAA,MACJ;AAAA,IACF;AAzDE,QAAI,wBAAwB,UAAa,OAAO,wBAAwB,UAAU;AAChF,WAAK,aAAa,oBAAoB,cAAc;AACpD,WAAK,cAAc,oBAAoB,eAAe;AACtD,WAAK,YAAY,oBAAoB;AAAA,IACvC,OAAO;AACL,WAAK,aAAc,uBAAkC;AACrD,WAAK,cAAc,eAAe;AAAA,IACpC;AAEA,UAAM,MAAM,IAAI,sBAAsB;AAAA,MACpC,MAAM,gBAAgB;AAAA,MACtB,aAAa,MAAM,WAAW;AAAA,MAC9B,YAAY,KAAK;AAAA,MACjB,aAAa,KAAK;AAAA,MAClB,GAAI,KAAK,YACL;AAAA,QACE,qBAAqB,KAAK,UAAU;AAAA,QACpC,oBAAoB,KAAK,UAAU,KAAK,UAAU,OAAO;AAAA,MAC3D,IACA,CAAC;AAAA,IACP,CAAC;AAED,UAAM,MAAM,UAAU,SAAS,QAAgC;AAAA,MAC7D,SAAS;AAAA,QACP,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF,CAAC;AAED,SAAK,YAAY,IAAI,UAAU,IAAI,OAAQ,OAAQ,EAAG;AAEtD,cAAU,SAAS,GAAG,eAAe,UAAU,KAAK,OAAO;AAAA,EAC7D;AAAA,EA2BA,MAAM,YAAyD;AAC7D,SAAK,aAAa;AAAA,EACpB;AAAA,EAEA,SAAS;AACP,cAAU,SAAS,IAAI,eAAe,UAAU,KAAK,OAAO;AAC5D,SAAK,UAAU,QAAQ;AAAA,EACzB;AACF;AAEO,MAAM,oBAAoB,eAA2B;AAAA,EAK1D,YACE,OACA,qBACA,aACA;AACA,UAAM,IAAI,kBAAkB,OAAO,qBAAqB,WAAW,CAAC;AAAA,EACtE;AACF;","names":[]}
|
package/dist/index.cjs
CHANGED
|
@@ -19,6 +19,7 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
var index_exports = {};
|
|
21
21
|
__export(index_exports, {
|
|
22
|
+
AudioFilter: () => import_audio_filter.AudioFilter,
|
|
22
23
|
AudioFrame: () => import_audio_frame.AudioFrame,
|
|
23
24
|
AudioResampler: () => import_audio_resampler.AudioResampler,
|
|
24
25
|
AudioResamplerQuality: () => import_audio_resampler.AudioResamplerQuality,
|
|
@@ -70,6 +71,7 @@ var import_audio_frame = require("./audio_frame.cjs");
|
|
|
70
71
|
var import_audio_resampler = require("./audio_resampler.cjs");
|
|
71
72
|
var import_audio_source = require("./audio_source.cjs");
|
|
72
73
|
var import_audio_stream = require("./audio_stream.cjs");
|
|
74
|
+
var import_audio_filter = require("./audio_filter.cjs");
|
|
73
75
|
__reExport(index_exports, require("./data_streams/index.cjs"), module.exports);
|
|
74
76
|
var import_e2ee = require("./e2ee.cjs");
|
|
75
77
|
var import_ffi_client = require("./ffi_client.cjs");
|
|
@@ -88,6 +90,7 @@ var import_video_source = require("./video_source.cjs");
|
|
|
88
90
|
var import_video_stream = require("./video_stream.cjs");
|
|
89
91
|
// Annotate the CommonJS export names for ESM import in node:
|
|
90
92
|
0 && (module.exports = {
|
|
93
|
+
AudioFilter,
|
|
91
94
|
AudioFrame,
|
|
92
95
|
AudioResampler,
|
|
93
96
|
AudioResamplerQuality,
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\n\nexport { AudioFrame, combineAudioFrames } from './audio_frame.js';\nexport { AudioResampler, AudioResamplerQuality } from './audio_resampler.js';\nexport { AudioSource } from './audio_source.js';\nexport { AudioStream } from './audio_stream.js';\nexport * from './data_streams/index.js';\nexport { E2EEManager, FrameCryptor, KeyProvider } from './e2ee.js';\nexport type { E2EEOptions, KeyProviderOptions } from './e2ee.js';\nexport { dispose } from './ffi_client.js';\nexport { LocalParticipant, Participant, RemoteParticipant } from './participant.js';\nexport { EncryptionState, EncryptionType } from './proto/e2ee_pb.js';\nexport { DisconnectReason, ParticipantKind } from './proto/participant_pb.js';\nexport {\n ConnectionQuality,\n ConnectionState,\n ContinualGatheringPolicy,\n DataPacketKind,\n IceServer,\n IceTransportType,\n TrackPublishOptions,\n} from './proto/room_pb.js';\nexport { StreamState, TrackKind, TrackSource } from './proto/track_pb.js';\nexport { VideoBufferType, VideoCodec, VideoRotation } from './proto/video_frame_pb.js';\nexport { ConnectError, Room, RoomEvent, type RoomOptions, type RtcConfiguration } from './room.js';\nexport { RpcError, type PerformRpcParams, type RpcInvocationData } from './rpc.js';\nexport {\n LocalAudioTrack,\n LocalVideoTrack,\n RemoteAudioTrack,\n RemoteVideoTrack,\n Track,\n type AudioTrack,\n type LocalTrack,\n type RemoteTrack,\n type VideoTrack,\n} from './track.js';\nexport {\n LocalTrackPublication,\n RemoteTrackPublication,\n TrackPublication,\n} from './track_publication.js';\nexport type { Transcription, TranscriptionSegment } from './transcription.js';\nexport type { ChatMessage } from './types.js';\nexport { VideoFrame } from './video_frame.js';\nexport { VideoSource } from './video_source.js';\nexport { VideoStream, type VideoFrameEvent } from './video_stream.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,yBAA+C;AAC/C,6BAAsD;AACtD,0BAA4B;AAC5B,0BAA4B;AAC5B,0BAAc,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\n\nexport { AudioFrame, combineAudioFrames } from './audio_frame.js';\nexport { AudioResampler, AudioResamplerQuality } from './audio_resampler.js';\nexport { AudioSource } from './audio_source.js';\nexport { AudioStream } from './audio_stream.js';\nexport type { NoiseCancellationOptions } from './audio_stream.js';\nexport { AudioFilter } from './audio_filter.js';\nexport * from './data_streams/index.js';\nexport { E2EEManager, FrameCryptor, KeyProvider } from './e2ee.js';\nexport type { E2EEOptions, KeyProviderOptions } from './e2ee.js';\nexport { dispose } from './ffi_client.js';\nexport { LocalParticipant, Participant, RemoteParticipant } from './participant.js';\nexport { EncryptionState, EncryptionType } from './proto/e2ee_pb.js';\nexport { DisconnectReason, ParticipantKind } from './proto/participant_pb.js';\nexport {\n ConnectionQuality,\n ConnectionState,\n ContinualGatheringPolicy,\n DataPacketKind,\n IceServer,\n IceTransportType,\n TrackPublishOptions,\n} from './proto/room_pb.js';\nexport { StreamState, TrackKind, TrackSource } from './proto/track_pb.js';\nexport { VideoBufferType, VideoCodec, VideoRotation } from './proto/video_frame_pb.js';\nexport { ConnectError, Room, RoomEvent, type RoomOptions, type RtcConfiguration } from './room.js';\nexport { RpcError, type PerformRpcParams, type RpcInvocationData } from './rpc.js';\nexport {\n LocalAudioTrack,\n LocalVideoTrack,\n RemoteAudioTrack,\n RemoteVideoTrack,\n Track,\n type AudioTrack,\n type LocalTrack,\n type RemoteTrack,\n type VideoTrack,\n} from './track.js';\nexport {\n LocalTrackPublication,\n RemoteTrackPublication,\n TrackPublication,\n} from './track_publication.js';\nexport type { Transcription, TranscriptionSegment } from './transcription.js';\nexport type { ChatMessage } from './types.js';\nexport { VideoFrame } from './video_frame.js';\nexport { VideoSource } from './video_source.js';\nexport { VideoStream, type VideoFrameEvent } from './video_stream.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,yBAA+C;AAC/C,6BAAsD;AACtD,0BAA4B;AAC5B,0BAA4B;AAE5B,0BAA4B;AAC5B,0BAAc,oCAVd;AAWA,kBAAuD;AAEvD,wBAAwB;AACxB,yBAAiE;AACjE,qBAAgD;AAChD,4BAAkD;AAClD,qBAQO;AACP,sBAAoD;AACpD,4BAA2D;AAC3D,kBAAuF;AACvF,iBAAwE;AACxE,mBAUO;AACP,+BAIO;AAGP,yBAA2B;AAC3B,0BAA4B;AAC5B,0BAAkD;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { AudioFrame, combineAudioFrames } from './audio_frame.cjs';
|
|
2
2
|
export { AudioResampler, AudioResamplerQuality } from './audio_resampler.cjs';
|
|
3
3
|
export { AudioSource } from './audio_source.cjs';
|
|
4
|
-
export { AudioStream } from './audio_stream.cjs';
|
|
4
|
+
export { AudioStream, NoiseCancellationOptions } from './audio_stream.cjs';
|
|
5
|
+
export { AudioFilter } from './audio_filter.cjs';
|
|
5
6
|
export { a as BaseStreamInfo, f as ByteStreamHandler, b as ByteStreamInfo, e as ByteStreamOptions, B as ByteStreamReader, D as DataStreamOptions, S as StreamController, g as TextStreamHandler, c as TextStreamInfo, d as TextStreamOptions, T as TextStreamReader } from './stream_reader-a8_oiaOi.cjs';
|
|
6
7
|
export { ByteStreamWriter, TextStreamWriter } from './data_streams/stream_writer.cjs';
|
|
7
8
|
export { E2EEManager, E2EEOptions, FrameCryptor, KeyProvider, KeyProviderOptions } from './e2ee.cjs';
|
|
@@ -24,7 +25,6 @@ export { VideoFrameEvent, VideoStream } from './video_stream.cjs';
|
|
|
24
25
|
import './proto/audio_frame_pb.cjs';
|
|
25
26
|
import '@bufbuild/protobuf';
|
|
26
27
|
import './proto/handle_pb.cjs';
|
|
27
|
-
import '@livekit/mutex';
|
|
28
28
|
import 'node:stream/web';
|
|
29
29
|
import './proto/stats_pb.cjs';
|
|
30
30
|
import 'node:fs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { AudioFrame, combineAudioFrames } from './audio_frame.js';
|
|
2
2
|
export { AudioResampler, AudioResamplerQuality } from './audio_resampler.js';
|
|
3
3
|
export { AudioSource } from './audio_source.js';
|
|
4
|
-
export { AudioStream } from './audio_stream.js';
|
|
4
|
+
export { AudioStream, NoiseCancellationOptions } from './audio_stream.js';
|
|
5
|
+
export { AudioFilter } from './audio_filter.js';
|
|
5
6
|
export { a as BaseStreamInfo, f as ByteStreamHandler, b as ByteStreamInfo, e as ByteStreamOptions, B as ByteStreamReader, D as DataStreamOptions, S as StreamController, g as TextStreamHandler, c as TextStreamInfo, d as TextStreamOptions, T as TextStreamReader } from './stream_reader-DWUV4eJB.js';
|
|
6
7
|
export { ByteStreamWriter, TextStreamWriter } from './data_streams/stream_writer.js';
|
|
7
8
|
export { E2EEManager, E2EEOptions, FrameCryptor, KeyProvider, KeyProviderOptions } from './e2ee.js';
|
|
@@ -24,7 +25,6 @@ export { VideoFrameEvent, VideoStream } from './video_stream.js';
|
|
|
24
25
|
import './proto/audio_frame_pb.js';
|
|
25
26
|
import '@bufbuild/protobuf';
|
|
26
27
|
import './proto/handle_pb.js';
|
|
27
|
-
import '@livekit/mutex';
|
|
28
28
|
import 'node:stream/web';
|
|
29
29
|
import './proto/stats_pb.js';
|
|
30
30
|
import 'node:fs';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACnE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACnF,OAAO,EACL,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,UAAU,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACnE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACnF,OAAO,EACL,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,UAAU,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { AudioFrame, combineAudioFrames } from "./audio_frame.js";
|
|
|
2
2
|
import { AudioResampler, AudioResamplerQuality } from "./audio_resampler.js";
|
|
3
3
|
import { AudioSource } from "./audio_source.js";
|
|
4
4
|
import { AudioStream } from "./audio_stream.js";
|
|
5
|
+
import { AudioFilter } from "./audio_filter.js";
|
|
5
6
|
export * from "./data_streams/index.js";
|
|
6
7
|
import { E2EEManager, FrameCryptor, KeyProvider } from "./e2ee.js";
|
|
7
8
|
import { dispose } from "./ffi_client.js";
|
|
@@ -37,6 +38,7 @@ import { VideoFrame } from "./video_frame.js";
|
|
|
37
38
|
import { VideoSource } from "./video_source.js";
|
|
38
39
|
import { VideoStream } from "./video_stream.js";
|
|
39
40
|
export {
|
|
41
|
+
AudioFilter,
|
|
40
42
|
AudioFrame,
|
|
41
43
|
AudioResampler,
|
|
42
44
|
AudioResamplerQuality,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\n\nexport { AudioFrame, combineAudioFrames } from './audio_frame.js';\nexport { AudioResampler, AudioResamplerQuality } from './audio_resampler.js';\nexport { AudioSource } from './audio_source.js';\nexport { AudioStream } from './audio_stream.js';\nexport * from './data_streams/index.js';\nexport { E2EEManager, FrameCryptor, KeyProvider } from './e2ee.js';\nexport type { E2EEOptions, KeyProviderOptions } from './e2ee.js';\nexport { dispose } from './ffi_client.js';\nexport { LocalParticipant, Participant, RemoteParticipant } from './participant.js';\nexport { EncryptionState, EncryptionType } from './proto/e2ee_pb.js';\nexport { DisconnectReason, ParticipantKind } from './proto/participant_pb.js';\nexport {\n ConnectionQuality,\n ConnectionState,\n ContinualGatheringPolicy,\n DataPacketKind,\n IceServer,\n IceTransportType,\n TrackPublishOptions,\n} from './proto/room_pb.js';\nexport { StreamState, TrackKind, TrackSource } from './proto/track_pb.js';\nexport { VideoBufferType, VideoCodec, VideoRotation } from './proto/video_frame_pb.js';\nexport { ConnectError, Room, RoomEvent, type RoomOptions, type RtcConfiguration } from './room.js';\nexport { RpcError, type PerformRpcParams, type RpcInvocationData } from './rpc.js';\nexport {\n LocalAudioTrack,\n LocalVideoTrack,\n RemoteAudioTrack,\n RemoteVideoTrack,\n Track,\n type AudioTrack,\n type LocalTrack,\n type RemoteTrack,\n type VideoTrack,\n} from './track.js';\nexport {\n LocalTrackPublication,\n RemoteTrackPublication,\n TrackPublication,\n} from './track_publication.js';\nexport type { Transcription, TranscriptionSegment } from './transcription.js';\nexport type { ChatMessage } from './types.js';\nexport { VideoFrame } from './video_frame.js';\nexport { VideoSource } from './video_source.js';\nexport { VideoStream, type VideoFrameEvent } from './video_stream.js';\n"],"mappings":"AAIA,SAAS,YAAY,0BAA0B;AAC/C,SAAS,gBAAgB,6BAA6B;AACtD,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAC5B,cAAc;AACd,SAAS,aAAa,cAAc,mBAAmB;AAEvD,SAAS,eAAe;AACxB,SAAS,kBAAkB,aAAa,yBAAyB;AACjE,SAAS,iBAAiB,sBAAsB;AAChD,SAAS,kBAAkB,uBAAuB;AAClD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,aAAa,WAAW,mBAAmB;AACpD,SAAS,iBAAiB,YAAY,qBAAqB;AAC3D,SAAS,cAAc,MAAM,iBAA0D;AACvF,SAAS,gBAA+D;AACxE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,mBAAyC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\n\nexport { AudioFrame, combineAudioFrames } from './audio_frame.js';\nexport { AudioResampler, AudioResamplerQuality } from './audio_resampler.js';\nexport { AudioSource } from './audio_source.js';\nexport { AudioStream } from './audio_stream.js';\nexport type { NoiseCancellationOptions } from './audio_stream.js';\nexport { AudioFilter } from './audio_filter.js';\nexport * from './data_streams/index.js';\nexport { E2EEManager, FrameCryptor, KeyProvider } from './e2ee.js';\nexport type { E2EEOptions, KeyProviderOptions } from './e2ee.js';\nexport { dispose } from './ffi_client.js';\nexport { LocalParticipant, Participant, RemoteParticipant } from './participant.js';\nexport { EncryptionState, EncryptionType } from './proto/e2ee_pb.js';\nexport { DisconnectReason, ParticipantKind } from './proto/participant_pb.js';\nexport {\n ConnectionQuality,\n ConnectionState,\n ContinualGatheringPolicy,\n DataPacketKind,\n IceServer,\n IceTransportType,\n TrackPublishOptions,\n} from './proto/room_pb.js';\nexport { StreamState, TrackKind, TrackSource } from './proto/track_pb.js';\nexport { VideoBufferType, VideoCodec, VideoRotation } from './proto/video_frame_pb.js';\nexport { ConnectError, Room, RoomEvent, type RoomOptions, type RtcConfiguration } from './room.js';\nexport { RpcError, type PerformRpcParams, type RpcInvocationData } from './rpc.js';\nexport {\n LocalAudioTrack,\n LocalVideoTrack,\n RemoteAudioTrack,\n RemoteVideoTrack,\n Track,\n type AudioTrack,\n type LocalTrack,\n type RemoteTrack,\n type VideoTrack,\n} from './track.js';\nexport {\n LocalTrackPublication,\n RemoteTrackPublication,\n TrackPublication,\n} from './track_publication.js';\nexport type { Transcription, TranscriptionSegment } from './transcription.js';\nexport type { ChatMessage } from './types.js';\nexport { VideoFrame } from './video_frame.js';\nexport { VideoSource } from './video_source.js';\nexport { VideoStream, type VideoFrameEvent } from './video_stream.js';\n"],"mappings":"AAIA,SAAS,YAAY,0BAA0B;AAC/C,SAAS,gBAAgB,6BAA6B;AACtD,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAE5B,SAAS,mBAAmB;AAC5B,cAAc;AACd,SAAS,aAAa,cAAc,mBAAmB;AAEvD,SAAS,eAAe;AACxB,SAAS,kBAAkB,aAAa,yBAAyB;AACjE,SAAS,iBAAiB,sBAAsB;AAChD,SAAS,kBAAkB,uBAAuB;AAClD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,aAAa,WAAW,mBAAmB;AACpD,SAAS,iBAAiB,YAAY,qBAAqB;AAC3D,SAAS,cAAc,MAAM,iBAA0D;AACvF,SAAS,gBAA+D;AACxE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,mBAAyC;","names":[]}
|
|
@@ -18,6 +18,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var audio_frame_pb_exports = {};
|
|
20
20
|
__export(audio_frame_pb_exports, {
|
|
21
|
+
ApmProcessReverseStreamRequest: () => ApmProcessReverseStreamRequest,
|
|
22
|
+
ApmProcessReverseStreamResponse: () => ApmProcessReverseStreamResponse,
|
|
23
|
+
ApmProcessStreamRequest: () => ApmProcessStreamRequest,
|
|
24
|
+
ApmProcessStreamResponse: () => ApmProcessStreamResponse,
|
|
25
|
+
ApmSetStreamDelayRequest: () => ApmSetStreamDelayRequest,
|
|
26
|
+
ApmSetStreamDelayResponse: () => ApmSetStreamDelayResponse,
|
|
21
27
|
AudioFrameBufferInfo: () => AudioFrameBufferInfo,
|
|
22
28
|
AudioFrameReceived: () => AudioFrameReceived,
|
|
23
29
|
AudioResamplerInfo: () => AudioResamplerInfo,
|
|
@@ -37,6 +43,10 @@ __export(audio_frame_pb_exports, {
|
|
|
37
43
|
ClearAudioBufferResponse: () => ClearAudioBufferResponse,
|
|
38
44
|
FlushSoxResamplerRequest: () => FlushSoxResamplerRequest,
|
|
39
45
|
FlushSoxResamplerResponse: () => FlushSoxResamplerResponse,
|
|
46
|
+
LoadAudioFilterPluginRequest: () => LoadAudioFilterPluginRequest,
|
|
47
|
+
LoadAudioFilterPluginResponse: () => LoadAudioFilterPluginResponse,
|
|
48
|
+
NewApmRequest: () => NewApmRequest,
|
|
49
|
+
NewApmResponse: () => NewApmResponse,
|
|
40
50
|
NewAudioResamplerRequest: () => NewAudioResamplerRequest,
|
|
41
51
|
NewAudioResamplerResponse: () => NewAudioResamplerResponse,
|
|
42
52
|
NewAudioSourceRequest: () => NewAudioSourceRequest,
|
|
@@ -45,6 +55,7 @@ __export(audio_frame_pb_exports, {
|
|
|
45
55
|
NewAudioStreamResponse: () => NewAudioStreamResponse,
|
|
46
56
|
NewSoxResamplerRequest: () => NewSoxResamplerRequest,
|
|
47
57
|
NewSoxResamplerResponse: () => NewSoxResamplerResponse,
|
|
58
|
+
OwnedApm: () => OwnedApm,
|
|
48
59
|
OwnedAudioFrameBuffer: () => OwnedAudioFrameBuffer,
|
|
49
60
|
OwnedAudioResampler: () => OwnedAudioResampler,
|
|
50
61
|
OwnedAudioSource: () => OwnedAudioSource,
|
|
@@ -144,7 +155,9 @@ _NewAudioStreamRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
|
144
155
|
{ no: 1, name: "track_handle", kind: "scalar", T: 4, req: true },
|
|
145
156
|
{ no: 2, name: "type", kind: "enum", T: import_protobuf.proto2.getEnumType(AudioStreamType), req: true },
|
|
146
157
|
{ no: 3, name: "sample_rate", kind: "scalar", T: 13, opt: true },
|
|
147
|
-
{ no: 4, name: "num_channels", kind: "scalar", T: 13, opt: true }
|
|
158
|
+
{ no: 4, name: "num_channels", kind: "scalar", T: 13, opt: true },
|
|
159
|
+
{ no: 5, name: "audio_filter_module_id", kind: "scalar", T: 9, opt: true },
|
|
160
|
+
{ no: 6, name: "audio_filter_options", kind: "scalar", T: 9, opt: true }
|
|
148
161
|
]);
|
|
149
162
|
let NewAudioStreamRequest = _NewAudioStreamRequest;
|
|
150
163
|
const _NewAudioStreamResponse = class _NewAudioStreamResponse extends import_protobuf.Message {
|
|
@@ -196,7 +209,9 @@ _AudioStreamFromParticipantRequest.fields = import_protobuf.proto2.util.newField
|
|
|
196
209
|
{ no: 2, name: "type", kind: "enum", T: import_protobuf.proto2.getEnumType(AudioStreamType), req: true },
|
|
197
210
|
{ no: 3, name: "track_source", kind: "enum", T: import_protobuf.proto2.getEnumType(import_track_pb.TrackSource), opt: true },
|
|
198
211
|
{ no: 5, name: "sample_rate", kind: "scalar", T: 13, opt: true },
|
|
199
|
-
{ no: 6, name: "num_channels", kind: "scalar", T: 13, opt: true }
|
|
212
|
+
{ no: 6, name: "num_channels", kind: "scalar", T: 13, opt: true },
|
|
213
|
+
{ no: 7, name: "audio_filter_module_id", kind: "scalar", T: 9, opt: true },
|
|
214
|
+
{ no: 8, name: "audio_filter_options", kind: "scalar", T: 9, opt: true }
|
|
200
215
|
]);
|
|
201
216
|
let AudioStreamFromParticipantRequest = _AudioStreamFromParticipantRequest;
|
|
202
217
|
const _AudioStreamFromParticipantResponse = class _AudioStreamFromParticipantResponse extends import_protobuf.Message {
|
|
@@ -492,6 +507,210 @@ _RemixAndResampleResponse.fields = import_protobuf.proto2.util.newFieldList(() =
|
|
|
492
507
|
{ no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer, req: true }
|
|
493
508
|
]);
|
|
494
509
|
let RemixAndResampleResponse = _RemixAndResampleResponse;
|
|
510
|
+
const _NewApmRequest = class _NewApmRequest extends import_protobuf.Message {
|
|
511
|
+
constructor(data) {
|
|
512
|
+
super();
|
|
513
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
514
|
+
}
|
|
515
|
+
static fromBinary(bytes, options) {
|
|
516
|
+
return new _NewApmRequest().fromBinary(bytes, options);
|
|
517
|
+
}
|
|
518
|
+
static fromJson(jsonValue, options) {
|
|
519
|
+
return new _NewApmRequest().fromJson(jsonValue, options);
|
|
520
|
+
}
|
|
521
|
+
static fromJsonString(jsonString, options) {
|
|
522
|
+
return new _NewApmRequest().fromJsonString(jsonString, options);
|
|
523
|
+
}
|
|
524
|
+
static equals(a, b) {
|
|
525
|
+
return import_protobuf.proto2.util.equals(_NewApmRequest, a, b);
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
_NewApmRequest.runtime = import_protobuf.proto2;
|
|
529
|
+
_NewApmRequest.typeName = "livekit.proto.NewApmRequest";
|
|
530
|
+
_NewApmRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
531
|
+
{ no: 1, name: "echo_canceller_enabled", kind: "scalar", T: 8, req: true },
|
|
532
|
+
{ no: 2, name: "gain_controller_enabled", kind: "scalar", T: 8, req: true },
|
|
533
|
+
{ no: 3, name: "high_pass_filter_enabled", kind: "scalar", T: 8, req: true },
|
|
534
|
+
{ no: 4, name: "noise_suppression_enabled", kind: "scalar", T: 8, req: true }
|
|
535
|
+
]);
|
|
536
|
+
let NewApmRequest = _NewApmRequest;
|
|
537
|
+
const _NewApmResponse = class _NewApmResponse extends import_protobuf.Message {
|
|
538
|
+
constructor(data) {
|
|
539
|
+
super();
|
|
540
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
541
|
+
}
|
|
542
|
+
static fromBinary(bytes, options) {
|
|
543
|
+
return new _NewApmResponse().fromBinary(bytes, options);
|
|
544
|
+
}
|
|
545
|
+
static fromJson(jsonValue, options) {
|
|
546
|
+
return new _NewApmResponse().fromJson(jsonValue, options);
|
|
547
|
+
}
|
|
548
|
+
static fromJsonString(jsonString, options) {
|
|
549
|
+
return new _NewApmResponse().fromJsonString(jsonString, options);
|
|
550
|
+
}
|
|
551
|
+
static equals(a, b) {
|
|
552
|
+
return import_protobuf.proto2.util.equals(_NewApmResponse, a, b);
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
_NewApmResponse.runtime = import_protobuf.proto2;
|
|
556
|
+
_NewApmResponse.typeName = "livekit.proto.NewApmResponse";
|
|
557
|
+
_NewApmResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
558
|
+
{ no: 1, name: "apm", kind: "message", T: OwnedApm, req: true }
|
|
559
|
+
]);
|
|
560
|
+
let NewApmResponse = _NewApmResponse;
|
|
561
|
+
const _ApmProcessStreamRequest = class _ApmProcessStreamRequest extends import_protobuf.Message {
|
|
562
|
+
constructor(data) {
|
|
563
|
+
super();
|
|
564
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
565
|
+
}
|
|
566
|
+
static fromBinary(bytes, options) {
|
|
567
|
+
return new _ApmProcessStreamRequest().fromBinary(bytes, options);
|
|
568
|
+
}
|
|
569
|
+
static fromJson(jsonValue, options) {
|
|
570
|
+
return new _ApmProcessStreamRequest().fromJson(jsonValue, options);
|
|
571
|
+
}
|
|
572
|
+
static fromJsonString(jsonString, options) {
|
|
573
|
+
return new _ApmProcessStreamRequest().fromJsonString(jsonString, options);
|
|
574
|
+
}
|
|
575
|
+
static equals(a, b) {
|
|
576
|
+
return import_protobuf.proto2.util.equals(_ApmProcessStreamRequest, a, b);
|
|
577
|
+
}
|
|
578
|
+
};
|
|
579
|
+
_ApmProcessStreamRequest.runtime = import_protobuf.proto2;
|
|
580
|
+
_ApmProcessStreamRequest.typeName = "livekit.proto.ApmProcessStreamRequest";
|
|
581
|
+
_ApmProcessStreamRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
582
|
+
{ no: 1, name: "apm_handle", kind: "scalar", T: 4, req: true },
|
|
583
|
+
{ no: 2, name: "data_ptr", kind: "scalar", T: 4, req: true },
|
|
584
|
+
{ no: 3, name: "size", kind: "scalar", T: 13, req: true },
|
|
585
|
+
{ no: 4, name: "sample_rate", kind: "scalar", T: 13, req: true },
|
|
586
|
+
{ no: 5, name: "num_channels", kind: "scalar", T: 13, req: true }
|
|
587
|
+
]);
|
|
588
|
+
let ApmProcessStreamRequest = _ApmProcessStreamRequest;
|
|
589
|
+
const _ApmProcessStreamResponse = class _ApmProcessStreamResponse extends import_protobuf.Message {
|
|
590
|
+
constructor(data) {
|
|
591
|
+
super();
|
|
592
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
593
|
+
}
|
|
594
|
+
static fromBinary(bytes, options) {
|
|
595
|
+
return new _ApmProcessStreamResponse().fromBinary(bytes, options);
|
|
596
|
+
}
|
|
597
|
+
static fromJson(jsonValue, options) {
|
|
598
|
+
return new _ApmProcessStreamResponse().fromJson(jsonValue, options);
|
|
599
|
+
}
|
|
600
|
+
static fromJsonString(jsonString, options) {
|
|
601
|
+
return new _ApmProcessStreamResponse().fromJsonString(jsonString, options);
|
|
602
|
+
}
|
|
603
|
+
static equals(a, b) {
|
|
604
|
+
return import_protobuf.proto2.util.equals(_ApmProcessStreamResponse, a, b);
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
_ApmProcessStreamResponse.runtime = import_protobuf.proto2;
|
|
608
|
+
_ApmProcessStreamResponse.typeName = "livekit.proto.ApmProcessStreamResponse";
|
|
609
|
+
_ApmProcessStreamResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
610
|
+
{ no: 1, name: "error", kind: "scalar", T: 9, opt: true }
|
|
611
|
+
]);
|
|
612
|
+
let ApmProcessStreamResponse = _ApmProcessStreamResponse;
|
|
613
|
+
const _ApmProcessReverseStreamRequest = class _ApmProcessReverseStreamRequest extends import_protobuf.Message {
|
|
614
|
+
constructor(data) {
|
|
615
|
+
super();
|
|
616
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
617
|
+
}
|
|
618
|
+
static fromBinary(bytes, options) {
|
|
619
|
+
return new _ApmProcessReverseStreamRequest().fromBinary(bytes, options);
|
|
620
|
+
}
|
|
621
|
+
static fromJson(jsonValue, options) {
|
|
622
|
+
return new _ApmProcessReverseStreamRequest().fromJson(jsonValue, options);
|
|
623
|
+
}
|
|
624
|
+
static fromJsonString(jsonString, options) {
|
|
625
|
+
return new _ApmProcessReverseStreamRequest().fromJsonString(jsonString, options);
|
|
626
|
+
}
|
|
627
|
+
static equals(a, b) {
|
|
628
|
+
return import_protobuf.proto2.util.equals(_ApmProcessReverseStreamRequest, a, b);
|
|
629
|
+
}
|
|
630
|
+
};
|
|
631
|
+
_ApmProcessReverseStreamRequest.runtime = import_protobuf.proto2;
|
|
632
|
+
_ApmProcessReverseStreamRequest.typeName = "livekit.proto.ApmProcessReverseStreamRequest";
|
|
633
|
+
_ApmProcessReverseStreamRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
634
|
+
{ no: 1, name: "apm_handle", kind: "scalar", T: 4, req: true },
|
|
635
|
+
{ no: 2, name: "data_ptr", kind: "scalar", T: 4, req: true },
|
|
636
|
+
{ no: 3, name: "size", kind: "scalar", T: 13, req: true },
|
|
637
|
+
{ no: 4, name: "sample_rate", kind: "scalar", T: 13, req: true },
|
|
638
|
+
{ no: 5, name: "num_channels", kind: "scalar", T: 13, req: true }
|
|
639
|
+
]);
|
|
640
|
+
let ApmProcessReverseStreamRequest = _ApmProcessReverseStreamRequest;
|
|
641
|
+
const _ApmProcessReverseStreamResponse = class _ApmProcessReverseStreamResponse extends import_protobuf.Message {
|
|
642
|
+
constructor(data) {
|
|
643
|
+
super();
|
|
644
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
645
|
+
}
|
|
646
|
+
static fromBinary(bytes, options) {
|
|
647
|
+
return new _ApmProcessReverseStreamResponse().fromBinary(bytes, options);
|
|
648
|
+
}
|
|
649
|
+
static fromJson(jsonValue, options) {
|
|
650
|
+
return new _ApmProcessReverseStreamResponse().fromJson(jsonValue, options);
|
|
651
|
+
}
|
|
652
|
+
static fromJsonString(jsonString, options) {
|
|
653
|
+
return new _ApmProcessReverseStreamResponse().fromJsonString(jsonString, options);
|
|
654
|
+
}
|
|
655
|
+
static equals(a, b) {
|
|
656
|
+
return import_protobuf.proto2.util.equals(_ApmProcessReverseStreamResponse, a, b);
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
_ApmProcessReverseStreamResponse.runtime = import_protobuf.proto2;
|
|
660
|
+
_ApmProcessReverseStreamResponse.typeName = "livekit.proto.ApmProcessReverseStreamResponse";
|
|
661
|
+
_ApmProcessReverseStreamResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
662
|
+
{ no: 1, name: "error", kind: "scalar", T: 9, opt: true }
|
|
663
|
+
]);
|
|
664
|
+
let ApmProcessReverseStreamResponse = _ApmProcessReverseStreamResponse;
|
|
665
|
+
const _ApmSetStreamDelayRequest = class _ApmSetStreamDelayRequest extends import_protobuf.Message {
|
|
666
|
+
constructor(data) {
|
|
667
|
+
super();
|
|
668
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
669
|
+
}
|
|
670
|
+
static fromBinary(bytes, options) {
|
|
671
|
+
return new _ApmSetStreamDelayRequest().fromBinary(bytes, options);
|
|
672
|
+
}
|
|
673
|
+
static fromJson(jsonValue, options) {
|
|
674
|
+
return new _ApmSetStreamDelayRequest().fromJson(jsonValue, options);
|
|
675
|
+
}
|
|
676
|
+
static fromJsonString(jsonString, options) {
|
|
677
|
+
return new _ApmSetStreamDelayRequest().fromJsonString(jsonString, options);
|
|
678
|
+
}
|
|
679
|
+
static equals(a, b) {
|
|
680
|
+
return import_protobuf.proto2.util.equals(_ApmSetStreamDelayRequest, a, b);
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
_ApmSetStreamDelayRequest.runtime = import_protobuf.proto2;
|
|
684
|
+
_ApmSetStreamDelayRequest.typeName = "livekit.proto.ApmSetStreamDelayRequest";
|
|
685
|
+
_ApmSetStreamDelayRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
686
|
+
{ no: 1, name: "apm_handle", kind: "scalar", T: 4, req: true },
|
|
687
|
+
{ no: 2, name: "delay_ms", kind: "scalar", T: 5, req: true }
|
|
688
|
+
]);
|
|
689
|
+
let ApmSetStreamDelayRequest = _ApmSetStreamDelayRequest;
|
|
690
|
+
const _ApmSetStreamDelayResponse = class _ApmSetStreamDelayResponse extends import_protobuf.Message {
|
|
691
|
+
constructor(data) {
|
|
692
|
+
super();
|
|
693
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
694
|
+
}
|
|
695
|
+
static fromBinary(bytes, options) {
|
|
696
|
+
return new _ApmSetStreamDelayResponse().fromBinary(bytes, options);
|
|
697
|
+
}
|
|
698
|
+
static fromJson(jsonValue, options) {
|
|
699
|
+
return new _ApmSetStreamDelayResponse().fromJson(jsonValue, options);
|
|
700
|
+
}
|
|
701
|
+
static fromJsonString(jsonString, options) {
|
|
702
|
+
return new _ApmSetStreamDelayResponse().fromJsonString(jsonString, options);
|
|
703
|
+
}
|
|
704
|
+
static equals(a, b) {
|
|
705
|
+
return import_protobuf.proto2.util.equals(_ApmSetStreamDelayResponse, a, b);
|
|
706
|
+
}
|
|
707
|
+
};
|
|
708
|
+
_ApmSetStreamDelayResponse.runtime = import_protobuf.proto2;
|
|
709
|
+
_ApmSetStreamDelayResponse.typeName = "livekit.proto.ApmSetStreamDelayResponse";
|
|
710
|
+
_ApmSetStreamDelayResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
711
|
+
{ no: 1, name: "error", kind: "scalar", T: 9, opt: true }
|
|
712
|
+
]);
|
|
713
|
+
let ApmSetStreamDelayResponse = _ApmSetStreamDelayResponse;
|
|
495
714
|
const _NewSoxResamplerRequest = class _NewSoxResamplerRequest extends import_protobuf.Message {
|
|
496
715
|
constructor(data) {
|
|
497
716
|
super();
|
|
@@ -952,6 +1171,30 @@ _OwnedAudioResampler.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
|
952
1171
|
{ no: 2, name: "info", kind: "message", T: AudioResamplerInfo, req: true }
|
|
953
1172
|
]);
|
|
954
1173
|
let OwnedAudioResampler = _OwnedAudioResampler;
|
|
1174
|
+
const _OwnedApm = class _OwnedApm extends import_protobuf.Message {
|
|
1175
|
+
constructor(data) {
|
|
1176
|
+
super();
|
|
1177
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
1178
|
+
}
|
|
1179
|
+
static fromBinary(bytes, options) {
|
|
1180
|
+
return new _OwnedApm().fromBinary(bytes, options);
|
|
1181
|
+
}
|
|
1182
|
+
static fromJson(jsonValue, options) {
|
|
1183
|
+
return new _OwnedApm().fromJson(jsonValue, options);
|
|
1184
|
+
}
|
|
1185
|
+
static fromJsonString(jsonString, options) {
|
|
1186
|
+
return new _OwnedApm().fromJsonString(jsonString, options);
|
|
1187
|
+
}
|
|
1188
|
+
static equals(a, b) {
|
|
1189
|
+
return import_protobuf.proto2.util.equals(_OwnedApm, a, b);
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
_OwnedApm.runtime = import_protobuf.proto2;
|
|
1193
|
+
_OwnedApm.typeName = "livekit.proto.OwnedApm";
|
|
1194
|
+
_OwnedApm.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
1195
|
+
{ no: 1, name: "handle", kind: "message", T: import_handle_pb.FfiOwnedHandle, req: true }
|
|
1196
|
+
]);
|
|
1197
|
+
let OwnedApm = _OwnedApm;
|
|
955
1198
|
const _SoxResamplerInfo = class _SoxResamplerInfo extends import_protobuf.Message {
|
|
956
1199
|
constructor(data) {
|
|
957
1200
|
super();
|
|
@@ -999,8 +1242,70 @@ _OwnedSoxResampler.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
|
999
1242
|
{ no: 2, name: "info", kind: "message", T: SoxResamplerInfo, req: true }
|
|
1000
1243
|
]);
|
|
1001
1244
|
let OwnedSoxResampler = _OwnedSoxResampler;
|
|
1245
|
+
const _LoadAudioFilterPluginRequest = class _LoadAudioFilterPluginRequest extends import_protobuf.Message {
|
|
1246
|
+
constructor(data) {
|
|
1247
|
+
super();
|
|
1248
|
+
/**
|
|
1249
|
+
* Optional: paths for dependency dylibs
|
|
1250
|
+
*
|
|
1251
|
+
* @generated from field: repeated string dependencies = 2;
|
|
1252
|
+
*/
|
|
1253
|
+
this.dependencies = [];
|
|
1254
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
1255
|
+
}
|
|
1256
|
+
static fromBinary(bytes, options) {
|
|
1257
|
+
return new _LoadAudioFilterPluginRequest().fromBinary(bytes, options);
|
|
1258
|
+
}
|
|
1259
|
+
static fromJson(jsonValue, options) {
|
|
1260
|
+
return new _LoadAudioFilterPluginRequest().fromJson(jsonValue, options);
|
|
1261
|
+
}
|
|
1262
|
+
static fromJsonString(jsonString, options) {
|
|
1263
|
+
return new _LoadAudioFilterPluginRequest().fromJsonString(jsonString, options);
|
|
1264
|
+
}
|
|
1265
|
+
static equals(a, b) {
|
|
1266
|
+
return import_protobuf.proto2.util.equals(_LoadAudioFilterPluginRequest, a, b);
|
|
1267
|
+
}
|
|
1268
|
+
};
|
|
1269
|
+
_LoadAudioFilterPluginRequest.runtime = import_protobuf.proto2;
|
|
1270
|
+
_LoadAudioFilterPluginRequest.typeName = "livekit.proto.LoadAudioFilterPluginRequest";
|
|
1271
|
+
_LoadAudioFilterPluginRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
1272
|
+
{ no: 1, name: "plugin_path", kind: "scalar", T: 9, req: true },
|
|
1273
|
+
{ no: 2, name: "dependencies", kind: "scalar", T: 9, repeated: true },
|
|
1274
|
+
{ no: 3, name: "module_id", kind: "scalar", T: 9, req: true }
|
|
1275
|
+
]);
|
|
1276
|
+
let LoadAudioFilterPluginRequest = _LoadAudioFilterPluginRequest;
|
|
1277
|
+
const _LoadAudioFilterPluginResponse = class _LoadAudioFilterPluginResponse extends import_protobuf.Message {
|
|
1278
|
+
constructor(data) {
|
|
1279
|
+
super();
|
|
1280
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
1281
|
+
}
|
|
1282
|
+
static fromBinary(bytes, options) {
|
|
1283
|
+
return new _LoadAudioFilterPluginResponse().fromBinary(bytes, options);
|
|
1284
|
+
}
|
|
1285
|
+
static fromJson(jsonValue, options) {
|
|
1286
|
+
return new _LoadAudioFilterPluginResponse().fromJson(jsonValue, options);
|
|
1287
|
+
}
|
|
1288
|
+
static fromJsonString(jsonString, options) {
|
|
1289
|
+
return new _LoadAudioFilterPluginResponse().fromJsonString(jsonString, options);
|
|
1290
|
+
}
|
|
1291
|
+
static equals(a, b) {
|
|
1292
|
+
return import_protobuf.proto2.util.equals(_LoadAudioFilterPluginResponse, a, b);
|
|
1293
|
+
}
|
|
1294
|
+
};
|
|
1295
|
+
_LoadAudioFilterPluginResponse.runtime = import_protobuf.proto2;
|
|
1296
|
+
_LoadAudioFilterPluginResponse.typeName = "livekit.proto.LoadAudioFilterPluginResponse";
|
|
1297
|
+
_LoadAudioFilterPluginResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
1298
|
+
{ no: 1, name: "error", kind: "scalar", T: 9, opt: true }
|
|
1299
|
+
]);
|
|
1300
|
+
let LoadAudioFilterPluginResponse = _LoadAudioFilterPluginResponse;
|
|
1002
1301
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1003
1302
|
0 && (module.exports = {
|
|
1303
|
+
ApmProcessReverseStreamRequest,
|
|
1304
|
+
ApmProcessReverseStreamResponse,
|
|
1305
|
+
ApmProcessStreamRequest,
|
|
1306
|
+
ApmProcessStreamResponse,
|
|
1307
|
+
ApmSetStreamDelayRequest,
|
|
1308
|
+
ApmSetStreamDelayResponse,
|
|
1004
1309
|
AudioFrameBufferInfo,
|
|
1005
1310
|
AudioFrameReceived,
|
|
1006
1311
|
AudioResamplerInfo,
|
|
@@ -1020,6 +1325,10 @@ let OwnedSoxResampler = _OwnedSoxResampler;
|
|
|
1020
1325
|
ClearAudioBufferResponse,
|
|
1021
1326
|
FlushSoxResamplerRequest,
|
|
1022
1327
|
FlushSoxResamplerResponse,
|
|
1328
|
+
LoadAudioFilterPluginRequest,
|
|
1329
|
+
LoadAudioFilterPluginResponse,
|
|
1330
|
+
NewApmRequest,
|
|
1331
|
+
NewApmResponse,
|
|
1023
1332
|
NewAudioResamplerRequest,
|
|
1024
1333
|
NewAudioResamplerResponse,
|
|
1025
1334
|
NewAudioSourceRequest,
|
|
@@ -1028,6 +1337,7 @@ let OwnedSoxResampler = _OwnedSoxResampler;
|
|
|
1028
1337
|
NewAudioStreamResponse,
|
|
1029
1338
|
NewSoxResamplerRequest,
|
|
1030
1339
|
NewSoxResamplerResponse,
|
|
1340
|
+
OwnedApm,
|
|
1031
1341
|
OwnedAudioFrameBuffer,
|
|
1032
1342
|
OwnedAudioResampler,
|
|
1033
1343
|
OwnedAudioSource,
|