@livekit/rtc-node 0.0.2 → 0.0.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.
Files changed (98) hide show
  1. package/Cargo.toml +21 -0
  2. package/build.rs +5 -0
  3. package/dist/audio_frame.d.ts +13 -0
  4. package/dist/audio_frame.js +36 -0
  5. package/dist/audio_frame.js.map +1 -0
  6. package/dist/audio_source.d.ts +13 -0
  7. package/dist/audio_source.js +42 -0
  8. package/dist/audio_source.js.map +1 -0
  9. package/dist/audio_stream.d.ts +23 -0
  10. package/dist/audio_stream.js +54 -0
  11. package/dist/audio_stream.js.map +1 -0
  12. package/dist/e2ee.d.ts +43 -0
  13. package/dist/e2ee.js +232 -0
  14. package/dist/e2ee.js.map +1 -0
  15. package/dist/ffi_client.d.ts +22 -0
  16. package/dist/ffi_client.js +57 -0
  17. package/dist/ffi_client.js.map +1 -0
  18. package/dist/index.d.ts +15 -0
  19. package/dist/index.js +71 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/native.d.ts +5 -0
  22. package/dist/native.js +297 -0
  23. package/dist/native.js.map +1 -0
  24. package/dist/participant.d.ts +29 -0
  25. package/dist/participant.js +120 -0
  26. package/dist/participant.js.map +1 -0
  27. package/dist/proto/audio_frame_pb.d.ts +555 -0
  28. package/dist/proto/audio_frame_pb.js +861 -0
  29. package/dist/proto/audio_frame_pb.js.map +1 -0
  30. package/dist/proto/e2ee_pb.d.ts +651 -0
  31. package/dist/proto/e2ee_pb.js +906 -0
  32. package/dist/proto/e2ee_pb.js.map +1 -0
  33. package/dist/proto/ffi_pb.d.ts +671 -0
  34. package/dist/proto/ffi_pb.js +459 -0
  35. package/dist/proto/ffi_pb.js.map +1 -0
  36. package/dist/proto/handle_pb.d.ts +29 -0
  37. package/dist/proto/handle_pb.js +59 -0
  38. package/dist/proto/handle_pb.js.map +1 -0
  39. package/dist/proto/participant_pb.d.ts +53 -0
  40. package/dist/proto/participant_pb.js +93 -0
  41. package/dist/proto/participant_pb.js.map +1 -0
  42. package/dist/proto/room_pb.d.ts +1479 -0
  43. package/dist/proto/room_pb.js +2172 -0
  44. package/dist/proto/room_pb.js.map +1 -0
  45. package/dist/proto/stats_pb.d.ts +1712 -0
  46. package/dist/proto/stats_pb.js +2238 -0
  47. package/dist/proto/stats_pb.js.map +1 -0
  48. package/dist/proto/track_pb.d.ts +352 -0
  49. package/dist/proto/track_pb.js +550 -0
  50. package/dist/proto/track_pb.js.map +1 -0
  51. package/dist/proto/video_frame_pb.d.ts +854 -0
  52. package/dist/proto/video_frame_pb.js +1214 -0
  53. package/dist/proto/video_frame_pb.js.map +1 -0
  54. package/dist/room.d.ts +94 -0
  55. package/dist/room.js +285 -0
  56. package/dist/room.js.map +1 -0
  57. package/dist/track.d.ts +34 -0
  58. package/dist/track.js +72 -0
  59. package/dist/track.js.map +1 -0
  60. package/dist/track_publication.d.ts +30 -0
  61. package/dist/track_publication.js +66 -0
  62. package/dist/track_publication.js.map +1 -0
  63. package/dist/video_frame.d.ts +110 -0
  64. package/dist/video_frame.js +364 -0
  65. package/dist/video_frame.js.map +1 -0
  66. package/dist/video_source.d.ts +13 -0
  67. package/dist/video_source.js +44 -0
  68. package/dist/video_source.js.map +1 -0
  69. package/dist/video_stream.d.ts +23 -0
  70. package/dist/video_stream.js +56 -0
  71. package/dist/video_stream.js.map +1 -0
  72. package/package.json +15 -11
  73. package/src/audio_frame.ts +45 -0
  74. package/src/audio_source.ts +64 -0
  75. package/src/audio_stream.ts +74 -0
  76. package/src/e2ee.ts +311 -0
  77. package/src/ffi_client.ts +68 -0
  78. package/src/index.ts +52 -0
  79. package/src/lib.rs +5 -0
  80. package/src/native.d.ts +14 -0
  81. package/src/native.js +269 -0
  82. package/src/nodejs.rs +115 -0
  83. package/src/participant.ts +171 -0
  84. package/src/proto/audio_frame_pb.ts +1121 -0
  85. package/src/proto/e2ee_pb.ts +1231 -0
  86. package/src/proto/ffi_pb.ts +969 -0
  87. package/src/proto/handle_pb.ts +69 -0
  88. package/src/proto/participant_pb.ts +121 -0
  89. package/src/proto/room_pb.ts +2843 -0
  90. package/src/proto/stats_pb.ts +2955 -0
  91. package/src/proto/track_pb.ts +683 -0
  92. package/src/proto/video_frame_pb.ts +1568 -0
  93. package/src/room.ts +370 -0
  94. package/src/track.ts +101 -0
  95. package/src/track_publication.ts +90 -0
  96. package/src/video_frame.ts +620 -0
  97. package/src/video_source.ts +61 -0
  98. package/src/video_stream.ts +76 -0
