@livekit/rtc-node 0.13.9 → 0.13.11

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 (55) hide show
  1. package/dist/audio_filter.cjs +48 -0
  2. package/dist/audio_filter.cjs.map +1 -0
  3. package/dist/audio_filter.d.cts +5 -0
  4. package/dist/audio_filter.d.ts +5 -0
  5. package/dist/audio_filter.d.ts.map +1 -0
  6. package/dist/audio_filter.js +27 -0
  7. package/dist/audio_filter.js.map +1 -0
  8. package/dist/audio_stream.cjs +15 -5
  9. package/dist/audio_stream.cjs.map +1 -1
  10. package/dist/audio_stream.d.cts +15 -2
  11. package/dist/audio_stream.d.ts +15 -2
  12. package/dist/audio_stream.d.ts.map +1 -1
  13. package/dist/audio_stream.js +15 -5
  14. package/dist/audio_stream.js.map +1 -1
  15. package/dist/index.cjs +3 -0
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +2 -1
  18. package/dist/index.d.ts +2 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +2 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/proto/audio_frame_pb.cjs +312 -2
  23. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  24. package/dist/proto/audio_frame_pb.d.cts +278 -1
  25. package/dist/proto/audio_frame_pb.d.ts +278 -1
  26. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  27. package/dist/proto/audio_frame_pb.js +301 -2
  28. package/dist/proto/audio_frame_pb.js.map +1 -1
  29. package/dist/proto/ffi_pb.cjs +12 -2
  30. package/dist/proto/ffi_pb.cjs.map +1 -1
  31. package/dist/proto/ffi_pb.d.cts +65 -1
  32. package/dist/proto/ffi_pb.d.ts +65 -1
  33. package/dist/proto/ffi_pb.d.ts.map +1 -1
  34. package/dist/proto/ffi_pb.js +13 -3
  35. package/dist/proto/ffi_pb.js.map +1 -1
  36. package/dist/version.cjs +1 -1
  37. package/dist/version.cjs.map +1 -1
  38. package/dist/version.d.cts +1 -1
  39. package/dist/version.d.ts +1 -1
  40. package/dist/version.d.ts.map +1 -1
  41. package/dist/version.js +1 -1
  42. package/dist/version.js.map +1 -1
  43. package/dist/video_frame.cjs +3 -1
  44. package/dist/video_frame.cjs.map +1 -1
  45. package/dist/video_frame.d.ts.map +1 -1
  46. package/dist/video_frame.js +4 -2
  47. package/dist/video_frame.js.map +1 -1
  48. package/package.json +6 -6
  49. package/src/audio_filter.ts +29 -0
  50. package/src/audio_stream.ts +38 -5
  51. package/src/index.ts +2 -0
  52. package/src/proto/audio_frame_pb.ts +533 -0
  53. package/src/proto/ffi_pb.ts +75 -1
  54. package/src/version.ts +1 -1
  55. package/src/video_frame.ts +5 -2
@@ -130,6 +130,16 @@ declare class NewAudioStreamRequest extends Message<NewAudioStreamRequest> {
130
130
  * @generated from field: optional uint32 num_channels = 4;
131
131
  */
132
132
  numChannels?: number;
133
+ /**
134
+ * Unique identifier passed in LoadAudioFilterPluginRequest
135
+ *
136
+ * @generated from field: optional string audio_filter_module_id = 5;
137
+ */
138
+ audioFilterModuleId?: string;
139
+ /**
140
+ * @generated from field: optional string audio_filter_options = 6;
141
+ */
142
+ audioFilterOptions?: string;
133
143
  constructor(data?: PartialMessage<NewAudioStreamRequest>);
134
144
  static readonly runtime: typeof proto2;
135
145
  static readonly typeName = "livekit.proto.NewAudioStreamRequest";
@@ -180,6 +190,14 @@ declare class AudioStreamFromParticipantRequest extends Message<AudioStreamFromP
180
190
  * @generated from field: optional uint32 num_channels = 6;
181
191
  */
182
192
  numChannels?: number;
193
+ /**
194
+ * @generated from field: optional string audio_filter_module_id = 7;
195
+ */
196
+ audioFilterModuleId?: string;
197
+ /**
198
+ * @generated from field: optional string audio_filter_options = 8;
199
+ */
200
+ audioFilterOptions?: string;
183
201
  constructor(data?: PartialMessage<AudioStreamFromParticipantRequest>);
184
202
  static readonly runtime: typeof proto2;
185
203
  static readonly typeName = "livekit.proto.AudioStreamFromParticipantRequest";
@@ -430,6 +448,198 @@ declare class RemixAndResampleResponse extends Message<RemixAndResampleResponse>
430
448
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleResponse;
431
449
  static equals(a: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined, b: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined): boolean;
432
450
  }
