@livekit/rtc-node 0.12.1 → 0.13.0

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