@livekit/rtc-node 0.12.1 → 0.12.2

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 (64) hide show
  1. package/dist/audio_frame.d.cts +32 -0
  2. package/dist/audio_frame.d.ts +12 -5
  3. package/dist/audio_resampler.d.cts +60 -0
  4. package/dist/audio_resampler.d.ts +12 -3
  5. package/dist/audio_source.d.cts +37 -0
  6. package/dist/audio_source.d.ts +13 -5
  7. package/dist/audio_stream.d.cts +38 -0
  8. package/dist/audio_stream.d.ts +17 -5
  9. package/dist/e2ee.d.cts +48 -0
  10. package/dist/e2ee.d.ts +12 -8
  11. package/dist/ffi_client.d.cts +35 -0
  12. package/dist/ffi_client.d.ts +22 -10
  13. package/dist/index.d.cts +57 -0
  14. package/dist/index.d.ts +28 -20
  15. package/dist/napi/native.d.d.cts +21 -0
  16. package/dist/napi/native.d.d.ts +21 -0
  17. package/dist/participant.d.cts +126 -0
  18. package/dist/participant.d.ts +28 -14
  19. package/dist/proto/audio_frame_pb.d.cts +813 -0
  20. package/dist/proto/audio_frame_pb.d.ts +90 -86
  21. package/dist/proto/e2ee_pb.d.cts +585 -0
  22. package/dist/proto/e2ee_pb.d.ts +60 -58
  23. package/dist/proto/ffi_pb.d.cts +851 -0
  24. package/dist/proto/ffi_pb.d.ts +35 -30
  25. package/dist/proto/handle_pb.d.cts +33 -0
  26. package/dist/proto/handle_pb.d.ts +8 -6
  27. package/dist/proto/participant_pb.d.cts +93 -0
  28. package/dist/proto/participant_pb.d.ts +13 -11
  29. package/dist/proto/room_pb.d.cts +2072 -0
  30. package/dist/proto/room_pb.d.ts +198 -196
  31. package/dist/proto/rpc_pb.d.cts +237 -0
  32. package/dist/proto/rpc_pb.d.ts +28 -26
  33. package/dist/proto/stats_pb.d.cts +1653 -0
  34. package/dist/proto/stats_pb.d.ts +96 -94
  35. package/dist/proto/track_pb.d.cts +402 -0
  36. package/dist/proto/track_pb.d.ts +47 -45
  37. package/dist/proto/video_frame_pb.d.cts +617 -0
  38. package/dist/proto/video_frame_pb.d.ts +64 -60
  39. package/dist/room.d.cts +134 -0
  40. package/dist/room.d.ts +36 -22
  41. package/dist/rpc.d.cts +82 -0
  42. package/dist/rpc.d.ts +11 -7
  43. package/dist/track.d.cts +46 -0
  44. package/dist/track.d.ts +25 -14
  45. package/dist/track_publication.d.cts +48 -0
  46. package/dist/track_publication.d.ts +20 -8
  47. package/dist/transcription.d.cts +15 -0
  48. package/dist/transcription.d.ts +4 -3
  49. package/dist/types.d.cts +9 -0
  50. package/dist/types.d.ts +3 -2
  51. package/dist/version.cjs +1 -1
  52. package/dist/version.cjs.map +1 -1
  53. package/dist/version.d.cts +3 -0
  54. package/dist/version.d.ts +3 -2
  55. package/dist/version.js +1 -1
  56. package/dist/version.js.map +1 -1
  57. package/dist/video_frame.d.cts +25 -0
  58. package/dist/video_frame.d.ts +11 -4
  59. package/dist/video_source.d.cts +22 -0
  60. package/dist/video_source.d.ts +13 -6
  61. package/dist/video_stream.d.cts +41 -0
  62. package/dist/video_stream.d.ts +18 -6
  63. package/package.json +14 -9
  64. package/src/version.ts +1 -1