451
+ /**
452
+ * @generated from message livekit.proto.NewApmRequest
453
+ */
454
+ declare class NewApmRequest extends Message<NewApmRequest> {
455
+ /**
456
+ * @generated from field: required bool echo_canceller_enabled = 1;
457
+ */
458
+ echoCancellerEnabled?: boolean;
459
+ /**
460
+ * @generated from field: required bool gain_controller_enabled = 2;
461
+ */
462
+ gainControllerEnabled?: boolean;
463
+ /**
464
+ * @generated from field: required bool high_pass_filter_enabled = 3;
465
+ */
466
+ highPassFilterEnabled?: boolean;
467
+ /**
468
+ * @generated from field: required bool noise_suppression_enabled = 4;
469
+ */
470
+ noiseSuppressionEnabled?: boolean;
471
+ constructor(data?: PartialMessage<NewApmRequest>);
472
+ static readonly runtime: typeof proto2;
473
+ static readonly typeName = "livekit.proto.NewApmRequest";
474
+ static readonly fields: FieldList;
475
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewApmRequest;
476
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewApmRequest;
477
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewApmRequest;
478
+ static equals(a: NewApmRequest | PlainMessage<NewApmRequest> | undefined, b: NewApmRequest | PlainMessage<NewApmRequest> | undefined): boolean;
479
+ }
480
+ /**
481
+ * @generated from message livekit.proto.NewApmResponse
482
+ */
483
+ declare class NewApmResponse extends Message<NewApmResponse> {
484
+ /**
485
+ * @generated from field: required livekit.proto.OwnedApm apm = 1;
486
+ */
487
+ apm?: OwnedApm;
488
+ constructor(data?: PartialMessage<NewApmResponse>);
489
+ static readonly runtime: typeof proto2;
490
+ static readonly typeName = "livekit.proto.NewApmResponse";
491
+ static readonly fields: FieldList;
492
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewApmResponse;
493
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewApmResponse;
494
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewApmResponse;
495
+ static equals(a: NewApmResponse | PlainMessage<NewApmResponse> | undefined, b: NewApmResponse | PlainMessage<NewApmResponse> | undefined): boolean;
496
+ }
497
+ /**
498
+ * @generated from message livekit.proto.ApmProcessStreamRequest
499
+ */
500
+ declare class ApmProcessStreamRequest extends Message<ApmProcessStreamRequest> {
501
+ /**
502
+ * @generated from field: required uint64 apm_handle = 1;
503
+ */
504
+ apmHandle?: bigint;
505
+ /**
506
+ * *mut i16
507
+ *
508
+ * @generated from field: required uint64 data_ptr = 2;
509
+ */
510
+ dataPtr?: bigint;
511
+ /**
512
+ * in bytes
513
+ *
514
+ * @generated from field: required uint32 size = 3;
515
+ */
516
+ size?: number;
517
+ /**
518
+ * @generated from field: required uint32 sample_rate = 4;
519
+ */
520
+ sampleRate?: number;
521
+ /**
522
+ * @generated from field: required uint32 num_channels = 5;
523
+ */
524
+ numChannels?: number;
525
+ constructor(data?: PartialMessage<ApmProcessStreamRequest>);
526
+ static readonly runtime: typeof proto2;
527
+ static readonly typeName = "livekit.proto.ApmProcessStreamRequest";
528
+ static readonly fields: FieldList;
529
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessStreamRequest;
530
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessStreamRequest;
531
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessStreamRequest;
532
+ static equals(a: ApmProcessStreamRequest | PlainMessage<ApmProcessStreamRequest> | undefined, b: ApmProcessStreamRequest | PlainMessage<ApmProcessStreamRequest> | undefined): boolean;
533
+ }
534
+ /**
535
+ * @generated from message livekit.proto.ApmProcessStreamResponse
536
+ */
537
+ declare class ApmProcessStreamResponse extends Message<ApmProcessStreamResponse> {
538
+ /**
539
+ * @generated from field: optional string error = 1;
540
+ */
541
+ error?: string;
542
+ constructor(data?: PartialMessage<ApmProcessStreamResponse>);
543
+ static readonly runtime: typeof proto2;
544
+ static readonly typeName = "livekit.proto.ApmProcessStreamResponse";
545
+ static readonly fields: FieldList;
546
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessStreamResponse;
547
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessStreamResponse;
548
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessStreamResponse;
549
+ static equals(a: ApmProcessStreamResponse | PlainMessage<ApmProcessStreamResponse> | undefined, b: ApmProcessStreamResponse | PlainMessage<ApmProcessStreamResponse> | undefined): boolean;
550
+ }
551
+ /**
552
+ * @generated from message livekit.proto.ApmProcessReverseStreamRequest
553
+ */
554
+ declare class ApmProcessReverseStreamRequest extends Message<ApmProcessReverseStreamRequest> {
555
+ /**
556
+ * @generated from field: required uint64 apm_handle = 1;
557
+ */
558
+ apmHandle?: bigint;
559
+ /**
560
+ * *mut i16
561
+ *
562
+ * @generated from field: required uint64 data_ptr = 2;
563
+ */
564
+ dataPtr?: bigint;
565
+ /**
566
+ * in bytes
567
+ *
568
+ * @generated from field: required uint32 size = 3;
569
+ */
570
+ size?: number;
571
+ /**
572
+ * @generated from field: required uint32 sample_rate = 4;
573
+ */
574
+ sampleRate?: number;
575
+ /**
576
+ * @generated from field: required uint32 num_channels = 5;
577
+ */
578
+ numChannels?: number;
579
+ constructor(data?: PartialMessage<ApmProcessReverseStreamRequest>);
580
+ static readonly runtime: typeof proto2;
581
+ static readonly typeName = "livekit.proto.ApmProcessReverseStreamRequest";
582
+ static readonly fields: FieldList;
583
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessReverseStreamRequest;
584
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamRequest;
585
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamRequest;
586
+ static equals(a: ApmProcessReverseStreamRequest | PlainMessage<ApmProcessReverseStreamRequest> | undefined, b: ApmProcessReverseStreamRequest | PlainMessage<ApmProcessReverseStreamRequest> | undefined): boolean;
587
+ }
588
+ /**
589
+ * @generated from message livekit.proto.ApmProcessReverseStreamResponse
590
+ */
591
+ declare class ApmProcessReverseStreamResponse extends Message<ApmProcessReverseStreamResponse> {
592
+ /**
593
+ * @generated from field: optional string error = 1;
594
+ */
595
+ error?: string;
596
+ constructor(data?: PartialMessage<ApmProcessReverseStreamResponse>);
597
+ static readonly runtime: typeof proto2;
598
+ static readonly typeName = "livekit.proto.ApmProcessReverseStreamResponse";
599
+ static readonly fields: FieldList;
600
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessReverseStreamResponse;
601
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamResponse;
602
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamResponse;
603
+ static equals(a: ApmProcessReverseStreamResponse | PlainMessage<ApmProcessReverseStreamResponse> | undefined, b: ApmProcessReverseStreamResponse | PlainMessage<ApmProcessReverseStreamResponse> | undefined): boolean;
604
+ }
605
+ /**
606
+ * @generated from message livekit.proto.ApmSetStreamDelayRequest
607
+ */
608
+ declare class ApmSetStreamDelayRequest extends Message<ApmSetStreamDelayRequest> {
609
+ /**
610
+ * @generated from field: required uint64 apm_handle = 1;
611
+ */
612
+ apmHandle?: bigint;
613
+ /**
614
+ * @generated from field: required int32 delay_ms = 2;
615
+ */
616
+ delayMs?: number;
617
+ constructor(data?: PartialMessage<ApmSetStreamDelayRequest>);
618
+ static readonly runtime: typeof proto2;
619
+ static readonly typeName = "livekit.proto.ApmSetStreamDelayRequest";
620
+ static readonly fields: FieldList;
621
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmSetStreamDelayRequest;
622
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmSetStreamDelayRequest;
623
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmSetStreamDelayRequest;
624
+ static equals(a: ApmSetStreamDelayRequest | PlainMessage<ApmSetStreamDelayRequest> | undefined, b: ApmSetStreamDelayRequest | PlainMessage<ApmSetStreamDelayRequest> | undefined): boolean;
625
+ }
626
+ /**
627
+ * @generated from message livekit.proto.ApmSetStreamDelayResponse
628
+ */
629
+ declare class ApmSetStreamDelayResponse extends Message<ApmSetStreamDelayResponse> {
630
+ /**
631
+ * @generated from field: optional string error = 1;
632
+ */
633
+ error?: string;
634
+ constructor(data?: PartialMessage<ApmSetStreamDelayResponse>);
635
+ static readonly runtime: typeof proto2;
636
+ static readonly typeName = "livekit.proto.ApmSetStreamDelayResponse";
637
+ static readonly fields: FieldList;
638
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmSetStreamDelayResponse;
639
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmSetStreamDelayResponse;
640
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmSetStreamDelayResponse;
641
+ static equals(a: ApmSetStreamDelayResponse | PlainMessage<ApmSetStreamDelayResponse> | undefined, b: ApmSetStreamDelayResponse | PlainMessage<ApmSetStreamDelayResponse> | undefined): boolean;
642
+ }
433
643
  /**
434
644
  * @generated from message livekit.proto.NewSoxResamplerRequest
435
645
  */