@@ -0,0 +1,555 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ import { FfiOwnedHandle } from "./handle_pb.js";
4
+ /**
5
+ * @generated from enum livekit.proto.AudioStreamType
6
+ */
7
+ export declare enum AudioStreamType {
8
+ /**
9
+ * @generated from enum value: AUDIO_STREAM_NATIVE = 0;
10
+ */
11
+ AUDIO_STREAM_NATIVE = 0,
12
+ /**
13
+ * @generated from enum value: AUDIO_STREAM_HTML = 1;
14
+ */
15
+ AUDIO_STREAM_HTML = 1
16
+ }
17
+ /**
18
+ * @generated from enum livekit.proto.AudioSourceType
19
+ */
20
+ export declare enum AudioSourceType {
21
+ /**
22
+ * @generated from enum value: AUDIO_SOURCE_NATIVE = 0;
23
+ */
24
+ AUDIO_SOURCE_NATIVE = 0
25
+ }
26
+ /**
27
+ * Allocate a new AudioFrameBuffer
28
+ * This is not necessary required because the data structure is fairly simple
29
+ * But keep the API consistent with VideoFrame
30
+ *
31
+ * @generated from message livekit.proto.AllocAudioBufferRequest
32
+ */
33
+ export declare class AllocAudioBufferRequest extends Message<AllocAudioBufferRequest> {
34
+ /**
35
+ * @generated from field: uint32 sample_rate = 1;
36
+ */
37
+ sampleRate: number;
38
+ /**
39
+ * @generated from field: uint32 num_channels = 2;
40
+ */
41
+ numChannels: number;
42
+ /**
43
+ * @generated from field: uint32 samples_per_channel = 3;
44
+ */
45
+ samplesPerChannel: number;
46
+ constructor(data?: PartialMessage<AllocAudioBufferRequest>);
47
+ static readonly runtime: typeof proto3;
48
+ static readonly typeName = "livekit.proto.AllocAudioBufferRequest";
49
+ static readonly fields: FieldList;
50
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllocAudioBufferRequest;
51
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllocAudioBufferRequest;
52
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllocAudioBufferRequest;
53
+ static equals(a: AllocAudioBufferRequest | PlainMessage<AllocAudioBufferRequest> | undefined, b: AllocAudioBufferRequest | PlainMessage<AllocAudioBufferRequest> | undefined): boolean;
54
+ }
55
+ /**
56
+ * @generated from message livekit.proto.AllocAudioBufferResponse
57
+ */
58
+ export declare class AllocAudioBufferResponse extends Message<AllocAudioBufferResponse> {
59
+ /**
60
+ * @generated from field: livekit.proto.OwnedAudioFrameBuffer buffer = 1;
61
+ */
62
+ buffer?: OwnedAudioFrameBuffer;
63
+ constructor(data?: PartialMessage<AllocAudioBufferResponse>);
64
+ static readonly runtime: typeof proto3;
65
+ static readonly typeName = "livekit.proto.AllocAudioBufferResponse";
66
+ static readonly fields: FieldList;
67
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllocAudioBufferResponse;
68
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllocAudioBufferResponse;
69
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllocAudioBufferResponse;
70
+ static equals(a: AllocAudioBufferResponse | PlainMessage<AllocAudioBufferResponse> | undefined, b: AllocAudioBufferResponse | PlainMessage<AllocAudioBufferResponse> | undefined): boolean;
71
+ }
72
+ /**
73
+ * Create a new AudioStream
74
+ * AudioStream is used to receive audio frames from a track
75
+ *
76
+ * @generated from message livekit.proto.NewAudioStreamRequest
77
+ */
78
+ export declare class NewAudioStreamRequest extends Message<NewAudioStreamRequest> {
79
+ /**
80
+ * @generated from field: uint64 track_handle = 1;
81
+ */
82
+ trackHandle: bigint;
83
+ /**
84
+ * @generated from field: livekit.proto.AudioStreamType type = 2;
85
+ */
86
+ type: AudioStreamType;
87
+ constructor(data?: PartialMessage<NewAudioStreamRequest>);
88
+ static readonly runtime: typeof proto3;
89
+ static readonly typeName = "livekit.proto.NewAudioStreamRequest";
90
+ static readonly fields: FieldList;
91
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamRequest;
92
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioStreamRequest;
93
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioStreamRequest;
94
+ static equals(a: NewAudioStreamRequest | PlainMessage<NewAudioStreamRequest> | undefined, b: NewAudioStreamRequest | PlainMessage<NewAudioStreamRequest> | undefined): boolean;
95
+ }
96
+ /**
97
+ * @generated from message livekit.proto.NewAudioStreamResponse
98
+ */
99
+ export declare class NewAudioStreamResponse extends Message<NewAudioStreamResponse> {
100
+ /**
101
+ * @generated from field: livekit.proto.OwnedAudioStream stream = 1;
102
+ */
103
+ stream?: OwnedAudioStream;
104
+ constructor(data?: PartialMessage<NewAudioStreamResponse>);
105
+ static readonly runtime: typeof proto3;
106
+ static readonly typeName = "livekit.proto.NewAudioStreamResponse";
107
+ static readonly fields: FieldList;
108
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamResponse;
109
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioStreamResponse;
110
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioStreamResponse;
111
+ static equals(a: NewAudioStreamResponse | PlainMessage<NewAudioStreamResponse> | undefined, b: NewAudioStreamResponse | PlainMessage<NewAudioStreamResponse> | undefined): boolean;
112
+ }
113
+ /**
114
+ * Create a new AudioSource
115
+ *
116
+ * @generated from message livekit.proto.NewAudioSourceRequest
117
+ */
118
+ export declare class NewAudioSourceRequest extends Message<NewAudioSourceRequest> {
119
+ /**
120
+ * @generated from field: livekit.proto.AudioSourceType type = 1;
121
+ */
122
+ type: AudioSourceType;
123
+ /**
124
+ * @generated from field: optional livekit.proto.AudioSourceOptions options = 2;
125
+ */
126
+ options?: AudioSourceOptions;
127
+ /**
128
+ * @generated from field: uint32 sample_rate = 3;
129
+ */
130
+ sampleRate: number;
131
+ /**
132
+ * @generated from field: uint32 num_channels = 4;
133
+ */
134
+ numChannels: number;
135
+ constructor(data?: PartialMessage<NewAudioSourceRequest>);
136
+ static readonly runtime: typeof proto3;
137
+ static readonly typeName = "livekit.proto.NewAudioSourceRequest";
138
+ static readonly fields: FieldList;
139
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioSourceRequest;
140
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioSourceRequest;
141
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioSourceRequest;
142
+ static equals(a: NewAudioSourceRequest | PlainMessage<NewAudioSourceRequest> | undefined, b: NewAudioSourceRequest | PlainMessage<NewAudioSourceRequest> | undefined): boolean;
143
+ }
144
+ /**
145
+ * @generated from message livekit.proto.NewAudioSourceResponse
146
+ */
147
+ export declare class NewAudioSourceResponse extends Message<NewAudioSourceResponse> {
148
+ /**
149
+ * @generated from field: livekit.proto.OwnedAudioSource source = 1;
150
+ */
151
+ source?: OwnedAudioSource;
152
+ constructor(data?: PartialMessage<NewAudioSourceResponse>);
153
+ static readonly runtime: typeof proto3;
154
+ static readonly typeName = "livekit.proto.NewAudioSourceResponse";
155
+ static readonly fields: FieldList;
156
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioSourceResponse;
157
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioSourceResponse;
158
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioSourceResponse;
159
+ static equals(a: NewAudioSourceResponse | PlainMessage<NewAudioSourceResponse> | undefined, b: NewAudioSourceResponse | PlainMessage<NewAudioSourceResponse> | undefined): boolean;
160
+ }
161
+ /**
162
+ * Push a frame to an AudioSource
163
+ * The data provided must be available as long as the client receive the callback.
164
+ *
165
+ * @generated from message livekit.proto.CaptureAudioFrameRequest
166
+ */
167
+ export declare class CaptureAudioFrameRequest extends Message<CaptureAudioFrameRequest> {
168
+ /**
169
+ * @generated from field: uint64 source_handle = 1;
170
+ */
171
+ sourceHandle: bigint;
172
+ /**
173
+ * @generated from field: livekit.proto.AudioFrameBufferInfo buffer = 2;
174
+ */
175
+ buffer?: AudioFrameBufferInfo;
176
+ constructor(data?: PartialMessage<CaptureAudioFrameRequest>);
177
+ static readonly runtime: typeof proto3;
178
+ static readonly typeName = "livekit.proto.CaptureAudioFrameRequest";
179
+ static readonly fields: FieldList;
180
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameRequest;
181
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameRequest;
182
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameRequest;
183
+ static equals(a: CaptureAudioFrameRequest | PlainMessage<CaptureAudioFrameRequest> | undefined, b: CaptureAudioFrameRequest | PlainMessage<CaptureAudioFrameRequest> | undefined): boolean;
184
+ }
185
+ /**
186
+ * @generated from message livekit.proto.CaptureAudioFrameResponse
187
+ */
188
+ export declare class CaptureAudioFrameResponse extends Message<CaptureAudioFrameResponse> {
189
+ /**
190
+ * @generated from field: uint64 async_id = 1;
191
+ */
192
+ asyncId: bigint;
193
+ constructor(data?: PartialMessage<CaptureAudioFrameResponse>);
194
+ static readonly runtime: typeof proto3;
195
+ static readonly typeName = "livekit.proto.CaptureAudioFrameResponse";
196
+ static readonly fields: FieldList;
197
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameResponse;
198
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameResponse;
199
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameResponse;
200
+ static equals(a: CaptureAudioFrameResponse | PlainMessage<CaptureAudioFrameResponse> | undefined, b: CaptureAudioFrameResponse | PlainMessage<CaptureAudioFrameResponse> | undefined): boolean;
201
+ }
202
+ /**
203
+ * @generated from message livekit.proto.CaptureAudioFrameCallback
204
+ */
205
+ export declare class CaptureAudioFrameCallback extends Message<CaptureAudioFrameCallback> {
206
+ /**
207
+ * @generated from field: uint64 async_id = 1;
208
+ */
209
+ asyncId: bigint;
210
+ /**
211
+ * @generated from field: optional string error = 2;
212
+ */
213
+ error?: string;
214
+ constructor(data?: PartialMessage<CaptureAudioFrameCallback>);
215
+ static readonly runtime: typeof proto3;
216
+ static readonly typeName = "livekit.proto.CaptureAudioFrameCallback";
217
+ static readonly fields: FieldList;
218
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameCallback;
219
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameCallback;
220
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameCallback;
221
+ static equals(a: CaptureAudioFrameCallback | PlainMessage<CaptureAudioFrameCallback> | undefined, b: CaptureAudioFrameCallback | PlainMessage<CaptureAudioFrameCallback> | undefined): boolean;
222
+ }
223
+ /**
224
+ * Create a new AudioResampler
225
+ *
226
+ * @generated from message livekit.proto.NewAudioResamplerRequest
227
+ */
228
+ export declare class NewAudioResamplerRequest extends Message<NewAudioResamplerRequest> {
229
+ constructor(data?: PartialMessage<NewAudioResamplerRequest>);
230
+ static readonly runtime: typeof proto3;
231
+ static readonly typeName = "livekit.proto.NewAudioResamplerRequest";
232
+ static readonly fields: FieldList;
233
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioResamplerRequest;
234
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioResamplerRequest;
235
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioResamplerRequest;
236
+ static equals(a: NewAudioResamplerRequest | PlainMessage<NewAudioResamplerRequest> | undefined, b: NewAudioResamplerRequest | PlainMessage<NewAudioResamplerRequest> | undefined): boolean;
237
+ }
238
+ /**
239
+ * @generated from message livekit.proto.NewAudioResamplerResponse
240
+ */
241
+ export declare class NewAudioResamplerResponse extends Message<NewAudioResamplerResponse> {
242
+ /**
243
+ * @generated from field: livekit.proto.OwnedAudioResampler resampler = 1;
244
+ */
245
+ resampler?: OwnedAudioResampler;
246
+ constructor(data?: PartialMessage<NewAudioResamplerResponse>);
247
+ static readonly runtime: typeof proto3;
248
+ static readonly typeName = "livekit.proto.NewAudioResamplerResponse";
249
+ static readonly fields: FieldList;
250
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioResamplerResponse;
251
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioResamplerResponse;
252
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioResamplerResponse;
253
+ static equals(a: NewAudioResamplerResponse | PlainMessage<NewAudioResamplerResponse> | undefined, b: NewAudioResamplerResponse | PlainMessage<NewAudioResamplerResponse> | undefined): boolean;
254
+ }
255
+ /**
256
+ * Remix and resample an audio frame
257
+ *
258
+ * @generated from message livekit.proto.RemixAndResampleRequest
259
+ */
260
+ export declare class RemixAndResampleRequest extends Message<RemixAndResampleRequest> {
261
+ /**
262
+ * @generated from field: uint64 resampler_handle = 1;
263
+ */
264
+ resamplerHandle: bigint;
265
+ /**
266
+ * @generated from field: livekit.proto.AudioFrameBufferInfo buffer = 2;
267
+ */
268
+ buffer?: AudioFrameBufferInfo;
269
+ /**
270
+ * @generated from field: uint32 num_channels = 3;
271
+ */
272
+ numChannels: number;
273
+ /**
274
+ * @generated from field: uint32 sample_rate = 4;
275
+ */
276
+ sampleRate: number;
277
+ constructor(data?: PartialMessage<RemixAndResampleRequest>);
278
+ static readonly runtime: typeof proto3;
279
+ static readonly typeName = "livekit.proto.RemixAndResampleRequest";
280
+ static readonly fields: FieldList;
281
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemixAndResampleRequest;
282
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemixAndResampleRequest;
283
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleRequest;
284
+ static equals(a: RemixAndResampleRequest | PlainMessage<RemixAndResampleRequest> | undefined, b: RemixAndResampleRequest | PlainMessage<RemixAndResampleRequest> | undefined): boolean;
285
+ }
286
+ /**
287
+ * @generated from message livekit.proto.RemixAndResampleResponse
288
+ */
289
+ export declare class RemixAndResampleResponse extends Message<RemixAndResampleResponse> {
290
+ /**
291
+ * @generated from field: livekit.proto.OwnedAudioFrameBuffer buffer = 1;
292
+ */
293
+ buffer?: OwnedAudioFrameBuffer;
294
+ constructor(data?: PartialMessage<RemixAndResampleResponse>);
295
+ static readonly runtime: typeof proto3;
296
+ static readonly typeName = "livekit.proto.RemixAndResampleResponse";
297
+ static readonly fields: FieldList;
298
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemixAndResampleResponse;
299
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemixAndResampleResponse;
300
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleResponse;
301
+ static equals(a: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined, b: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined): boolean;
302
+ }
303
+ /**
304
+ * @generated from message livekit.proto.AudioFrameBufferInfo
305
+ */
306
+ export declare class AudioFrameBufferInfo extends Message<AudioFrameBufferInfo> {
307
+ /**
308
+ * *const i16
309
+ *
310
+ * @generated from field: uint64 data_ptr = 1;
311
+ */
312
+ dataPtr: bigint;
313
+ /**
314
+ * @generated from field: uint32 num_channels = 2;
315
+ */
316
+ numChannels: number;
317
+ /**
318
+ * @generated from field: uint32 sample_rate = 3;
319
+ */
320
+ sampleRate: number;
321
+ /**
322
+ * @generated from field: uint32 samples_per_channel = 4;
323
+ */
324
+ samplesPerChannel: number;
325
+ constructor(data?: PartialMessage<AudioFrameBufferInfo>);
326
+ static readonly runtime: typeof proto3;
327
+ static readonly typeName = "livekit.proto.AudioFrameBufferInfo";
328
+ static readonly fields: FieldList;
329
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioFrameBufferInfo;
330
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioFrameBufferInfo;
331
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioFrameBufferInfo;
332
+ static equals(a: AudioFrameBufferInfo | PlainMessage<AudioFrameBufferInfo> | undefined, b: AudioFrameBufferInfo | PlainMessage<AudioFrameBufferInfo> | undefined): boolean;
333
+ }
334
+ /**
335
+ * @generated from message livekit.proto.OwnedAudioFrameBuffer
336
+ */
337
+ export declare class OwnedAudioFrameBuffer extends Message<OwnedAudioFrameBuffer> {
338
+ /**
339
+ * @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
340
+ */
341
+ handle?: FfiOwnedHandle;
342
+ /**
343
+ * @generated from field: livekit.proto.AudioFrameBufferInfo info = 2;
344
+ */
345
+ info?: AudioFrameBufferInfo;
346
+ constructor(data?: PartialMessage<OwnedAudioFrameBuffer>);
347
+ static readonly runtime: typeof proto3;
348
+ static readonly typeName = "livekit.proto.OwnedAudioFrameBuffer";
349
+ static readonly fields: FieldList;
350
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioFrameBuffer;
351
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioFrameBuffer;
352
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioFrameBuffer;
353
+ static equals(a: OwnedAudioFrameBuffer | PlainMessage<OwnedAudioFrameBuffer> | undefined, b: OwnedAudioFrameBuffer | PlainMessage<OwnedAudioFrameBuffer> | undefined): boolean;
354
+ }
355
+ /**
356
+ * @generated from message livekit.proto.AudioStreamInfo
357
+ */
358
+ export declare class AudioStreamInfo extends Message<AudioStreamInfo> {
359
+ /**
360
+ * @generated from field: livekit.proto.AudioStreamType type = 1;
361
+ */
362
+ type: AudioStreamType;
363
+ constructor(data?: PartialMessage<AudioStreamInfo>);
364
+ static readonly runtime: typeof proto3;
365
+ static readonly typeName = "livekit.proto.AudioStreamInfo";
366
+ static readonly fields: FieldList;
367
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamInfo;
368
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamInfo;
369
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamInfo;
370
+ static equals(a: AudioStreamInfo | PlainMessage<AudioStreamInfo> | undefined, b: AudioStreamInfo | PlainMessage<AudioStreamInfo> | undefined): boolean;
371
+ }
372
+ /**
373
+ * @generated from message livekit.proto.OwnedAudioStream
374
+ */
375
+ export declare class OwnedAudioStream extends Message<OwnedAudioStream> {
376
+ /**
377
+ * @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
378
+ */
379
+ handle?: FfiOwnedHandle;
380
+ /**
381
+ * @generated from field: livekit.proto.AudioStreamInfo info = 2;
382
+ */
383
+ info?: AudioStreamInfo;
384
+ constructor(data?: PartialMessage<OwnedAudioStream>);
385
+ static readonly runtime: typeof proto3;
386
+ static readonly typeName = "livekit.proto.OwnedAudioStream";
387
+ static readonly fields: FieldList;
388
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioStream;
389
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioStream;
390
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioStream;
391
+ static equals(a: OwnedAudioStream | PlainMessage<OwnedAudioStream> | undefined, b: OwnedAudioStream | PlainMessage<OwnedAudioStream> | undefined): boolean;
392
+ }
393
+ /**
394
+ * @generated from message livekit.proto.AudioStreamEvent
395
+ */
396
+ export declare class AudioStreamEvent extends Message<AudioStreamEvent> {
397
+ /**
398
+ * @generated from field: uint64 stream_handle = 1;
399
+ */
400
+ streamHandle: bigint;
401
+ /**
402
+ * @generated from oneof livekit.proto.AudioStreamEvent.message
403
+ */
404
+ message: {
405
+ /**
406
+ * @generated from field: livekit.proto.AudioFrameReceived frame_received = 2;
407
+ */
408
+ value: AudioFrameReceived;
409
+ case: "frameReceived";
410
+ } | {
411
+ /**
412
+ * @generated from field: livekit.proto.AudioStreamEOS eos = 3;
413
+ */
414
+ value: AudioStreamEOS;
415
+ case: "eos";
416
+ } | {
417
+ case: undefined;
418
+ value?: undefined;
419
+ };
420
+ constructor(data?: PartialMessage<AudioStreamEvent>);
421
+ static readonly runtime: typeof proto3;
422
+ static readonly typeName = "livekit.proto.AudioStreamEvent";
423
+ static readonly fields: FieldList;
424
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamEvent;
425
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamEvent;
426
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamEvent;
427
+ static equals(a: AudioStreamEvent | PlainMessage<AudioStreamEvent> | undefined, b: AudioStreamEvent | PlainMessage<AudioStreamEvent> | undefined): boolean;
428
+ }
429
+ /**
430
+ * @generated from message livekit.proto.AudioFrameReceived
431
+ */
432
+ export declare class AudioFrameReceived extends Message<AudioFrameReceived> {
433
+ /**
434
+ * @generated from field: livekit.proto.OwnedAudioFrameBuffer frame = 1;
435
+ */
436
+ frame?: OwnedAudioFrameBuffer;
437
+ constructor(data?: PartialMessage<AudioFrameReceived>);
438
+ static readonly runtime: typeof proto3;
439
+ static readonly typeName = "livekit.proto.AudioFrameReceived";
440
+ static readonly fields: FieldList;
441
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioFrameReceived;
442
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioFrameReceived;
443
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioFrameReceived;
444
+ static equals(a: AudioFrameReceived | PlainMessage<AudioFrameReceived> | undefined, b: AudioFrameReceived | PlainMessage<AudioFrameReceived> | undefined): boolean;
445
+ }
446
+ /**
447
+ * @generated from message livekit.proto.AudioStreamEOS
448
+ */
449
+ export declare class AudioStreamEOS extends Message<AudioStreamEOS> {
450
+ constructor(data?: PartialMessage<AudioStreamEOS>);
451
+ static readonly runtime: typeof proto3;
452
+ static readonly typeName = "livekit.proto.AudioStreamEOS";
453
+ static readonly fields: FieldList;
454
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamEOS;
455
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamEOS;
456
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamEOS;
457
+ static equals(a: AudioStreamEOS | PlainMessage<AudioStreamEOS> | undefined, b: AudioStreamEOS | PlainMessage<AudioStreamEOS> | undefined): boolean;
458
+ }
459
+ /**
460
+ * @generated from message livekit.proto.AudioSourceOptions
461
+ */
462
+ export declare class AudioSourceOptions extends Message<AudioSourceOptions> {
463
+ /**
464
+ * @generated from field: bool echo_cancellation = 1;
465
+ */
466
+ echoCancellation: boolean;
467
+ /**
468
+ * @generated from field: bool noise_suppression = 2;
469
+ */
470
+ noiseSuppression: boolean;
471
+ /**
472
+ * @generated from field: bool auto_gain_control = 3;
473
+ */
474
+ autoGainControl: boolean;
475
+ constructor(data?: PartialMessage<AudioSourceOptions>);
476
+ static readonly runtime: typeof proto3;
477
+ static readonly typeName = "livekit.proto.AudioSourceOptions";
478
+ static readonly fields: FieldList;
479
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceOptions;
480
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceOptions;
481
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceOptions;
482
+ static equals(a: AudioSourceOptions | PlainMessage<AudioSourceOptions> | undefined, b: AudioSourceOptions | PlainMessage<AudioSourceOptions> | undefined): boolean;
483
+ }
484
+ /**
485
+ * @generated from message livekit.proto.AudioSourceInfo
486
+ */
487
+ export declare class AudioSourceInfo extends Message<AudioSourceInfo> {
488
+ /**
489
+ * @generated from field: livekit.proto.AudioSourceType type = 2;
490
+ */
491
+ type: AudioSourceType;
492
+ constructor(data?: PartialMessage<AudioSourceInfo>);
493
+ static readonly runtime: typeof proto3;
494
+ static readonly typeName = "livekit.proto.AudioSourceInfo";
495
+ static readonly fields: FieldList;
496
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceInfo;
497
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceInfo;
498
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceInfo;
499
+ static equals(a: AudioSourceInfo | PlainMessage<AudioSourceInfo> | undefined, b: AudioSourceInfo | PlainMessage<AudioSourceInfo> | undefined): boolean;
500
+ }
501
+ /**
502
+ * @generated from message livekit.proto.OwnedAudioSource
503
+ */
504
+ export declare class OwnedAudioSource extends Message<OwnedAudioSource> {
505
+ /**
506
+ * @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
507
+ */
508
+ handle?: FfiOwnedHandle;
509
+ /**
510
+ * @generated from field: livekit.proto.AudioSourceInfo info = 2;
511
+ */
512
+ info?: AudioSourceInfo;
513
+ constructor(data?: PartialMessage<OwnedAudioSource>);
514
+ static readonly runtime: typeof proto3;
515
+ static readonly typeName = "livekit.proto.OwnedAudioSource";
516
+ static readonly fields: FieldList;
517
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioSource;
518
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioSource;
519
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioSource;
520
+ static equals(a: OwnedAudioSource | PlainMessage<OwnedAudioSource> | undefined, b: OwnedAudioSource | PlainMessage<OwnedAudioSource> | undefined): boolean;
521
+ }
522
+ /**
523
+ * @generated from message livekit.proto.AudioResamplerInfo
524
+ */
525
+ export declare class AudioResamplerInfo extends Message<AudioResamplerInfo> {
526
+ constructor(data?: PartialMessage<AudioResamplerInfo>);
527
+ static readonly runtime: typeof proto3;
528
+ static readonly typeName = "livekit.proto.AudioResamplerInfo";
529
+ static readonly fields: FieldList;
530
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioResamplerInfo;
531
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioResamplerInfo;
532
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioResamplerInfo;
533
+ static equals(a: AudioResamplerInfo | PlainMessage<AudioResamplerInfo> | undefined, b: AudioResamplerInfo | PlainMessage<AudioResamplerInfo> | undefined): boolean;
534
+ }
535
+ /**
536
+ * @generated from message livekit.proto.OwnedAudioResampler
537
+ */
538
+ export declare class OwnedAudioResampler extends Message<OwnedAudioResampler> {
539
+ /**
540
+ * @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
541
+ */
542
+ handle?: FfiOwnedHandle;
543
+ /**
544
+ * @generated from field: livekit.proto.AudioResamplerInfo info = 2;
545
+ */
546
+ info?: AudioResamplerInfo;
547
+ constructor(data?: PartialMessage<OwnedAudioResampler>);
548
+ static readonly runtime: typeof proto3;
549
+ static readonly typeName = "livekit.proto.OwnedAudioResampler";
550
+ static readonly fields: FieldList;
551
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioResampler;
552
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioResampler;
553
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioResampler;
554
+ static equals(a: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined, b: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined): boolean;
555
+ }