@@ -0,0 +1,813 @@
1
+ import { GenFile, GenMessage, GenEnum } from '@bufbuild/protobuf/codegenv1';
2
+ import { FfiOwnedHandle } from './handle_pb.cjs';
3
+ import { TrackSource } from './track_pb.cjs';
4
+ import { Message } from '@bufbuild/protobuf';
5
+ import './e2ee_pb.cjs';
6
+ import './stats_pb.cjs';
7
+
8
+ /**
9
+ * Describes the file audio_frame.proto.
10
+ */
11
+ declare const file_audio_frame: GenFile;
12
+ /**
13
+ * Create a new AudioStream
14
+ * AudioStream is used to receive audio frames from a track
15
+ *
16
+ * @generated from message livekit.proto.NewAudioStreamRequest
17
+ */
18
+ type NewAudioStreamRequest = Message<"livekit.proto.NewAudioStreamRequest"> & {
19
+ /**
20
+ * @generated from field: required uint64 track_handle = 1;
21
+ */
22
+ trackHandle: bigint;
23
+ /**
24
+ * @generated from field: required livekit.proto.AudioStreamType type = 2;
25
+ */
26
+ type: AudioStreamType;
27
+ /**
28
+ * @generated from field: optional uint32 sample_rate = 3;
29
+ */
30
+ sampleRate: number;
31
+ /**
32
+ * @generated from field: optional uint32 num_channels = 4;
33
+ */
34
+ numChannels: number;
35
+ };
36
+ /**
37
+ * Describes the message livekit.proto.NewAudioStreamRequest.
38
+ * Use `create(NewAudioStreamRequestSchema)` to create a new message.
39
+ */
40
+ declare const NewAudioStreamRequestSchema: GenMessage<NewAudioStreamRequest>;
41
+ /**
42
+ * @generated from message livekit.proto.NewAudioStreamResponse
43
+ */
44
+ type NewAudioStreamResponse = Message<"livekit.proto.NewAudioStreamResponse"> & {
45
+ /**
46
+ * @generated from field: required livekit.proto.OwnedAudioStream stream = 1;
47
+ */
48
+ stream?: OwnedAudioStream;
49
+ };
50
+ /**
51
+ * Describes the message livekit.proto.NewAudioStreamResponse.
52
+ * Use `create(NewAudioStreamResponseSchema)` to create a new message.
53
+ */
54
+ declare const NewAudioStreamResponseSchema: GenMessage<NewAudioStreamResponse>;
55
+ /**
56
+ * @generated from message livekit.proto.AudioStreamFromParticipantRequest
57
+ */
58
+ type AudioStreamFromParticipantRequest = Message<"livekit.proto.AudioStreamFromParticipantRequest"> & {
59
+ /**
60
+ * @generated from field: required uint64 participant_handle = 1;
61
+ */
62
+ participantHandle: bigint;
63
+ /**
64
+ * @generated from field: required livekit.proto.AudioStreamType type = 2;
65
+ */
66
+ type: AudioStreamType;
67
+ /**
68
+ * @generated from field: optional livekit.proto.TrackSource track_source = 3;
69
+ */
70
+ trackSource: TrackSource;
71
+ /**
72
+ * @generated from field: optional uint32 sample_rate = 5;
73
+ */
74
+ sampleRate: number;
75
+ /**
76
+ * @generated from field: optional uint32 num_channels = 6;
77
+ */
78
+ numChannels: number;
79
+ };
80
+ /**
81
+ * Describes the message livekit.proto.AudioStreamFromParticipantRequest.
82
+ * Use `create(AudioStreamFromParticipantRequestSchema)` to create a new message.
83
+ */
84
+ declare const AudioStreamFromParticipantRequestSchema: GenMessage<AudioStreamFromParticipantRequest>;
85
+ /**
86
+ * @generated from message livekit.proto.AudioStreamFromParticipantResponse
87
+ */
88
+ type AudioStreamFromParticipantResponse = Message<"livekit.proto.AudioStreamFromParticipantResponse"> & {
89
+ /**
90
+ * @generated from field: required livekit.proto.OwnedAudioStream stream = 1;
91
+ */
92
+ stream?: OwnedAudioStream;
93
+ };
94
+ /**
95
+ * Describes the message livekit.proto.AudioStreamFromParticipantResponse.
96
+ * Use `create(AudioStreamFromParticipantResponseSchema)` to create a new message.
97
+ */
98
+ declare const AudioStreamFromParticipantResponseSchema: GenMessage<AudioStreamFromParticipantResponse>;
99
+ /**
100
+ * Create a new AudioSource
101
+ *
102
+ * @generated from message livekit.proto.NewAudioSourceRequest
103
+ */
104
+ type NewAudioSourceRequest = Message<"livekit.proto.NewAudioSourceRequest"> & {
105
+ /**
106
+ * @generated from field: required livekit.proto.AudioSourceType type = 1;
107
+ */
108
+ type: AudioSourceType;
109
+ /**
110
+ * @generated from field: optional livekit.proto.AudioSourceOptions options = 2;
111
+ */
112
+ options?: AudioSourceOptions;
113
+ /**
114
+ * @generated from field: required uint32 sample_rate = 3;
115
+ */
116
+ sampleRate: number;
117
+ /**
118
+ * @generated from field: required uint32 num_channels = 4;
119
+ */
120
+ numChannels: number;
121
+ /**
122
+ * @generated from field: optional uint32 queue_size_ms = 5;
123
+ */
124
+ queueSizeMs: number;
125
+ };
126
+ /**
127
+ * Describes the message livekit.proto.NewAudioSourceRequest.
128
+ * Use `create(NewAudioSourceRequestSchema)` to create a new message.
129
+ */
130
+ declare const NewAudioSourceRequestSchema: GenMessage<NewAudioSourceRequest>;
131
+ /**
132
+ * @generated from message livekit.proto.NewAudioSourceResponse
133
+ */
134
+ type NewAudioSourceResponse = Message<"livekit.proto.NewAudioSourceResponse"> & {
135
+ /**
136
+ * @generated from field: required livekit.proto.OwnedAudioSource source = 1;
137
+ */
138
+ source?: OwnedAudioSource;
139
+ };
140
+ /**
141
+ * Describes the message livekit.proto.NewAudioSourceResponse.
142
+ * Use `create(NewAudioSourceResponseSchema)` to create a new message.
143
+ */
144
+ declare const NewAudioSourceResponseSchema: GenMessage<NewAudioSourceResponse>;
145
+ /**
146
+ * Push a frame to an AudioSource
147
+ * The data provided must be available as long as the client receive the callback.
148
+ *
149
+ * @generated from message livekit.proto.CaptureAudioFrameRequest
150
+ */
151
+ type CaptureAudioFrameRequest = Message<"livekit.proto.CaptureAudioFrameRequest"> & {
152
+ /**
153
+ * @generated from field: required uint64 source_handle = 1;
154
+ */
155
+ sourceHandle: bigint;
156
+ /**
157
+ * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2;
158
+ */
159
+ buffer?: AudioFrameBufferInfo;
160
+ };
161
+ /**
162
+ * Describes the message livekit.proto.CaptureAudioFrameRequest.
163
+ * Use `create(CaptureAudioFrameRequestSchema)` to create a new message.
164
+ */
165
+ declare const CaptureAudioFrameRequestSchema: GenMessage<CaptureAudioFrameRequest>;
166
+ /**
167
+ * @generated from message livekit.proto.CaptureAudioFrameResponse
168
+ */
169
+ type CaptureAudioFrameResponse = Message<"livekit.proto.CaptureAudioFrameResponse"> & {
170
+ /**
171
+ * @generated from field: required uint64 async_id = 1;
172
+ */
173
+ asyncId: bigint;
174
+ };
175
+ /**
176
+ * Describes the message livekit.proto.CaptureAudioFrameResponse.
177
+ * Use `create(CaptureAudioFrameResponseSchema)` to create a new message.
178
+ */
179
+ declare const CaptureAudioFrameResponseSchema: GenMessage<CaptureAudioFrameResponse>;
180
+ /**
181
+ * @generated from message livekit.proto.CaptureAudioFrameCallback
182
+ */
183
+ type CaptureAudioFrameCallback = Message<"livekit.proto.CaptureAudioFrameCallback"> & {
184
+ /**
185
+ * @generated from field: required uint64 async_id = 1;
186
+ */
187
+ asyncId: bigint;
188
+ /**
189
+ * @generated from field: optional string error = 2;
190
+ */
191
+ error: string;
192
+ };
193
+ /**
194
+ * Describes the message livekit.proto.CaptureAudioFrameCallback.
195
+ * Use `create(CaptureAudioFrameCallbackSchema)` to create a new message.
196
+ */
197
+ declare const CaptureAudioFrameCallbackSchema: GenMessage<CaptureAudioFrameCallback>;
198
+ /**
199
+ * @generated from message livekit.proto.ClearAudioBufferRequest
200
+ */
201
+ type ClearAudioBufferRequest = Message<"livekit.proto.ClearAudioBufferRequest"> & {
202
+ /**
203
+ * @generated from field: required uint64 source_handle = 1;
204
+ */
205
+ sourceHandle: bigint;
206
+ };
207
+ /**
208
+ * Describes the message livekit.proto.ClearAudioBufferRequest.
209
+ * Use `create(ClearAudioBufferRequestSchema)` to create a new message.
210
+ */
211
+ declare const ClearAudioBufferRequestSchema: GenMessage<ClearAudioBufferRequest>;
212
+ /**
213
+ * @generated from message livekit.proto.ClearAudioBufferResponse
214
+ */
215
+ type ClearAudioBufferResponse = Message<"livekit.proto.ClearAudioBufferResponse"> & {};
216
+ /**
217
+ * Describes the message livekit.proto.ClearAudioBufferResponse.
218
+ * Use `create(ClearAudioBufferResponseSchema)` to create a new message.
219
+ */
220
+ declare const ClearAudioBufferResponseSchema: GenMessage<ClearAudioBufferResponse>;
221
+ /**
222
+ * Create a new AudioResampler
223
+ *
224
+ * @generated from message livekit.proto.NewAudioResamplerRequest
225
+ */
226
+ type NewAudioResamplerRequest = Message<"livekit.proto.NewAudioResamplerRequest"> & {};
227
+ /**
228
+ * Describes the message livekit.proto.NewAudioResamplerRequest.
229
+ * Use `create(NewAudioResamplerRequestSchema)` to create a new message.
230
+ */
231
+ declare const NewAudioResamplerRequestSchema: GenMessage<NewAudioResamplerRequest>;
232
+ /**
233
+ * @generated from message livekit.proto.NewAudioResamplerResponse
234
+ */
235
+ type NewAudioResamplerResponse = Message<"livekit.proto.NewAudioResamplerResponse"> & {
236
+ /**
237
+ * @generated from field: required livekit.proto.OwnedAudioResampler resampler = 1;
238
+ */
239
+ resampler?: OwnedAudioResampler;
240
+ };
241
+ /**
242
+ * Describes the message livekit.proto.NewAudioResamplerResponse.
243
+ * Use `create(NewAudioResamplerResponseSchema)` to create a new message.
244
+ */
245
+ declare const NewAudioResamplerResponseSchema: GenMessage<NewAudioResamplerResponse>;
246
+ /**
247
+ * Remix and resample an audio frame
248
+ *
249
+ * @generated from message livekit.proto.RemixAndResampleRequest
250
+ */
251
+ type RemixAndResampleRequest = Message<"livekit.proto.RemixAndResampleRequest"> & {
252
+ /**
253
+ * @generated from field: required uint64 resampler_handle = 1;
254
+ */
255
+ resamplerHandle: bigint;
256
+ /**
257
+ * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2;
258
+ */
259
+ buffer?: AudioFrameBufferInfo;
260
+ /**
261
+ * @generated from field: required uint32 num_channels = 3;
262
+ */
263
+ numChannels: number;
264
+ /**
265
+ * @generated from field: required uint32 sample_rate = 4;
266
+ */
267
+ sampleRate: number;
268
+ };
269
+ /**
270
+ * Describes the message livekit.proto.RemixAndResampleRequest.
271
+ * Use `create(RemixAndResampleRequestSchema)` to create a new message.
272
+ */
273
+ declare const RemixAndResampleRequestSchema: GenMessage<RemixAndResampleRequest>;
274
+ /**
275
+ * @generated from message livekit.proto.RemixAndResampleResponse
276
+ */
277
+ type RemixAndResampleResponse = Message<"livekit.proto.RemixAndResampleResponse"> & {
278
+ /**
279
+ * @generated from field: required livekit.proto.OwnedAudioFrameBuffer buffer = 1;
280
+ */
281
+ buffer?: OwnedAudioFrameBuffer;
282
+ };
283
+ /**
284
+ * Describes the message livekit.proto.RemixAndResampleResponse.
285
+ * Use `create(RemixAndResampleResponseSchema)` to create a new message.
286
+ */
287
+ declare const RemixAndResampleResponseSchema: GenMessage<RemixAndResampleResponse>;
288
+ /**
289
+ * @generated from message livekit.proto.NewSoxResamplerRequest
290
+ */
291
+ type NewSoxResamplerRequest = Message<"livekit.proto.NewSoxResamplerRequest"> & {
292
+ /**
293
+ * @generated from field: required double input_rate = 1;
294
+ */
295
+ inputRate: number;
296
+ /**
297
+ * @generated from field: required double output_rate = 2;
298
+ */
299
+ outputRate: number;
300
+ /**
301
+ * @generated from field: required uint32 num_channels = 3;
302
+ */
303
+ numChannels: number;
304
+ /**
305
+ * @generated from field: required livekit.proto.SoxResamplerDataType input_data_type = 4;
306
+ */
307
+ inputDataType: SoxResamplerDataType;
308
+ /**
309
+ * @generated from field: required livekit.proto.SoxResamplerDataType output_data_type = 5;
310
+ */
311
+ outputDataType: SoxResamplerDataType;
312
+ /**
313
+ * @generated from field: required livekit.proto.SoxQualityRecipe quality_recipe = 6;
314
+ */
315
+ qualityRecipe: SoxQualityRecipe;
316
+ /**
317
+ * @generated from field: optional uint32 flags = 7;
318
+ */
319
+ flags: number;
320
+ };
321
+ /**
322
+ * Describes the message livekit.proto.NewSoxResamplerRequest.
323
+ * Use `create(NewSoxResamplerRequestSchema)` to create a new message.
324
+ */
325
+ declare const NewSoxResamplerRequestSchema: GenMessage<NewSoxResamplerRequest>;
326
+ /**
327
+ * @generated from message livekit.proto.NewSoxResamplerResponse
328
+ */
329
+ type NewSoxResamplerResponse = Message<"livekit.proto.NewSoxResamplerResponse"> & {
330
+ /**
331
+ * @generated from oneof livekit.proto.NewSoxResamplerResponse.message
332
+ */
333
+ message: {
334
+ /**
335
+ * @generated from field: livekit.proto.OwnedSoxResampler resampler = 1;
336
+ */
337
+ value: OwnedSoxResampler;
338
+ case: "resampler";
339
+ } | {
340
+ /**
341
+ * @generated from field: string error = 2;
342
+ */
343
+ value: string;
344
+ case: "error";
345
+ } | {
346
+ case: undefined;
347
+ value?: undefined;
348
+ };
349
+ };
350
+ /**
351
+ * Describes the message livekit.proto.NewSoxResamplerResponse.
352
+ * Use `create(NewSoxResamplerResponseSchema)` to create a new message.
353
+ */
354
+ declare const NewSoxResamplerResponseSchema: GenMessage<NewSoxResamplerResponse>;
355
+ /**
356
+ * @generated from message livekit.proto.PushSoxResamplerRequest
357
+ */
358
+ type PushSoxResamplerRequest = Message<"livekit.proto.PushSoxResamplerRequest"> & {
359
+ /**
360
+ * @generated from field: required uint64 resampler_handle = 1;
361
+ */
362
+ resamplerHandle: bigint;
363
+ /**
364
+ * *const i16
365
+ *
366
+ * @generated from field: required uint64 data_ptr = 2;
367
+ */
368
+ dataPtr: bigint;
369
+ /**
370
+ * in bytes
371
+ *
372
+ * @generated from field: required uint32 size = 3;
373
+ */
374
+ size: number;
375
+ };
376
+ /**
377
+ * Describes the message livekit.proto.PushSoxResamplerRequest.
378
+ * Use `create(PushSoxResamplerRequestSchema)` to create a new message.
379
+ */
380
+ declare const PushSoxResamplerRequestSchema: GenMessage<PushSoxResamplerRequest>;
381
+ /**
382
+ * @generated from message livekit.proto.PushSoxResamplerResponse
383
+ */
384
+ type PushSoxResamplerResponse = Message<"livekit.proto.PushSoxResamplerResponse"> & {
385
+ /**
386
+ * *const i16 (could be null)
387
+ *
388
+ * @generated from field: required uint64 output_ptr = 1;
389
+ */
390
+ outputPtr: bigint;
391
+ /**
392
+ * in bytes
393
+ *
394
+ * @generated from field: required uint32 size = 2;
395
+ */
396
+ size: number;
397
+ /**
398
+ * @generated from field: optional string error = 3;
399
+ */
400
+ error: string;
401
+ };
402
+ /**
403
+ * Describes the message livekit.proto.PushSoxResamplerResponse.
404
+ * Use `create(PushSoxResamplerResponseSchema)` to create a new message.
405
+ */
406
+ declare const PushSoxResamplerResponseSchema: GenMessage<PushSoxResamplerResponse>;
407
+ /**
408
+ * @generated from message livekit.proto.FlushSoxResamplerRequest
409
+ */
410
+ type FlushSoxResamplerRequest = Message<"livekit.proto.FlushSoxResamplerRequest"> & {
411
+ /**
412
+ * @generated from field: required uint64 resampler_handle = 1;
413
+ */
414
+ resamplerHandle: bigint;
415
+ };
416
+ /**
417
+ * Describes the message livekit.proto.FlushSoxResamplerRequest.
418
+ * Use `create(FlushSoxResamplerRequestSchema)` to create a new message.
419
+ */
420
+ declare const FlushSoxResamplerRequestSchema: GenMessage<FlushSoxResamplerRequest>;
421
+ /**
422
+ * @generated from message livekit.proto.FlushSoxResamplerResponse
423
+ */
424
+ type FlushSoxResamplerResponse = Message<"livekit.proto.FlushSoxResamplerResponse"> & {
425
+ /**
426
+ * *const i16 (could be null)
427
+ *
428
+ * @generated from field: required uint64 output_ptr = 1;
429
+ */
430
+ outputPtr: bigint;
431
+ /**
432
+ * in bytes
433
+ *
434
+ * @generated from field: required uint32 size = 2;
435
+ */
436
+ size: number;
437
+ /**
438
+ * @generated from field: optional string error = 3;
439
+ */
440
+ error: string;
441
+ };
442
+ /**
443
+ * Describes the message livekit.proto.FlushSoxResamplerResponse.
444
+ * Use `create(FlushSoxResamplerResponseSchema)` to create a new message.
445
+ */
446
+ declare const FlushSoxResamplerResponseSchema: GenMessage<FlushSoxResamplerResponse>;
447
+ /**
448
+ * @generated from message livekit.proto.AudioFrameBufferInfo
449
+ */
450
+ type AudioFrameBufferInfo = Message<"livekit.proto.AudioFrameBufferInfo"> & {
451
+ /**
452
+ * *const i16
453
+ *
454
+ * @generated from field: required uint64 data_ptr = 1;
455
+ */
456
+ dataPtr: bigint;
457
+ /**
458
+ * @generated from field: required uint32 num_channels = 2;
459
+ */
460
+ numChannels: number;
461
+ /**
462
+ * @generated from field: required uint32 sample_rate = 3;
463
+ */
464
+ sampleRate: number;
465
+ /**
466
+ * @generated from field: required uint32 samples_per_channel = 4;
467
+ */
468
+ samplesPerChannel: number;
469
+ };
470
+ /**
471
+ * Describes the message livekit.proto.AudioFrameBufferInfo.
472
+ * Use `create(AudioFrameBufferInfoSchema)` to create a new message.
473
+ */
474
+ declare const AudioFrameBufferInfoSchema: GenMessage<AudioFrameBufferInfo>;
475
+ /**
476
+ * @generated from message livekit.proto.OwnedAudioFrameBuffer
477
+ */
478
+ type OwnedAudioFrameBuffer = Message<"livekit.proto.OwnedAudioFrameBuffer"> & {
479
+ /**
480
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
481
+ */
482
+ handle?: FfiOwnedHandle;
483
+ /**
484
+ * @generated from field: required livekit.proto.AudioFrameBufferInfo info = 2;
485
+ */
486
+ info?: AudioFrameBufferInfo;
487
+ };
488
+ /**
489
+ * Describes the message livekit.proto.OwnedAudioFrameBuffer.
490
+ * Use `create(OwnedAudioFrameBufferSchema)` to create a new message.
491
+ */
492
+ declare const OwnedAudioFrameBufferSchema: GenMessage<OwnedAudioFrameBuffer>;
493
+ /**
494
+ * @generated from message livekit.proto.AudioStreamInfo
495
+ */
496
+ type AudioStreamInfo = Message<"livekit.proto.AudioStreamInfo"> & {
497
+ /**
498
+ * @generated from field: required livekit.proto.AudioStreamType type = 1;
499
+ */
500
+ type: AudioStreamType;
501
+ };
502
+ /**
503
+ * Describes the message livekit.proto.AudioStreamInfo.
504
+ * Use `create(AudioStreamInfoSchema)` to create a new message.
505
+ */
506
+ declare const AudioStreamInfoSchema: GenMessage<AudioStreamInfo>;
507
+ /**
508
+ * @generated from message livekit.proto.OwnedAudioStream
509
+ */
510
+ type OwnedAudioStream = Message<"livekit.proto.OwnedAudioStream"> & {
511
+ /**
512
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
513
+ */
514
+ handle?: FfiOwnedHandle;
515
+ /**
516
+ * @generated from field: required livekit.proto.AudioStreamInfo info = 2;
517
+ */
518
+ info?: AudioStreamInfo;
519
+ };
520
+ /**
521
+ * Describes the message livekit.proto.OwnedAudioStream.
522
+ * Use `create(OwnedAudioStreamSchema)` to create a new message.
523
+ */
524
+ declare const OwnedAudioStreamSchema: GenMessage<OwnedAudioStream>;
525
+ /**
526
+ * @generated from message livekit.proto.AudioStreamEvent
527
+ */
528
+ type AudioStreamEvent = Message<"livekit.proto.AudioStreamEvent"> & {
529
+ /**
530
+ * @generated from field: required uint64 stream_handle = 1;
531
+ */
532
+ streamHandle: bigint;
533
+ /**
534
+ * @generated from oneof livekit.proto.AudioStreamEvent.message
535
+ */
536
+ message: {
537
+ /**
538
+ * @generated from field: livekit.proto.AudioFrameReceived frame_received = 2;
539
+ */
540
+ value: AudioFrameReceived;
541
+ case: "frameReceived";
542
+ } | {
543
+ /**
544
+ * @generated from field: livekit.proto.AudioStreamEOS eos = 3;
545
+ */
546
+ value: AudioStreamEOS;
547
+ case: "eos";
548
+ } | {
549
+ case: undefined;
550
+ value?: undefined;
551
+ };
552
+ };
553
+ /**
554
+ * Describes the message livekit.proto.AudioStreamEvent.
555
+ * Use `create(AudioStreamEventSchema)` to create a new message.
556
+ */
557
+ declare const AudioStreamEventSchema: GenMessage<AudioStreamEvent>;
558
+ /**
559
+ * @generated from message livekit.proto.AudioFrameReceived
560
+ */
561
+ type AudioFrameReceived = Message<"livekit.proto.AudioFrameReceived"> & {
562
+ /**
563
+ * @generated from field: required livekit.proto.OwnedAudioFrameBuffer frame = 1;
564
+ */
565
+ frame?: OwnedAudioFrameBuffer;
566
+ };
567
+ /**
568
+ * Describes the message livekit.proto.AudioFrameReceived.
569
+ * Use `create(AudioFrameReceivedSchema)` to create a new message.
570
+ */
571
+ declare const AudioFrameReceivedSchema: GenMessage<AudioFrameReceived>;
572
+ /**
573
+ * @generated from message livekit.proto.AudioStreamEOS
574
+ */
575
+ type AudioStreamEOS = Message<"livekit.proto.AudioStreamEOS"> & {};
576
+ /**
577
+ * Describes the message livekit.proto.AudioStreamEOS.
578
+ * Use `create(AudioStreamEOSSchema)` to create a new message.
579
+ */
580
+ declare const AudioStreamEOSSchema: GenMessage<AudioStreamEOS>;
581
+ /**
582
+ * @generated from message livekit.proto.AudioSourceOptions
583
+ */
584
+ type AudioSourceOptions = Message<"livekit.proto.AudioSourceOptions"> & {
585
+ /**
586
+ * @generated from field: required bool echo_cancellation = 1;
587
+ */
588
+ echoCancellation: boolean;
589
+ /**
590
+ * @generated from field: required bool noise_suppression = 2;
591
+ */
592
+ noiseSuppression: boolean;
593
+ /**
594
+ * @generated from field: required bool auto_gain_control = 3;
595
+ */
596
+ autoGainControl: boolean;
597
+ };
598
+ /**
599
+ * Describes the message livekit.proto.AudioSourceOptions.
600
+ * Use `create(AudioSourceOptionsSchema)` to create a new message.
601
+ */
602
+ declare const AudioSourceOptionsSchema: GenMessage<AudioSourceOptions>;
603
+ /**
604
+ * @generated from message livekit.proto.AudioSourceInfo
605
+ */
606
+ type AudioSourceInfo = Message<"livekit.proto.AudioSourceInfo"> & {
607
+ /**
608
+ * @generated from field: required livekit.proto.AudioSourceType type = 2;
609
+ */
610
+ type: AudioSourceType;
611
+ };
612
+ /**
613
+ * Describes the message livekit.proto.AudioSourceInfo.
614
+ * Use `create(AudioSourceInfoSchema)` to create a new message.
615
+ */
616
+ declare const AudioSourceInfoSchema: GenMessage<AudioSourceInfo>;
617
+ /**
618
+ * @generated from message livekit.proto.OwnedAudioSource
619
+ */
620
+ type OwnedAudioSource = Message<"livekit.proto.OwnedAudioSource"> & {
621
+ /**
622
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
623
+ */
624
+ handle?: FfiOwnedHandle;
625
+ /**
626
+ * @generated from field: required livekit.proto.AudioSourceInfo info = 2;
627
+ */
628
+ info?: AudioSourceInfo;
629
+ };
630
+ /**
631
+ * Describes the message livekit.proto.OwnedAudioSource.
632
+ * Use `create(OwnedAudioSourceSchema)` to create a new message.
633
+ */
634
+ declare const OwnedAudioSourceSchema: GenMessage<OwnedAudioSource>;
635
+ /**
636
+ * @generated from message livekit.proto.AudioResamplerInfo
637
+ */
638
+ type AudioResamplerInfo = Message<"livekit.proto.AudioResamplerInfo"> & {};
639
+ /**
640
+ * Describes the message livekit.proto.AudioResamplerInfo.
641
+ * Use `create(AudioResamplerInfoSchema)` to create a new message.
642
+ */
643
+ declare const AudioResamplerInfoSchema: GenMessage<AudioResamplerInfo>;
644
+ /**
645
+ * @generated from message livekit.proto.OwnedAudioResampler
646
+ */
647
+ type OwnedAudioResampler = Message<"livekit.proto.OwnedAudioResampler"> & {
648
+ /**
649
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
650
+ */
651
+ handle?: FfiOwnedHandle;
652
+ /**
653
+ * @generated from field: required livekit.proto.AudioResamplerInfo info = 2;
654
+ */
655
+ info?: AudioResamplerInfo;
656
+ };
657
+ /**
658
+ * Describes the message livekit.proto.OwnedAudioResampler.
659
+ * Use `create(OwnedAudioResamplerSchema)` to create a new message.
660
+ */
661
+ declare const OwnedAudioResamplerSchema: GenMessage<OwnedAudioResampler>;
662
+ /**
663
+ * @generated from message livekit.proto.SoxResamplerInfo
664
+ */
665
+ type SoxResamplerInfo = Message<"livekit.proto.SoxResamplerInfo"> & {};
666
+ /**
667
+ * Describes the message livekit.proto.SoxResamplerInfo.
668
+ * Use `create(SoxResamplerInfoSchema)` to create a new message.
669
+ */
670
+ declare const SoxResamplerInfoSchema: GenMessage<SoxResamplerInfo>;
671
+ /**
672
+ * @generated from message livekit.proto.OwnedSoxResampler
673
+ */
674
+ type OwnedSoxResampler = Message<"livekit.proto.OwnedSoxResampler"> & {
675
+ /**
676
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
677
+ */
678
+ handle?: FfiOwnedHandle;
679
+ /**
680
+ * @generated from field: required livekit.proto.SoxResamplerInfo info = 2;
681
+ */
682
+ info?: SoxResamplerInfo;
683
+ };
684
+ /**
685
+ * Describes the message livekit.proto.OwnedSoxResampler.
686
+ * Use `create(OwnedSoxResamplerSchema)` to create a new message.
687
+ */
688
+ declare const OwnedSoxResamplerSchema: GenMessage<OwnedSoxResampler>;
689
+ /**
690
+ * @generated from enum livekit.proto.SoxResamplerDataType
691
+ */
692
+ declare enum SoxResamplerDataType {
693
+ /**
694
+ * TODO(theomonnom): support other datatypes (shouldn't really be needed)
695
+ *
696
+ * @generated from enum value: SOXR_DATATYPE_INT16I = 0;
697
+ */
698
+ SOXR_DATATYPE_INT16I = 0,
699
+ /**
700
+ * @generated from enum value: SOXR_DATATYPE_INT16S = 1;
701
+ */
702
+ SOXR_DATATYPE_INT16S = 1
703
+ }
704
+ /**
705
+ * Describes the enum livekit.proto.SoxResamplerDataType.
706
+ */
707
+ declare const SoxResamplerDataTypeSchema: GenEnum<SoxResamplerDataType>;
708
+ /**
709
+ * @generated from enum livekit.proto.SoxQualityRecipe
710
+ */
711
+ declare enum SoxQualityRecipe {
712
+ /**
713
+ * @generated from enum value: SOXR_QUALITY_QUICK = 0;
714
+ */
715
+ SOXR_QUALITY_QUICK = 0,
716
+ /**
717
+ * @generated from enum value: SOXR_QUALITY_LOW = 1;
718
+ */
719
+ SOXR_QUALITY_LOW = 1,
720
+ /**
721
+ * @generated from enum value: SOXR_QUALITY_MEDIUM = 2;
722
+ */
723
+ SOXR_QUALITY_MEDIUM = 2,
724
+ /**
725
+ * @generated from enum value: SOXR_QUALITY_HIGH = 3;
726
+ */
727
+ SOXR_QUALITY_HIGH = 3,
728
+ /**
729
+ * @generated from enum value: SOXR_QUALITY_VERYHIGH = 4;
730
+ */
731
+ SOXR_QUALITY_VERYHIGH = 4
732
+ }
733
+ /**
734
+ * Describes the enum livekit.proto.SoxQualityRecipe.
735
+ */
736
+ declare const SoxQualityRecipeSchema: GenEnum<SoxQualityRecipe>;
737
+ /**
738
+ * @generated from enum livekit.proto.SoxFlagBits
739
+ */
740
+ declare enum SoxFlagBits {
741
+ /**
742
+ * 1 << 0
743
+ *
744
+ * @generated from enum value: SOXR_ROLLOFF_SMALL = 0;
745
+ */
746
+ SOXR_ROLLOFF_SMALL = 0,
747
+ /**
748
+ * 1 << 1
749
+ *
750
+ * @generated from enum value: SOXR_ROLLOFF_MEDIUM = 1;
751
+ */
752
+ SOXR_ROLLOFF_MEDIUM = 1,
753
+ /**
754
+ * 1 << 2
755
+ *
756
+ * @generated from enum value: SOXR_ROLLOFF_NONE = 2;
757
+ */
758
+ SOXR_ROLLOFF_NONE = 2,
759
+ /**
760
+ * 1 << 3
761
+ *
762
+ * @generated from enum value: SOXR_HIGH_PREC_CLOCK = 3;
763
+ */
764
+ SOXR_HIGH_PREC_CLOCK = 3,
765
+ /**
766
+ * 1 << 4
767
+ *
768
+ * @generated from enum value: SOXR_DOUBLE_PRECISION = 4;
769
+ */
770
+ SOXR_DOUBLE_PRECISION = 4,
771
+ /**
772
+ * 1 << 5
773
+ *
774
+ * @generated from enum value: SOXR_VR = 5;
775
+ */
776
+ SOXR_VR = 5
777
+ }
778
+ /**
779
+ * Describes the enum livekit.proto.SoxFlagBits.
780
+ */
781
+ declare const SoxFlagBitsSchema: GenEnum<SoxFlagBits>;
782
+ /**
783
+ * @generated from enum livekit.proto.AudioStreamType
784
+ */
785
+ declare enum AudioStreamType {
786
+ /**
787
+ * @generated from enum value: AUDIO_STREAM_NATIVE = 0;
788
+ */
789
+ AUDIO_STREAM_NATIVE = 0,
790
+ /**
791
+ * @generated from enum value: AUDIO_STREAM_HTML = 1;
792
+ */
793
+ AUDIO_STREAM_HTML = 1
794
+ }
795
+ /**
796
+ * Describes the enum livekit.proto.AudioStreamType.
797
+ */
798
+ declare const AudioStreamTypeSchema: GenEnum<AudioStreamType>;
799
+ /**
800
+ * @generated from enum livekit.proto.AudioSourceType
801
+ */
802
+ declare enum AudioSourceType {
803
+ /**
804
+ * @generated from enum value: AUDIO_SOURCE_NATIVE = 0;
805
+ */
806
+ AUDIO_SOURCE_NATIVE = 0
807
+ }
808
+ /**
809
+ * Describes the enum livekit.proto.AudioSourceType.
810
+ */
811
+ declare const AudioSourceTypeSchema: GenEnum<AudioSourceType>;
812
+
813
+ export { type AudioFrameBufferInfo, AudioFrameBufferInfoSchema, type AudioFrameReceived, AudioFrameReceivedSchema, type AudioResamplerInfo, AudioResamplerInfoSchema, type AudioSourceInfo, AudioSourceInfoSchema, type AudioSourceOptions, AudioSourceOptionsSchema, AudioSourceType, AudioSourceTypeSchema, type AudioStreamEOS, AudioStreamEOSSchema, type AudioStreamEvent, AudioStreamEventSchema, type AudioStreamFromParticipantRequest, AudioStreamFromParticipantRequestSchema, type AudioStreamFromParticipantResponse, AudioStreamFromParticipantResponseSchema, type AudioStreamInfo, AudioStreamInfoSchema, AudioStreamType, AudioStreamTypeSchema, type CaptureAudioFrameCallback, CaptureAudioFrameCallbackSchema, type CaptureAudioFrameRequest, CaptureAudioFrameRequestSchema, type CaptureAudioFrameResponse, CaptureAudioFrameResponseSchema, type ClearAudioBufferRequest, ClearAudioBufferRequestSchema, type ClearAudioBufferResponse, ClearAudioBufferResponseSchema, type FlushSoxResamplerRequest, FlushSoxResamplerRequestSchema, type FlushSoxResamplerResponse, FlushSoxResamplerResponseSchema, type NewAudioResamplerRequest, NewAudioResamplerRequestSchema, type NewAudioResamplerResponse, NewAudioResamplerResponseSchema, type NewAudioSourceRequest, NewAudioSourceRequestSchema, type NewAudioSourceResponse, NewAudioSourceResponseSchema, type NewAudioStreamRequest, NewAudioStreamRequestSchema, type NewAudioStreamResponse, NewAudioStreamResponseSchema, type NewSoxResamplerRequest, NewSoxResamplerRequestSchema, type NewSoxResamplerResponse, NewSoxResamplerResponseSchema, type OwnedAudioFrameBuffer, OwnedAudioFrameBufferSchema, type OwnedAudioResampler, OwnedAudioResamplerSchema, type OwnedAudioSource, OwnedAudioSourceSchema, type OwnedAudioStream, OwnedAudioStreamSchema, type OwnedSoxResampler, OwnedSoxResamplerSchema, type PushSoxResamplerRequest, PushSoxResamplerRequestSchema, type PushSoxResamplerResponse, PushSoxResamplerResponseSchema, type RemixAndResampleRequest, RemixAndResampleRequestSchema, type RemixAndResampleResponse, RemixAndResampleResponseSchema, SoxFlagBits, SoxFlagBitsSchema, SoxQualityRecipe, SoxQualityRecipeSchema, SoxResamplerDataType, SoxResamplerDataTypeSchema, type SoxResamplerInfo, SoxResamplerInfoSchema, file_audio_frame };