@@ -860,6 +1070,23 @@ declare class OwnedAudioResampler extends Message<OwnedAudioResampler> {
860
1070
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioResampler;
861
1071
  static equals(a: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined, b: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined): boolean;
862
1072
  }
1073
+ /**
1074
+ * @generated from message livekit.proto.OwnedApm
1075
+ */
1076
+ declare class OwnedApm extends Message<OwnedApm> {
1077
+ /**
1078
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
1079
+ */
1080
+ handle?: FfiOwnedHandle;
1081
+ constructor(data?: PartialMessage<OwnedApm>);
1082
+ static readonly runtime: typeof proto2;
1083
+ static readonly typeName = "livekit.proto.OwnedApm";
1084
+ static readonly fields: FieldList;
1085
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedApm;
1086
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedApm;
1087
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedApm;
1088
+ static equals(a: OwnedApm | PlainMessage<OwnedApm> | undefined, b: OwnedApm | PlainMessage<OwnedApm> | undefined): boolean;
1089
+ }
863
1090
  /**
864
1091
  * @generated from message livekit.proto.SoxResamplerInfo
865
1092
  */
@@ -894,5 +1121,55 @@ declare class OwnedSoxResampler extends Message<OwnedSoxResampler> {
894
1121
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedSoxResampler;
895
1122
  static equals(a: OwnedSoxResampler | PlainMessage<OwnedSoxResampler> | undefined, b: OwnedSoxResampler | PlainMessage<OwnedSoxResampler> | undefined): boolean;
896
1123
  }
1124
+ /**
1125
+ * Audio Filter Plugin
1126
+ *
1127
+ * @generated from message livekit.proto.LoadAudioFilterPluginRequest
1128
+ */
1129
+ declare class LoadAudioFilterPluginRequest extends Message<LoadAudioFilterPluginRequest> {
1130
+ /**
1131
+ * path for ffi audio filter plugin
1132
+ *
1133
+ * @generated from field: required string plugin_path = 1;
1134
+ */
1135
+ pluginPath?: string;
1136
+ /**
1137
+ * Optional: paths for dependency dylibs
1138
+ *
1139
+ * @generated from field: repeated string dependencies = 2;
1140
+ */
1141
+ dependencies: string[];
1142
+ /**
1143
+ * Unique identifier of the plugin
1144
+ *
1145
+ * @generated from field: required string module_id = 3;
1146
+ */
1147
+ moduleId?: string;
1148
+ constructor(data?: PartialMessage<LoadAudioFilterPluginRequest>);
1149
+ static readonly runtime: typeof proto2;
1150
+ static readonly typeName = "livekit.proto.LoadAudioFilterPluginRequest";
1151
+ static readonly fields: FieldList;
1152
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LoadAudioFilterPluginRequest;
1153
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginRequest;
1154
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginRequest;
1155
+ static equals(a: LoadAudioFilterPluginRequest | PlainMessage<LoadAudioFilterPluginRequest> | undefined, b: LoadAudioFilterPluginRequest | PlainMessage<LoadAudioFilterPluginRequest> | undefined): boolean;
1156
+ }
1157
+ /**
1158
+ * @generated from message livekit.proto.LoadAudioFilterPluginResponse
1159
+ */
1160
+ declare class LoadAudioFilterPluginResponse extends Message<LoadAudioFilterPluginResponse> {
1161
+ /**
1162
+ * @generated from field: optional string error = 1;
1163
+ */
1164
+ error?: string;
1165
+ constructor(data?: PartialMessage<LoadAudioFilterPluginResponse>);
1166
+ static readonly runtime: typeof proto2;
1167
+ static readonly typeName = "livekit.proto.LoadAudioFilterPluginResponse";
1168
+ static readonly fields: FieldList;
1169
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LoadAudioFilterPluginResponse;
1170
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginResponse;
1171
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginResponse;
1172
+ static equals(a: LoadAudioFilterPluginResponse | PlainMessage<LoadAudioFilterPluginResponse> | undefined, b: LoadAudioFilterPluginResponse | PlainMessage<LoadAudioFilterPluginResponse> | undefined): boolean;
1173
+ }
897
1174
 
898
- export { AudioFrameBufferInfo, AudioFrameReceived, AudioResamplerInfo, AudioSourceInfo, AudioSourceOptions, AudioSourceType, AudioStreamEOS, AudioStreamEvent, AudioStreamFromParticipantRequest, AudioStreamFromParticipantResponse, AudioStreamInfo, AudioStreamType, CaptureAudioFrameCallback, CaptureAudioFrameRequest, CaptureAudioFrameResponse, ClearAudioBufferRequest, ClearAudioBufferResponse, FlushSoxResamplerRequest, FlushSoxResamplerResponse, NewAudioResamplerRequest, NewAudioResamplerResponse, NewAudioSourceRequest, NewAudioSourceResponse, NewAudioStreamRequest, NewAudioStreamResponse, NewSoxResamplerRequest, NewSoxResamplerResponse, OwnedAudioFrameBuffer, OwnedAudioResampler, OwnedAudioSource, OwnedAudioStream, OwnedSoxResampler, PushSoxResamplerRequest, PushSoxResamplerResponse, RemixAndResampleRequest, RemixAndResampleResponse, SoxFlagBits, SoxQualityRecipe, SoxResamplerDataType, SoxResamplerInfo };
1175
+ export { ApmProcessReverseStreamRequest, ApmProcessReverseStreamResponse, ApmProcessStreamRequest, ApmProcessStreamResponse, ApmSetStreamDelayRequest, ApmSetStreamDelayResponse, AudioFrameBufferInfo, AudioFrameReceived, AudioResamplerInfo, AudioSourceInfo, AudioSourceOptions, AudioSourceType, AudioStreamEOS, AudioStreamEvent, AudioStreamFromParticipantRequest, AudioStreamFromParticipantResponse, AudioStreamInfo, AudioStreamType, CaptureAudioFrameCallback, CaptureAudioFrameRequest, CaptureAudioFrameResponse, ClearAudioBufferRequest, ClearAudioBufferResponse, FlushSoxResamplerRequest, FlushSoxResamplerResponse, LoadAudioFilterPluginRequest, LoadAudioFilterPluginResponse, NewApmRequest, NewApmResponse, NewAudioResamplerRequest, NewAudioResamplerResponse, NewAudioSourceRequest, NewAudioSourceResponse, NewAudioStreamRequest, NewAudioStreamResponse, NewSoxResamplerRequest, NewSoxResamplerResponse, OwnedApm, OwnedAudioFrameBuffer, OwnedAudioResampler, OwnedAudioSource, OwnedAudioStream, OwnedSoxResampler, PushSoxResamplerRequest, PushSoxResamplerResponse, RemixAndResampleRequest, RemixAndResampleResponse, SoxFlagBits, SoxQualityRecipe, SoxResamplerDataType, SoxResamplerInfo };
@@ -130,6 +130,16 @@ declare class NewAudioStreamRequest extends Message<NewAudioStreamRequest> {
130
130
  * @generated from field: optional uint32 num_channels = 4;
131
131
  */
132
132
  numChannels?: number;
133
+ /**
134
+ * Unique identifier passed in LoadAudioFilterPluginRequest
135
+ *
136
+ * @generated from field: optional string audio_filter_module_id = 5;
137
+ */
138
+ audioFilterModuleId?: string;
139
+ /**
140
+ * @generated from field: optional string audio_filter_options = 6;
141
+ */
142
+ audioFilterOptions?: string;
133
143
  constructor(data?: PartialMessage<NewAudioStreamRequest>);
134
144
  static readonly runtime: typeof proto2;
135
145
  static readonly typeName = "livekit.proto.NewAudioStreamRequest";
@@ -180,6 +190,14 @@ declare class AudioStreamFromParticipantRequest extends Message<AudioStreamFromP
180
190
  * @generated from field: optional uint32 num_channels = 6;
181
191
  */
182
192
  numChannels?: number;
193
+ /**
194
+ * @generated from field: optional string audio_filter_module_id = 7;
195
+ */
196
+ audioFilterModuleId?: string;
197
+ /**
198
+ * @generated from field: optional string audio_filter_options = 8;
199
+ */
200
+ audioFilterOptions?: string;
183
201
  constructor(data?: PartialMessage<AudioStreamFromParticipantRequest>);
184
202
  static readonly runtime: typeof proto2;
185
203
  static readonly typeName = "livekit.proto.AudioStreamFromParticipantRequest";
@@ -430,6 +448,198 @@ declare class RemixAndResampleResponse extends Message<RemixAndResampleResponse>
430
448
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleResponse;
431
449
  static equals(a: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined, b: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined): boolean;
432
450
  }
451
+ /**
452
+ * @generated from message livekit.proto.NewApmRequest
453
+ */
454
+ declare class NewApmRequest extends Message<NewApmRequest> {
455
+ /**
456
+ * @generated from field: required bool echo_canceller_enabled = 1;
457
+ */
458
+ echoCancellerEnabled?: boolean;
459
+ /**
460
+ * @generated from field: required bool gain_controller_enabled = 2;
461
+ */
462
+ gainControllerEnabled?: boolean;
463
+ /**
464
+ * @generated from field: required bool high_pass_filter_enabled = 3;
465
+ */
466
+ highPassFilterEnabled?: boolean;
467
+ /**
468
+ * @generated from field: required bool noise_suppression_enabled = 4;
469
+ */
470
+ noiseSuppressionEnabled?: boolean;
471
+ constructor(data?: PartialMessage<NewApmRequest>);
472
+ static readonly runtime: typeof proto2;
473
+ static readonly typeName = "livekit.proto.NewApmRequest";
474
+ static readonly fields: FieldList;
475
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewApmRequest;
476
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewApmRequest;
477
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewApmRequest;
478
+ static equals(a: NewApmRequest | PlainMessage<NewApmRequest> | undefined, b: NewApmRequest | PlainMessage<NewApmRequest> | undefined): boolean;
479
+ }
480
+ /**
481
+ * @generated from message livekit.proto.NewApmResponse
482
+ */
483
+ declare class NewApmResponse extends Message<NewApmResponse> {
484
+ /**
485
+ * @generated from field: required livekit.proto.OwnedApm apm = 1;
486
+ */
487
+ apm?: OwnedApm;
488
+ constructor(data?: PartialMessage<NewApmResponse>);
489
+ static readonly runtime: typeof proto2;
490
+ static readonly typeName = "livekit.proto.NewApmResponse";
491
+ static readonly fields: FieldList;
492
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewApmResponse;
493
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewApmResponse;
494
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewApmResponse;
495
+ static equals(a: NewApmResponse | PlainMessage<NewApmResponse> | undefined, b: NewApmResponse | PlainMessage<NewApmResponse> | undefined): boolean;
496
+ }
497
+ /**
498
+ * @generated from message livekit.proto.ApmProcessStreamRequest
499
+ */
500
+ declare class ApmProcessStreamRequest extends Message<ApmProcessStreamRequest> {
501
+ /**
502
+ * @generated from field: required uint64 apm_handle = 1;
503
+ */
504
+ apmHandle?: bigint;
505
+ /**
506
+ * *mut i16
507
+ *
508
+ * @generated from field: required uint64 data_ptr = 2;
509
+ */
510
+ dataPtr?: bigint;
511
+ /**
512
+ * in bytes
513
+ *
514
+ * @generated from field: required uint32 size = 3;
515
+ */
516
+ size?: number;
517
+ /**
518
+ * @generated from field: required uint32 sample_rate = 4;
519
+ */
520
+ sampleRate?: number;
521
+ /**
522
+ * @generated from field: required uint32 num_channels = 5;
523
+ */
524
+ numChannels?: number;
525
+ constructor(data?: PartialMessage<ApmProcessStreamRequest>);
526
+ static readonly runtime: typeof proto2;
527
+ static readonly typeName = "livekit.proto.ApmProcessStreamRequest";
528
+ static readonly fields: FieldList;
529
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessStreamRequest;
530
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessStreamRequest;
531
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessStreamRequest;
532
+ static equals(a: ApmProcessStreamRequest | PlainMessage<ApmProcessStreamRequest> | undefined, b: ApmProcessStreamRequest | PlainMessage<ApmProcessStreamRequest> | undefined): boolean;
533
+ }
534
+ /**
535
+ * @generated from message livekit.proto.ApmProcessStreamResponse
536
+ */
537
+ declare class ApmProcessStreamResponse extends Message<ApmProcessStreamResponse> {
538
+ /**
539
+ * @generated from field: optional string error = 1;
540
+ */
541
+ error?: string;
542
+ constructor(data?: PartialMessage<ApmProcessStreamResponse>);
543
+ static readonly runtime: typeof proto2;
544
+ static readonly typeName = "livekit.proto.ApmProcessStreamResponse";
545
+ static readonly fields: FieldList;
546
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessStreamResponse;
547
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessStreamResponse;
548
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessStreamResponse;
549
+ static equals(a: ApmProcessStreamResponse | PlainMessage<ApmProcessStreamResponse> | undefined, b: ApmProcessStreamResponse | PlainMessage<ApmProcessStreamResponse> | undefined): boolean;
550
+ }
551
+ /**
552
+ * @generated from message livekit.proto.ApmProcessReverseStreamRequest
553
+ */
554
+ declare class ApmProcessReverseStreamRequest extends Message<ApmProcessReverseStreamRequest> {
555
+ /**
556
+ * @generated from field: required uint64 apm_handle = 1;
557
+ */
558
+ apmHandle?: bigint;
559
+ /**
560
+ * *mut i16
561
+ *
562
+ * @generated from field: required uint64 data_ptr = 2;
563
+ */
564
+ dataPtr?: bigint;
565
+ /**
566
+ * in bytes
567
+ *
568
+ * @generated from field: required uint32 size = 3;
569
+ */
570
+ size?: number;
571
+ /**
572
+ * @generated from field: required uint32 sample_rate = 4;
573
+ */
574
+ sampleRate?: number;
575
+ /**
576
+ * @generated from field: required uint32 num_channels = 5;
577
+ */
578
+ numChannels?: number;
579
+ constructor(data?: PartialMessage<ApmProcessReverseStreamRequest>);
580
+ static readonly runtime: typeof proto2;
581
+ static readonly typeName = "livekit.proto.ApmProcessReverseStreamRequest";
582
+ static readonly fields: FieldList;
583
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessReverseStreamRequest;
584
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamRequest;
585
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamRequest;
586
+ static equals(a: ApmProcessReverseStreamRequest | PlainMessage<ApmProcessReverseStreamRequest> | undefined, b: ApmProcessReverseStreamRequest | PlainMessage<ApmProcessReverseStreamRequest> | undefined): boolean;
587
+ }
588
+ /**
589
+ * @generated from message livekit.proto.ApmProcessReverseStreamResponse
590
+ */
591
+ declare class ApmProcessReverseStreamResponse extends Message<ApmProcessReverseStreamResponse> {
592
+ /**
593
+ * @generated from field: optional string error = 1;
594
+ */
595
+ error?: string;
596
+ constructor(data?: PartialMessage<ApmProcessReverseStreamResponse>);
597
+ static readonly runtime: typeof proto2;
598
+ static readonly typeName = "livekit.proto.ApmProcessReverseStreamResponse";
599
+ static readonly fields: FieldList;
600
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessReverseStreamResponse;
601
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamResponse;
602
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamResponse;
603
+ static equals(a: ApmProcessReverseStreamResponse | PlainMessage<ApmProcessReverseStreamResponse> | undefined, b: ApmProcessReverseStreamResponse | PlainMessage<ApmProcessReverseStreamResponse> | undefined): boolean;
604
+ }
605
+ /**
606
+ * @generated from message livekit.proto.ApmSetStreamDelayRequest
607
+ */
608
+ declare class ApmSetStreamDelayRequest extends Message<ApmSetStreamDelayRequest> {
609
+ /**
610
+ * @generated from field: required uint64 apm_handle = 1;
611
+ */
612
+ apmHandle?: bigint;
613
+ /**
614
+ * @generated from field: required int32 delay_ms = 2;
615
+ */
616
+ delayMs?: number;
617
+ constructor(data?: PartialMessage<ApmSetStreamDelayRequest>);
618
+ static readonly runtime: typeof proto2;
619
+ static readonly typeName = "livekit.proto.ApmSetStreamDelayRequest";
620
+ static readonly fields: FieldList;
621
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmSetStreamDelayRequest;
622
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmSetStreamDelayRequest;
623
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmSetStreamDelayRequest;
624
+ static equals(a: ApmSetStreamDelayRequest | PlainMessage<ApmSetStreamDelayRequest> | undefined, b: ApmSetStreamDelayRequest | PlainMessage<ApmSetStreamDelayRequest> | undefined): boolean;
625
+ }
626
+ /**
627
+ * @generated from message livekit.proto.ApmSetStreamDelayResponse
628
+ */
629
+ declare class ApmSetStreamDelayResponse extends Message<ApmSetStreamDelayResponse> {
630
+ /**
631
+ * @generated from field: optional string error = 1;
632
+ */
633
+ error?: string;
634
+ constructor(data?: PartialMessage<ApmSetStreamDelayResponse>);
635
+ static readonly runtime: typeof proto2;
636
+ static readonly typeName = "livekit.proto.ApmSetStreamDelayResponse";
637
+ static readonly fields: FieldList;
638
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmSetStreamDelayResponse;
639
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmSetStreamDelayResponse;
640
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmSetStreamDelayResponse;
641
+ static equals(a: ApmSetStreamDelayResponse | PlainMessage<ApmSetStreamDelayResponse> | undefined, b: ApmSetStreamDelayResponse | PlainMessage<ApmSetStreamDelayResponse> | undefined): boolean;
642
+ }
433
643
  /**
434
644
  * @generated from message livekit.proto.NewSoxResamplerRequest
435
645
  */
@@ -860,6 +1070,23 @@ declare class OwnedAudioResampler extends Message<OwnedAudioResampler> {
860
1070
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioResampler;
861
1071
  static equals(a: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined, b: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined): boolean;
862
1072
  }
1073
+ /**
1074
+ * @generated from message livekit.proto.OwnedApm
1075
+ */
1076
+ declare class OwnedApm extends Message<OwnedApm> {
1077
+ /**
1078
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
1079
+ */
1080
+ handle?: FfiOwnedHandle;
1081
+ constructor(data?: PartialMessage<OwnedApm>);
1082
+ static readonly runtime: typeof proto2;
1083
+ static readonly typeName = "livekit.proto.OwnedApm";
1084
+ static readonly fields: FieldList;
1085
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedApm;
1086
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedApm;
1087
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedApm;
1088
+ static equals(a: OwnedApm | PlainMessage<OwnedApm> | undefined, b: OwnedApm | PlainMessage<OwnedApm> | undefined): boolean;
1089
+ }
863
1090
  /**
864
1091
  * @generated from message livekit.proto.SoxResamplerInfo
865
1092
  */
@@ -894,5 +1121,55 @@ declare class OwnedSoxResampler extends Message<OwnedSoxResampler> {
894
1121
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedSoxResampler;
895
1122
  static equals(a: OwnedSoxResampler | PlainMessage<OwnedSoxResampler> | undefined, b: OwnedSoxResampler | PlainMessage<OwnedSoxResampler> | undefined): boolean;
896
1123
  }
1124
+ /**
1125
+ * Audio Filter Plugin
1126
+ *
1127
+ * @generated from message livekit.proto.LoadAudioFilterPluginRequest
1128
+ */
1129
+ declare class LoadAudioFilterPluginRequest extends Message<LoadAudioFilterPluginRequest> {
1130
+ /**
1131
+ * path for ffi audio filter plugin
1132
+ *
1133
+ * @generated from field: required string plugin_path = 1;
1134
+ */
1135
+ pluginPath?: string;
1136
+ /**
1137
+ * Optional: paths for dependency dylibs
1138
+ *
1139
+ * @generated from field: repeated string dependencies = 2;
1140
+ */
1141
+ dependencies: string[];
1142
+ /**
1143
+ * Unique identifier of the plugin
1144
+ *
1145
+ * @generated from field: required string module_id = 3;
1146
+ */
1147
+ moduleId?: string;
1148
+ constructor(data?: PartialMessage<LoadAudioFilterPluginRequest>);
1149
+ static readonly runtime: typeof proto2;
1150
+ static readonly typeName = "livekit.proto.LoadAudioFilterPluginRequest";
1151
+ static readonly fields: FieldList;
1152
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LoadAudioFilterPluginRequest;
1153
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginRequest;
1154
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginRequest;
1155
+ static equals(a: LoadAudioFilterPluginRequest | PlainMessage<LoadAudioFilterPluginRequest> | undefined, b: LoadAudioFilterPluginRequest | PlainMessage<LoadAudioFilterPluginRequest> | undefined): boolean;
1156
+ }
1157
+ /**
1158
+ * @generated from message livekit.proto.LoadAudioFilterPluginResponse
1159
+ */
1160
+ declare class LoadAudioFilterPluginResponse extends Message<LoadAudioFilterPluginResponse> {
1161
+ /**
1162
+ * @generated from field: optional string error = 1;
1163
+ */
1164
+ error?: string;
1165
+ constructor(data?: PartialMessage<LoadAudioFilterPluginResponse>);
1166
+ static readonly runtime: typeof proto2;
1167
+ static readonly typeName = "livekit.proto.LoadAudioFilterPluginResponse";
1168
+ static readonly fields: FieldList;
1169
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LoadAudioFilterPluginResponse;
1170
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginResponse;
1171
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginResponse;
1172
+ static equals(a: LoadAudioFilterPluginResponse | PlainMessage<LoadAudioFilterPluginResponse> | undefined, b: LoadAudioFilterPluginResponse | PlainMessage<LoadAudioFilterPluginResponse> | undefined): boolean;
1173
+ }
897
1174
 
898
- export { AudioFrameBufferInfo, AudioFrameReceived, AudioResamplerInfo, AudioSourceInfo, AudioSourceOptions, AudioSourceType, AudioStreamEOS, AudioStreamEvent, AudioStreamFromParticipantRequest, AudioStreamFromParticipantResponse, AudioStreamInfo, AudioStreamType, CaptureAudioFrameCallback, CaptureAudioFrameRequest, CaptureAudioFrameResponse, ClearAudioBufferRequest, ClearAudioBufferResponse, FlushSoxResamplerRequest, FlushSoxResamplerResponse, NewAudioResamplerRequest, NewAudioResamplerResponse, NewAudioSourceRequest, NewAudioSourceResponse, NewAudioStreamRequest, NewAudioStreamResponse, NewSoxResamplerRequest, NewSoxResamplerResponse, OwnedAudioFrameBuffer, OwnedAudioResampler, OwnedAudioSource, OwnedAudioStream, OwnedSoxResampler, PushSoxResamplerRequest, PushSoxResamplerResponse, RemixAndResampleRequest, RemixAndResampleResponse, SoxFlagBits, SoxQualityRecipe, SoxResamplerDataType, SoxResamplerInfo };
1175
+ export { ApmProcessReverseStreamRequest, ApmProcessReverseStreamResponse, ApmProcessStreamRequest, ApmProcessStreamResponse, ApmSetStreamDelayRequest, ApmSetStreamDelayResponse, AudioFrameBufferInfo, AudioFrameReceived, AudioResamplerInfo, AudioSourceInfo, AudioSourceOptions, AudioSourceType, AudioStreamEOS, AudioStreamEvent, AudioStreamFromParticipantRequest, AudioStreamFromParticipantResponse, AudioStreamInfo, AudioStreamType, CaptureAudioFrameCallback, CaptureAudioFrameRequest, CaptureAudioFrameResponse, ClearAudioBufferRequest, ClearAudioBufferResponse, FlushSoxResamplerRequest, FlushSoxResamplerResponse, LoadAudioFilterPluginRequest, LoadAudioFilterPluginResponse, NewApmRequest, NewApmResponse, NewAudioResamplerRequest, NewAudioResamplerResponse, NewAudioSourceRequest, NewAudioSourceResponse, NewAudioStreamRequest, NewAudioStreamResponse, NewSoxResamplerRequest, NewSoxResamplerResponse, OwnedApm, OwnedAudioFrameBuffer, OwnedAudioResampler, OwnedAudioSource, OwnedAudioStream, OwnedSoxResampler, PushSoxResamplerRequest, PushSoxResamplerResponse, RemixAndResampleRequest, RemixAndResampleResponse, SoxFlagBits, SoxQualityRecipe, SoxResamplerDataType, SoxResamplerInfo };