@livekit/rtc-node 0.13.24 → 0.13.25

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 (281) hide show
  1. package/dist/audio_filter.cjs +2 -2
  2. package/dist/audio_filter.cjs.map +1 -1
  3. package/dist/audio_filter.js +1 -1
  4. package/dist/audio_filter.js.map +1 -1
  5. package/dist/audio_frame.cjs +9 -5
  6. package/dist/audio_frame.cjs.map +1 -1
  7. package/dist/audio_frame.d.cts +2 -7
  8. package/dist/audio_frame.d.ts +2 -7
  9. package/dist/audio_frame.d.ts.map +1 -1
  10. package/dist/audio_frame.js +8 -4
  11. package/dist/audio_frame.js.map +1 -1
  12. package/dist/audio_mixer.cjs +1 -1
  13. package/dist/audio_mixer.cjs.map +1 -1
  14. package/dist/audio_mixer.d.cts +1 -6
  15. package/dist/audio_mixer.d.ts +1 -6
  16. package/dist/audio_mixer.js +1 -1
  17. package/dist/audio_mixer.js.map +1 -1
  18. package/dist/audio_resampler.cjs +20 -12
  19. package/dist/audio_resampler.cjs.map +1 -1
  20. package/dist/audio_resampler.d.cts +6 -6
  21. package/dist/audio_resampler.d.ts +6 -6
  22. package/dist/audio_resampler.d.ts.map +1 -1
  23. package/dist/audio_resampler.js +12 -4
  24. package/dist/audio_resampler.js.map +1 -1
  25. package/dist/audio_source.cjs +11 -7
  26. package/dist/audio_source.cjs.map +1 -1
  27. package/dist/audio_source.d.cts +1 -7
  28. package/dist/audio_source.d.ts +1 -7
  29. package/dist/audio_source.d.ts.map +1 -1
  30. package/dist/audio_source.js +8 -3
  31. package/dist/audio_source.js.map +1 -1
  32. package/dist/audio_stream.cjs +16 -6
  33. package/dist/audio_stream.cjs.map +1 -1
  34. package/dist/audio_stream.d.cts +1 -14
  35. package/dist/audio_stream.d.ts +1 -14
  36. package/dist/audio_stream.d.ts.map +1 -1
  37. package/dist/audio_stream.js +15 -5
  38. package/dist/audio_stream.js.map +1 -1
  39. package/dist/data_streams/index.d.cts +2 -10
  40. package/dist/data_streams/index.d.ts +2 -10
  41. package/dist/data_streams/stream_reader.cjs +8 -0
  42. package/dist/data_streams/stream_reader.cjs.map +1 -1
  43. package/dist/data_streams/stream_reader.d.cts +2 -10
  44. package/dist/data_streams/stream_reader.d.ts +2 -10
  45. package/dist/data_streams/stream_reader.d.ts.map +1 -1
  46. package/dist/data_streams/stream_reader.js +8 -0
  47. package/dist/data_streams/stream_reader.js.map +1 -1
  48. package/dist/data_streams/stream_writer.d.cts +2 -10
  49. package/dist/data_streams/stream_writer.d.ts +2 -10
  50. package/dist/data_streams/types.cjs.map +1 -1
  51. package/dist/data_streams/types.d.cts +2 -10
  52. package/dist/data_streams/types.d.ts +2 -10
  53. package/dist/data_streams/types.d.ts.map +1 -1
  54. package/dist/e2ee.cjs +21 -21
  55. package/dist/e2ee.cjs.map +1 -1
  56. package/dist/e2ee.d.cts +1 -2
  57. package/dist/e2ee.d.ts +1 -2
  58. package/dist/e2ee.d.ts.map +1 -1
  59. package/dist/e2ee.js +2 -2
  60. package/dist/e2ee.js.map +1 -1
  61. package/dist/ffi_client.cjs +11 -12
  62. package/dist/ffi_client.cjs.map +1 -1
  63. package/dist/ffi_client.d.cts +3 -16
  64. package/dist/ffi_client.d.ts +3 -16
  65. package/dist/ffi_client.d.ts.map +1 -1
  66. package/dist/ffi_client.js +5 -3
  67. package/dist/ffi_client.js.map +1 -1
  68. package/dist/frame_processor.cjs +13 -2
  69. package/dist/frame_processor.cjs.map +1 -1
  70. package/dist/frame_processor.d.cts +5 -8
  71. package/dist/frame_processor.d.ts +5 -8
  72. package/dist/frame_processor.d.ts.map +1 -1
  73. package/dist/frame_processor.js +10 -1
  74. package/dist/frame_processor.js.map +1 -1
  75. package/dist/index.cjs +25 -23
  76. package/dist/index.cjs.map +1 -1
  77. package/dist/index.d.cts +3 -16
  78. package/dist/index.d.ts +3 -16
  79. package/dist/index.d.ts.map +1 -1
  80. package/dist/index.js +9 -7
  81. package/dist/index.js.map +1 -1
  82. package/dist/participant.cjs +38 -38
  83. package/dist/participant.cjs.map +1 -1
  84. package/dist/participant.d.cts +2 -15
  85. package/dist/participant.d.ts +2 -15
  86. package/dist/participant.d.ts.map +1 -1
  87. package/dist/participant.js +12 -12
  88. package/dist/participant.js.map +1 -1
  89. package/dist/room.cjs +14 -14
  90. package/dist/room.cjs.map +1 -1
  91. package/dist/room.d.cts +2 -15
  92. package/dist/room.d.ts +2 -15
  93. package/dist/room.d.ts.map +1 -1
  94. package/dist/room.js +10 -10
  95. package/dist/room.js.map +1 -1
  96. package/dist/rpc.cjs.map +1 -1
  97. package/dist/rpc.d.cts +1 -2
  98. package/dist/rpc.d.ts +1 -2
  99. package/dist/rpc.d.ts.map +1 -1
  100. package/dist/rpc.js.map +1 -1
  101. package/dist/{stream_reader-Ch2zvjU3.d.cts → stream_reader-CuG4b8Y-.d.cts} +1 -1
  102. package/dist/{stream_reader-DRyR29vo.d.ts → stream_reader-CuG4b8Y-.d.ts} +1 -1
  103. package/dist/track.cjs +3 -3
  104. package/dist/track.cjs.map +1 -1
  105. package/dist/track.d.cts +1 -14
  106. package/dist/track.d.ts +1 -14
  107. package/dist/track.d.ts.map +1 -1
  108. package/dist/track.js +1 -1
  109. package/dist/track.js.map +1 -1
  110. package/dist/track_publication.cjs +4 -4
  111. package/dist/track_publication.cjs.map +1 -1
  112. package/dist/track_publication.d.cts +1 -14
  113. package/dist/track_publication.d.ts +1 -14
  114. package/dist/track_publication.d.ts.map +1 -1
  115. package/dist/track_publication.js +2 -2
  116. package/dist/track_publication.js.map +1 -1
  117. package/dist/version.cjs +1 -1
  118. package/dist/version.cjs.map +1 -1
  119. package/dist/version.d.cts +1 -1
  120. package/dist/version.d.ts +1 -1
  121. package/dist/version.js +1 -1
  122. package/dist/version.js.map +1 -1
  123. package/dist/video_frame.cjs +42 -42
  124. package/dist/video_frame.cjs.map +1 -1
  125. package/dist/video_frame.d.cts +1 -6
  126. package/dist/video_frame.d.ts +1 -6
  127. package/dist/video_frame.d.ts.map +1 -1
  128. package/dist/video_frame.js +2 -2
  129. package/dist/video_frame.js.map +1 -1
  130. package/dist/video_source.cjs +5 -5
  131. package/dist/video_source.cjs.map +1 -1
  132. package/dist/video_source.d.cts +1 -14
  133. package/dist/video_source.d.ts +1 -14
  134. package/dist/video_source.d.ts.map +1 -1
  135. package/dist/video_source.js +2 -2
  136. package/dist/video_source.js.map +1 -1
  137. package/dist/video_stream.cjs +12 -4
  138. package/dist/video_stream.cjs.map +1 -1
  139. package/dist/video_stream.d.cts +1 -14
  140. package/dist/video_stream.d.ts +1 -14
  141. package/dist/video_stream.d.ts.map +1 -1
  142. package/dist/video_stream.js +10 -2
  143. package/dist/video_stream.js.map +1 -1
  144. package/package.json +7 -37
  145. package/src/audio_filter.ts +2 -2
  146. package/src/audio_frame.ts +17 -5
  147. package/src/audio_mixer.ts +1 -1
  148. package/src/audio_resampler.ts +14 -4
  149. package/src/audio_source.ts +13 -5
  150. package/src/audio_stream.ts +21 -6
  151. package/src/data_streams/stream_reader.ts +19 -1
  152. package/src/data_streams/types.ts +1 -1
  153. package/src/e2ee.ts +3 -3
  154. package/src/ffi_client.ts +7 -5
  155. package/src/frame_processor.ts +21 -0
  156. package/src/index.ts +6 -5
  157. package/src/participant.ts +17 -17
  158. package/src/room.ts +22 -22
  159. package/src/rpc.ts +1 -1
  160. package/src/tests/e2e.test.ts +11 -8
  161. package/src/track.ts +4 -4
  162. package/src/track_publication.ts +6 -6
  163. package/src/version.ts +1 -1
  164. package/src/video_frame.ts +3 -3
  165. package/src/video_source.ts +3 -3
  166. package/src/video_stream.ts +15 -3
  167. package/Cargo.toml +0 -25
  168. package/build.rs +0 -9
  169. package/dist/napi/native.cjs +0 -301
  170. package/dist/napi/native.d.cjs +0 -17
  171. package/dist/napi/native.d.cjs.map +0 -1
  172. package/dist/napi/native.d.d.cts +0 -21
  173. package/dist/napi/native.d.d.ts +0 -21
  174. package/dist/napi/native.d.js +0 -1
  175. package/dist/napi/native.d.js.map +0 -1
  176. package/dist/napi/native.d.ts +0 -19
  177. package/dist/napi/native.js +0 -15
  178. package/dist/native.cjs +0 -301
  179. package/dist/native.d.ts +0 -19
  180. package/dist/native.js +0 -15
  181. package/dist/proto/audio_frame_pb.cjs +0 -1357
  182. package/dist/proto/audio_frame_pb.cjs.map +0 -1
  183. package/dist/proto/audio_frame_pb.d.cts +0 -1183
  184. package/dist/proto/audio_frame_pb.d.ts +0 -1183
  185. package/dist/proto/audio_frame_pb.d.ts.map +0 -1
  186. package/dist/proto/audio_frame_pb.js +0 -1283
  187. package/dist/proto/audio_frame_pb.js.map +0 -1
  188. package/dist/proto/data_stream_pb.cjs +0 -1638
  189. package/dist/proto/data_stream_pb.cjs.map +0 -1
  190. package/dist/proto/data_stream_pb.d.cts +0 -1449
  191. package/dist/proto/data_stream_pb.d.ts +0 -1449
  192. package/dist/proto/data_stream_pb.d.ts.map +0 -1
  193. package/dist/proto/data_stream_pb.js +0 -1559
  194. package/dist/proto/data_stream_pb.js.map +0 -1
  195. package/dist/proto/e2ee_pb.cjs +0 -746
  196. package/dist/proto/e2ee_pb.cjs.map +0 -1
  197. package/dist/proto/e2ee_pb.d.cts +0 -653
  198. package/dist/proto/e2ee_pb.d.ts +0 -653
  199. package/dist/proto/e2ee_pb.d.ts.map +0 -1
  200. package/dist/proto/e2ee_pb.js +0 -696
  201. package/dist/proto/e2ee_pb.js.map +0 -1
  202. package/dist/proto/ffi_pb.cjs +0 -477
  203. package/dist/proto/ffi_pb.cjs.map +0 -1
  204. package/dist/proto/ffi_pb.d.cts +0 -1321
  205. package/dist/proto/ffi_pb.d.ts +0 -1321
  206. package/dist/proto/ffi_pb.d.ts.map +0 -1
  207. package/dist/proto/ffi_pb.js +0 -444
  208. package/dist/proto/ffi_pb.js.map +0 -1
  209. package/dist/proto/handle_pb.cjs +0 -53
  210. package/dist/proto/handle_pb.cjs.map +0 -1
  211. package/dist/proto/handle_pb.d.cts +0 -31
  212. package/dist/proto/handle_pb.d.ts +0 -31
  213. package/dist/proto/handle_pb.d.ts.map +0 -1
  214. package/dist/proto/handle_pb.js +0 -29
  215. package/dist/proto/handle_pb.js.map +0 -1
  216. package/dist/proto/participant_pb.cjs +0 -173
  217. package/dist/proto/participant_pb.cjs.map +0 -1
  218. package/dist/proto/participant_pb.d.cts +0 -218
  219. package/dist/proto/participant_pb.d.ts +0 -218
  220. package/dist/proto/participant_pb.d.ts.map +0 -1
  221. package/dist/proto/participant_pb.js +0 -145
  222. package/dist/proto/participant_pb.js.map +0 -1
  223. package/dist/proto/room_pb.cjs +0 -3374
  224. package/dist/proto/room_pb.cjs.map +0 -1
  225. package/dist/proto/room_pb.d.cts +0 -3028
  226. package/dist/proto/room_pb.d.ts +0 -3028
  227. package/dist/proto/room_pb.d.ts.map +0 -1
  228. package/dist/proto/room_pb.js +0 -3232
  229. package/dist/proto/room_pb.js.map +0 -1
  230. package/dist/proto/rpc_pb.cjs +0 -328
  231. package/dist/proto/rpc_pb.cjs.map +0 -1
  232. package/dist/proto/rpc_pb.d.cts +0 -267
  233. package/dist/proto/rpc_pb.d.ts +0 -267
  234. package/dist/proto/rpc_pb.d.ts.map +0 -1
  235. package/dist/proto/rpc_pb.js +0 -294
  236. package/dist/proto/rpc_pb.js.map +0 -1
  237. package/dist/proto/stats_pb.cjs +0 -1370
  238. package/dist/proto/stats_pb.cjs.map +0 -1
  239. package/dist/proto/stats_pb.d.cts +0 -1764
  240. package/dist/proto/stats_pb.d.ts +0 -1764
  241. package/dist/proto/stats_pb.d.ts.map +0 -1
  242. package/dist/proto/stats_pb.js +0 -1300
  243. package/dist/proto/stats_pb.js.map +0 -1
  244. package/dist/proto/track_pb.cjs +0 -630
  245. package/dist/proto/track_pb.cjs.map +0 -1
  246. package/dist/proto/track_pb.d.cts +0 -542
  247. package/dist/proto/track_pb.d.ts +0 -542
  248. package/dist/proto/track_pb.d.ts.map +0 -1
  249. package/dist/proto/track_pb.js +0 -584
  250. package/dist/proto/track_pb.js.map +0 -1
  251. package/dist/proto/track_publication_pb.cjs +0 -194
  252. package/dist/proto/track_publication_pb.cjs.map +0 -1
  253. package/dist/proto/track_publication_pb.d.cts +0 -135
  254. package/dist/proto/track_publication_pb.d.ts +0 -135
  255. package/dist/proto/track_publication_pb.d.ts.map +0 -1
  256. package/dist/proto/track_publication_pb.js +0 -164
  257. package/dist/proto/track_publication_pb.js.map +0 -1
  258. package/dist/proto/video_frame_pb.cjs +0 -723
  259. package/dist/proto/video_frame_pb.cjs.map +0 -1
  260. package/dist/proto/video_frame_pb.d.cts +0 -667
  261. package/dist/proto/video_frame_pb.d.ts +0 -667
  262. package/dist/proto/video_frame_pb.d.ts.map +0 -1
  263. package/dist/proto/video_frame_pb.js +0 -673
  264. package/dist/proto/video_frame_pb.js.map +0 -1
  265. package/src/lib.rs +0 -9
  266. package/src/napi/native.cjs +0 -301
  267. package/src/napi/native.d.ts +0 -19
  268. package/src/napi/native.js +0 -15
  269. package/src/nodejs.rs +0 -134
  270. package/src/proto/audio_frame_pb.ts +0 -2270
  271. package/src/proto/data_stream_pb.ts +0 -2674
  272. package/src/proto/e2ee_pb.ts +0 -1231
  273. package/src/proto/ffi_pb.ts +0 -1700
  274. package/src/proto/handle_pb.ts +0 -69
  275. package/src/proto/participant_pb.ts +0 -351
  276. package/src/proto/room_pb.ts +0 -5661
  277. package/src/proto/rpc_pb.ts +0 -539
  278. package/src/proto/stats_pb.ts +0 -3050
  279. package/src/proto/track_pb.ts +0 -1040
  280. package/src/proto/track_publication_pb.ts +0 -284
  281. package/src/proto/video_frame_pb.ts +0 -1236
@@ -1,1183 +0,0 @@
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
- /**
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;
143
- /**
144
- * @generated from field: optional uint32 frame_size_ms = 7;
145
- */
146
- frameSizeMs?: number;
147
- constructor(data?: PartialMessage<NewAudioStreamRequest>);
148
- static readonly runtime: typeof proto2;
149
- static readonly typeName = "livekit.proto.NewAudioStreamRequest";
150
- static readonly fields: FieldList;
151
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamRequest;
152
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioStreamRequest;
153
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioStreamRequest;
154
- static equals(a: NewAudioStreamRequest | PlainMessage<NewAudioStreamRequest> | undefined, b: NewAudioStreamRequest | PlainMessage<NewAudioStreamRequest> | undefined): boolean;
155
- }
156
- /**
157
- * @generated from message livekit.proto.NewAudioStreamResponse
158
- */
159
- declare class NewAudioStreamResponse extends Message<NewAudioStreamResponse> {
160
- /**
161
- * @generated from field: required livekit.proto.OwnedAudioStream stream = 1;
162
- */
163
- stream?: OwnedAudioStream;
164
- constructor(data?: PartialMessage<NewAudioStreamResponse>);
165
- static readonly runtime: typeof proto2;
166
- static readonly typeName = "livekit.proto.NewAudioStreamResponse";
167
- static readonly fields: FieldList;
168
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamResponse;
169
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioStreamResponse;
170
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioStreamResponse;
171
- static equals(a: NewAudioStreamResponse | PlainMessage<NewAudioStreamResponse> | undefined, b: NewAudioStreamResponse | PlainMessage<NewAudioStreamResponse> | undefined): boolean;
172
- }
173
- /**
174
- * @generated from message livekit.proto.AudioStreamFromParticipantRequest
175
- */
176
- declare class AudioStreamFromParticipantRequest extends Message<AudioStreamFromParticipantRequest> {
177
- /**
178
- * @generated from field: required uint64 participant_handle = 1;
179
- */
180
- participantHandle?: bigint;
181
- /**
182
- * @generated from field: required livekit.proto.AudioStreamType type = 2;
183
- */
184
- type?: AudioStreamType;
185
- /**
186
- * @generated from field: optional livekit.proto.TrackSource track_source = 3;
187
- */
188
- trackSource?: TrackSource;
189
- /**
190
- * @generated from field: optional uint32 sample_rate = 5;
191
- */
192
- sampleRate?: number;
193
- /**
194
- * @generated from field: optional uint32 num_channels = 6;
195
- */
196
- numChannels?: number;
197
- /**
198
- * @generated from field: optional string audio_filter_module_id = 7;
199
- */
200
- audioFilterModuleId?: string;
201
- /**
202
- * @generated from field: optional string audio_filter_options = 8;
203
- */
204
- audioFilterOptions?: string;
205
- /**
206
- * @generated from field: optional uint32 frame_size_ms = 9;
207
- */
208
- frameSizeMs?: number;
209
- constructor(data?: PartialMessage<AudioStreamFromParticipantRequest>);
210
- static readonly runtime: typeof proto2;
211
- static readonly typeName = "livekit.proto.AudioStreamFromParticipantRequest";
212
- static readonly fields: FieldList;
213
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamFromParticipantRequest;
214
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantRequest;
215
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantRequest;
216
- static equals(a: AudioStreamFromParticipantRequest | PlainMessage<AudioStreamFromParticipantRequest> | undefined, b: AudioStreamFromParticipantRequest | PlainMessage<AudioStreamFromParticipantRequest> | undefined): boolean;
217
- }
218
- /**
219
- * @generated from message livekit.proto.AudioStreamFromParticipantResponse
220
- */
221
- declare class AudioStreamFromParticipantResponse extends Message<AudioStreamFromParticipantResponse> {
222
- /**
223
- * @generated from field: required livekit.proto.OwnedAudioStream stream = 1;
224
- */
225
- stream?: OwnedAudioStream;
226
- constructor(data?: PartialMessage<AudioStreamFromParticipantResponse>);
227
- static readonly runtime: typeof proto2;
228
- static readonly typeName = "livekit.proto.AudioStreamFromParticipantResponse";
229
- static readonly fields: FieldList;
230
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamFromParticipantResponse;
231
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantResponse;
232
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantResponse;
233
- static equals(a: AudioStreamFromParticipantResponse | PlainMessage<AudioStreamFromParticipantResponse> | undefined, b: AudioStreamFromParticipantResponse | PlainMessage<AudioStreamFromParticipantResponse> | undefined): boolean;
234
- }
235
- /**
236
- * Create a new AudioSource
237
- *
238
- * @generated from message livekit.proto.NewAudioSourceRequest
239
- */
240
- declare class NewAudioSourceRequest extends Message<NewAudioSourceRequest> {
241
- /**
242
- * @generated from field: required livekit.proto.AudioSourceType type = 1;
243
- */
244
- type?: AudioSourceType;
245
- /**
246
- * @generated from field: optional livekit.proto.AudioSourceOptions options = 2;
247
- */
248
- options?: AudioSourceOptions;
249
- /**
250
- * @generated from field: required uint32 sample_rate = 3;
251
- */
252
- sampleRate?: number;
253
- /**
254
- * @generated from field: required uint32 num_channels = 4;
255
- */
256
- numChannels?: number;
257
- /**
258
- * @generated from field: optional uint32 queue_size_ms = 5;
259
- */
260
- queueSizeMs?: number;
261
- constructor(data?: PartialMessage<NewAudioSourceRequest>);
262
- static readonly runtime: typeof proto2;
263
- static readonly typeName = "livekit.proto.NewAudioSourceRequest";
264
- static readonly fields: FieldList;
265
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioSourceRequest;
266
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioSourceRequest;
267
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioSourceRequest;
268
- static equals(a: NewAudioSourceRequest | PlainMessage<NewAudioSourceRequest> | undefined, b: NewAudioSourceRequest | PlainMessage<NewAudioSourceRequest> | undefined): boolean;
269
- }
270
- /**
271
- * @generated from message livekit.proto.NewAudioSourceResponse
272
- */
273
- declare class NewAudioSourceResponse extends Message<NewAudioSourceResponse> {
274
- /**
275
- * @generated from field: required livekit.proto.OwnedAudioSource source = 1;
276
- */
277
- source?: OwnedAudioSource;
278
- constructor(data?: PartialMessage<NewAudioSourceResponse>);
279
- static readonly runtime: typeof proto2;
280
- static readonly typeName = "livekit.proto.NewAudioSourceResponse";
281
- static readonly fields: FieldList;
282
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioSourceResponse;
283
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioSourceResponse;
284
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioSourceResponse;
285
- static equals(a: NewAudioSourceResponse | PlainMessage<NewAudioSourceResponse> | undefined, b: NewAudioSourceResponse | PlainMessage<NewAudioSourceResponse> | undefined): boolean;
286
- }
287
- /**
288
- * Push a frame to an AudioSource
289
- * The data provided must be available as long as the client receive the callback.
290
- *
291
- * @generated from message livekit.proto.CaptureAudioFrameRequest
292
- */
293
- declare class CaptureAudioFrameRequest extends Message<CaptureAudioFrameRequest> {
294
- /**
295
- * @generated from field: required uint64 source_handle = 1;
296
- */
297
- sourceHandle?: bigint;
298
- /**
299
- * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2;
300
- */
301
- buffer?: AudioFrameBufferInfo;
302
- constructor(data?: PartialMessage<CaptureAudioFrameRequest>);
303
- static readonly runtime: typeof proto2;
304
- static readonly typeName = "livekit.proto.CaptureAudioFrameRequest";
305
- static readonly fields: FieldList;
306
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameRequest;
307
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameRequest;
308
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameRequest;
309
- static equals(a: CaptureAudioFrameRequest | PlainMessage<CaptureAudioFrameRequest> | undefined, b: CaptureAudioFrameRequest | PlainMessage<CaptureAudioFrameRequest> | undefined): boolean;
310
- }
311
- /**
312
- * @generated from message livekit.proto.CaptureAudioFrameResponse
313
- */
314
- declare class CaptureAudioFrameResponse extends Message<CaptureAudioFrameResponse> {
315
- /**
316
- * @generated from field: required uint64 async_id = 1;
317
- */
318
- asyncId?: bigint;
319
- constructor(data?: PartialMessage<CaptureAudioFrameResponse>);
320
- static readonly runtime: typeof proto2;
321
- static readonly typeName = "livekit.proto.CaptureAudioFrameResponse";
322
- static readonly fields: FieldList;
323
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameResponse;
324
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameResponse;
325
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameResponse;
326
- static equals(a: CaptureAudioFrameResponse | PlainMessage<CaptureAudioFrameResponse> | undefined, b: CaptureAudioFrameResponse | PlainMessage<CaptureAudioFrameResponse> | undefined): boolean;
327
- }
328
- /**
329
- * @generated from message livekit.proto.CaptureAudioFrameCallback
330
- */
331
- declare class CaptureAudioFrameCallback extends Message<CaptureAudioFrameCallback> {
332
- /**
333
- * @generated from field: required uint64 async_id = 1;
334
- */
335
- asyncId?: bigint;
336
- /**
337
- * @generated from field: optional string error = 2;
338
- */
339
- error?: string;
340
- constructor(data?: PartialMessage<CaptureAudioFrameCallback>);
341
- static readonly runtime: typeof proto2;
342
- static readonly typeName = "livekit.proto.CaptureAudioFrameCallback";
343
- static readonly fields: FieldList;
344
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameCallback;
345
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameCallback;
346
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameCallback;
347
- static equals(a: CaptureAudioFrameCallback | PlainMessage<CaptureAudioFrameCallback> | undefined, b: CaptureAudioFrameCallback | PlainMessage<CaptureAudioFrameCallback> | undefined): boolean;
348
- }
349
- /**
350
- * @generated from message livekit.proto.ClearAudioBufferRequest
351
- */
352
- declare class ClearAudioBufferRequest extends Message<ClearAudioBufferRequest> {
353
- /**
354
- * @generated from field: required uint64 source_handle = 1;
355
- */
356
- sourceHandle?: bigint;
357
- constructor(data?: PartialMessage<ClearAudioBufferRequest>);
358
- static readonly runtime: typeof proto2;
359
- static readonly typeName = "livekit.proto.ClearAudioBufferRequest";
360
- static readonly fields: FieldList;
361
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClearAudioBufferRequest;
362
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClearAudioBufferRequest;
363
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClearAudioBufferRequest;
364
- static equals(a: ClearAudioBufferRequest | PlainMessage<ClearAudioBufferRequest> | undefined, b: ClearAudioBufferRequest | PlainMessage<ClearAudioBufferRequest> | undefined): boolean;
365
- }
366
- /**
367
- * @generated from message livekit.proto.ClearAudioBufferResponse
368
- */
369
- declare class ClearAudioBufferResponse extends Message<ClearAudioBufferResponse> {
370
- constructor(data?: PartialMessage<ClearAudioBufferResponse>);
371
- static readonly runtime: typeof proto2;
372
- static readonly typeName = "livekit.proto.ClearAudioBufferResponse";
373
- static readonly fields: FieldList;
374
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClearAudioBufferResponse;
375
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClearAudioBufferResponse;
376
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClearAudioBufferResponse;
377
- static equals(a: ClearAudioBufferResponse | PlainMessage<ClearAudioBufferResponse> | undefined, b: ClearAudioBufferResponse | PlainMessage<ClearAudioBufferResponse> | undefined): boolean;
378
- }
379
- /**
380
- * Create a new AudioResampler
381
- *
382
- * @generated from message livekit.proto.NewAudioResamplerRequest
383
- */
384
- declare class NewAudioResamplerRequest extends Message<NewAudioResamplerRequest> {
385
- constructor(data?: PartialMessage<NewAudioResamplerRequest>);
386
- static readonly runtime: typeof proto2;
387
- static readonly typeName = "livekit.proto.NewAudioResamplerRequest";
388
- static readonly fields: FieldList;
389
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioResamplerRequest;
390
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioResamplerRequest;
391
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioResamplerRequest;
392
- static equals(a: NewAudioResamplerRequest | PlainMessage<NewAudioResamplerRequest> | undefined, b: NewAudioResamplerRequest | PlainMessage<NewAudioResamplerRequest> | undefined): boolean;
393
- }
394
- /**
395
- * @generated from message livekit.proto.NewAudioResamplerResponse
396
- */
397
- declare class NewAudioResamplerResponse extends Message<NewAudioResamplerResponse> {
398
- /**
399
- * @generated from field: required livekit.proto.OwnedAudioResampler resampler = 1;
400
- */
401
- resampler?: OwnedAudioResampler;
402
- constructor(data?: PartialMessage<NewAudioResamplerResponse>);
403
- static readonly runtime: typeof proto2;
404
- static readonly typeName = "livekit.proto.NewAudioResamplerResponse";
405
- static readonly fields: FieldList;
406
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioResamplerResponse;
407
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioResamplerResponse;
408
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioResamplerResponse;
409
- static equals(a: NewAudioResamplerResponse | PlainMessage<NewAudioResamplerResponse> | undefined, b: NewAudioResamplerResponse | PlainMessage<NewAudioResamplerResponse> | undefined): boolean;
410
- }
411
- /**
412
- * Remix and resample an audio frame
413
- *
414
- * @generated from message livekit.proto.RemixAndResampleRequest
415
- */
416
- declare class RemixAndResampleRequest extends Message<RemixAndResampleRequest> {
417
- /**
418
- * @generated from field: required uint64 resampler_handle = 1;
419
- */
420
- resamplerHandle?: bigint;
421
- /**
422
- * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2;
423
- */
424
- buffer?: AudioFrameBufferInfo;
425
- /**
426
- * @generated from field: required uint32 num_channels = 3;
427
- */
428
- numChannels?: number;
429
- /**
430
- * @generated from field: required uint32 sample_rate = 4;
431
- */
432
- sampleRate?: number;
433
- constructor(data?: PartialMessage<RemixAndResampleRequest>);
434
- static readonly runtime: typeof proto2;
435
- static readonly typeName = "livekit.proto.RemixAndResampleRequest";
436
- static readonly fields: FieldList;
437
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemixAndResampleRequest;
438
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemixAndResampleRequest;
439
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleRequest;
440
- static equals(a: RemixAndResampleRequest | PlainMessage<RemixAndResampleRequest> | undefined, b: RemixAndResampleRequest | PlainMessage<RemixAndResampleRequest> | undefined): boolean;
441
- }
442
- /**
443
- * @generated from message livekit.proto.RemixAndResampleResponse
444
- */
445
- declare class RemixAndResampleResponse extends Message<RemixAndResampleResponse> {
446
- /**
447
- * @generated from field: required livekit.proto.OwnedAudioFrameBuffer buffer = 1;
448
- */
449
- buffer?: OwnedAudioFrameBuffer;
450
- constructor(data?: PartialMessage<RemixAndResampleResponse>);
451
- static readonly runtime: typeof proto2;
452
- static readonly typeName = "livekit.proto.RemixAndResampleResponse";
453
- static readonly fields: FieldList;
454
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemixAndResampleResponse;
455
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemixAndResampleResponse;
456
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleResponse;
457
- static equals(a: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined, b: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined): boolean;
458
- }
459
- /**
460
- * @generated from message livekit.proto.NewApmRequest
461
- */
462
- declare class NewApmRequest extends Message<NewApmRequest> {
463
- /**
464
- * @generated from field: required bool echo_canceller_enabled = 1;
465
- */
466
- echoCancellerEnabled?: boolean;
467
- /**
468
- * @generated from field: required bool gain_controller_enabled = 2;
469
- */
470
- gainControllerEnabled?: boolean;
471
- /**
472
- * @generated from field: required bool high_pass_filter_enabled = 3;
473
- */
474
- highPassFilterEnabled?: boolean;
475
- /**
476
- * @generated from field: required bool noise_suppression_enabled = 4;
477
- */
478
- noiseSuppressionEnabled?: boolean;
479
- constructor(data?: PartialMessage<NewApmRequest>);
480
- static readonly runtime: typeof proto2;
481
- static readonly typeName = "livekit.proto.NewApmRequest";
482
- static readonly fields: FieldList;
483
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewApmRequest;
484
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewApmRequest;
485
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewApmRequest;
486
- static equals(a: NewApmRequest | PlainMessage<NewApmRequest> | undefined, b: NewApmRequest | PlainMessage<NewApmRequest> | undefined): boolean;
487
- }
488
- /**
489
- * @generated from message livekit.proto.NewApmResponse
490
- */
491
- declare class NewApmResponse extends Message<NewApmResponse> {
492
- /**
493
- * @generated from field: required livekit.proto.OwnedApm apm = 1;
494
- */
495
- apm?: OwnedApm;
496
- constructor(data?: PartialMessage<NewApmResponse>);
497
- static readonly runtime: typeof proto2;
498
- static readonly typeName = "livekit.proto.NewApmResponse";
499
- static readonly fields: FieldList;
500
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewApmResponse;
501
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewApmResponse;
502
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewApmResponse;
503
- static equals(a: NewApmResponse | PlainMessage<NewApmResponse> | undefined, b: NewApmResponse | PlainMessage<NewApmResponse> | undefined): boolean;
504
- }
505
- /**
506
- * @generated from message livekit.proto.ApmProcessStreamRequest
507
- */
508
- declare class ApmProcessStreamRequest extends Message<ApmProcessStreamRequest> {
509
- /**
510
- * @generated from field: required uint64 apm_handle = 1;
511
- */
512
- apmHandle?: bigint;
513
- /**
514
- * *mut i16
515
- *
516
- * @generated from field: required uint64 data_ptr = 2;
517
- */
518
- dataPtr?: bigint;
519
- /**
520
- * in bytes
521
- *
522
- * @generated from field: required uint32 size = 3;
523
- */
524
- size?: number;
525
- /**
526
- * @generated from field: required uint32 sample_rate = 4;
527
- */
528
- sampleRate?: number;
529
- /**
530
- * @generated from field: required uint32 num_channels = 5;
531
- */
532
- numChannels?: number;
533
- constructor(data?: PartialMessage<ApmProcessStreamRequest>);
534
- static readonly runtime: typeof proto2;
535
- static readonly typeName = "livekit.proto.ApmProcessStreamRequest";
536
- static readonly fields: FieldList;
537
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessStreamRequest;
538
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessStreamRequest;
539
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessStreamRequest;
540
- static equals(a: ApmProcessStreamRequest | PlainMessage<ApmProcessStreamRequest> | undefined, b: ApmProcessStreamRequest | PlainMessage<ApmProcessStreamRequest> | undefined): boolean;
541
- }
542
- /**
543
- * @generated from message livekit.proto.ApmProcessStreamResponse
544
- */
545
- declare class ApmProcessStreamResponse extends Message<ApmProcessStreamResponse> {
546
- /**
547
- * @generated from field: optional string error = 1;
548
- */
549
- error?: string;
550
- constructor(data?: PartialMessage<ApmProcessStreamResponse>);
551
- static readonly runtime: typeof proto2;
552
- static readonly typeName = "livekit.proto.ApmProcessStreamResponse";
553
- static readonly fields: FieldList;
554
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessStreamResponse;
555
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessStreamResponse;
556
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessStreamResponse;
557
- static equals(a: ApmProcessStreamResponse | PlainMessage<ApmProcessStreamResponse> | undefined, b: ApmProcessStreamResponse | PlainMessage<ApmProcessStreamResponse> | undefined): boolean;
558
- }
559
- /**
560
- * @generated from message livekit.proto.ApmProcessReverseStreamRequest
561
- */
562
- declare class ApmProcessReverseStreamRequest extends Message<ApmProcessReverseStreamRequest> {
563
- /**
564
- * @generated from field: required uint64 apm_handle = 1;
565
- */
566
- apmHandle?: bigint;
567
- /**
568
- * *mut i16
569
- *
570
- * @generated from field: required uint64 data_ptr = 2;
571
- */
572
- dataPtr?: bigint;
573
- /**
574
- * in bytes
575
- *
576
- * @generated from field: required uint32 size = 3;
577
- */
578
- size?: number;
579
- /**
580
- * @generated from field: required uint32 sample_rate = 4;
581
- */
582
- sampleRate?: number;
583
- /**
584
- * @generated from field: required uint32 num_channels = 5;
585
- */
586
- numChannels?: number;
587
- constructor(data?: PartialMessage<ApmProcessReverseStreamRequest>);
588
- static readonly runtime: typeof proto2;
589
- static readonly typeName = "livekit.proto.ApmProcessReverseStreamRequest";
590
- static readonly fields: FieldList;
591
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessReverseStreamRequest;
592
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamRequest;
593
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamRequest;
594
- static equals(a: ApmProcessReverseStreamRequest | PlainMessage<ApmProcessReverseStreamRequest> | undefined, b: ApmProcessReverseStreamRequest | PlainMessage<ApmProcessReverseStreamRequest> | undefined): boolean;
595
- }
596
- /**
597
- * @generated from message livekit.proto.ApmProcessReverseStreamResponse
598
- */
599
- declare class ApmProcessReverseStreamResponse extends Message<ApmProcessReverseStreamResponse> {
600
- /**
601
- * @generated from field: optional string error = 1;
602
- */
603
- error?: string;
604
- constructor(data?: PartialMessage<ApmProcessReverseStreamResponse>);
605
- static readonly runtime: typeof proto2;
606
- static readonly typeName = "livekit.proto.ApmProcessReverseStreamResponse";
607
- static readonly fields: FieldList;
608
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmProcessReverseStreamResponse;
609
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamResponse;
610
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmProcessReverseStreamResponse;
611
- static equals(a: ApmProcessReverseStreamResponse | PlainMessage<ApmProcessReverseStreamResponse> | undefined, b: ApmProcessReverseStreamResponse | PlainMessage<ApmProcessReverseStreamResponse> | undefined): boolean;
612
- }
613
- /**
614
- * @generated from message livekit.proto.ApmSetStreamDelayRequest
615
- */
616
- declare class ApmSetStreamDelayRequest extends Message<ApmSetStreamDelayRequest> {
617
- /**
618
- * @generated from field: required uint64 apm_handle = 1;
619
- */
620
- apmHandle?: bigint;
621
- /**
622
- * @generated from field: required int32 delay_ms = 2;
623
- */
624
- delayMs?: number;
625
- constructor(data?: PartialMessage<ApmSetStreamDelayRequest>);
626
- static readonly runtime: typeof proto2;
627
- static readonly typeName = "livekit.proto.ApmSetStreamDelayRequest";
628
- static readonly fields: FieldList;
629
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmSetStreamDelayRequest;
630
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmSetStreamDelayRequest;
631
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmSetStreamDelayRequest;
632
- static equals(a: ApmSetStreamDelayRequest | PlainMessage<ApmSetStreamDelayRequest> | undefined, b: ApmSetStreamDelayRequest | PlainMessage<ApmSetStreamDelayRequest> | undefined): boolean;
633
- }
634
- /**
635
- * @generated from message livekit.proto.ApmSetStreamDelayResponse
636
- */
637
- declare class ApmSetStreamDelayResponse extends Message<ApmSetStreamDelayResponse> {
638
- /**
639
- * @generated from field: optional string error = 1;
640
- */
641
- error?: string;
642
- constructor(data?: PartialMessage<ApmSetStreamDelayResponse>);
643
- static readonly runtime: typeof proto2;
644
- static readonly typeName = "livekit.proto.ApmSetStreamDelayResponse";
645
- static readonly fields: FieldList;
646
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApmSetStreamDelayResponse;
647
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApmSetStreamDelayResponse;
648
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApmSetStreamDelayResponse;
649
- static equals(a: ApmSetStreamDelayResponse | PlainMessage<ApmSetStreamDelayResponse> | undefined, b: ApmSetStreamDelayResponse | PlainMessage<ApmSetStreamDelayResponse> | undefined): boolean;
650
- }
651
- /**
652
- * @generated from message livekit.proto.NewSoxResamplerRequest
653
- */
654
- declare class NewSoxResamplerRequest extends Message<NewSoxResamplerRequest> {
655
- /**
656
- * @generated from field: required double input_rate = 1;
657
- */
658
- inputRate?: number;
659
- /**
660
- * @generated from field: required double output_rate = 2;
661
- */
662
- outputRate?: number;
663
- /**
664
- * @generated from field: required uint32 num_channels = 3;
665
- */
666
- numChannels?: number;
667
- /**
668
- * @generated from field: required livekit.proto.SoxResamplerDataType input_data_type = 4;
669
- */
670
- inputDataType?: SoxResamplerDataType;
671
- /**
672
- * @generated from field: required livekit.proto.SoxResamplerDataType output_data_type = 5;
673
- */
674
- outputDataType?: SoxResamplerDataType;
675
- /**
676
- * @generated from field: required livekit.proto.SoxQualityRecipe quality_recipe = 6;
677
- */
678
- qualityRecipe?: SoxQualityRecipe;
679
- /**
680
- * @generated from field: optional uint32 flags = 7;
681
- */
682
- flags?: number;
683
- constructor(data?: PartialMessage<NewSoxResamplerRequest>);
684
- static readonly runtime: typeof proto2;
685
- static readonly typeName = "livekit.proto.NewSoxResamplerRequest";
686
- static readonly fields: FieldList;
687
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewSoxResamplerRequest;
688
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewSoxResamplerRequest;
689
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewSoxResamplerRequest;
690
- static equals(a: NewSoxResamplerRequest | PlainMessage<NewSoxResamplerRequest> | undefined, b: NewSoxResamplerRequest | PlainMessage<NewSoxResamplerRequest> | undefined): boolean;
691
- }
692
- /**
693
- * @generated from message livekit.proto.NewSoxResamplerResponse
694
- */
695
- declare class NewSoxResamplerResponse extends Message<NewSoxResamplerResponse> {
696
- /**
697
- * @generated from oneof livekit.proto.NewSoxResamplerResponse.message
698
- */
699
- message: {
700
- /**
701
- * @generated from field: livekit.proto.OwnedSoxResampler resampler = 1;
702
- */
703
- value: OwnedSoxResampler;
704
- case: "resampler";
705
- } | {
706
- /**
707
- * @generated from field: string error = 2;
708
- */
709
- value: string;
710
- case: "error";
711
- } | {
712
- case: undefined;
713
- value?: undefined;
714
- };
715
- constructor(data?: PartialMessage<NewSoxResamplerResponse>);
716
- static readonly runtime: typeof proto2;
717
- static readonly typeName = "livekit.proto.NewSoxResamplerResponse";
718
- static readonly fields: FieldList;
719
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewSoxResamplerResponse;
720
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewSoxResamplerResponse;
721
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewSoxResamplerResponse;
722
- static equals(a: NewSoxResamplerResponse | PlainMessage<NewSoxResamplerResponse> | undefined, b: NewSoxResamplerResponse | PlainMessage<NewSoxResamplerResponse> | undefined): boolean;
723
- }
724
- /**
725
- * @generated from message livekit.proto.PushSoxResamplerRequest
726
- */
727
- declare class PushSoxResamplerRequest extends Message<PushSoxResamplerRequest> {
728
- /**
729
- * @generated from field: required uint64 resampler_handle = 1;
730
- */
731
- resamplerHandle?: bigint;
732
- /**
733
- * *const i16
734
- *
735
- * @generated from field: required uint64 data_ptr = 2;
736
- */
737
- dataPtr?: bigint;
738
- /**
739
- * in bytes
740
- *
741
- * @generated from field: required uint32 size = 3;
742
- */
743
- size?: number;
744
- constructor(data?: PartialMessage<PushSoxResamplerRequest>);
745
- static readonly runtime: typeof proto2;
746
- static readonly typeName = "livekit.proto.PushSoxResamplerRequest";
747
- static readonly fields: FieldList;
748
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushSoxResamplerRequest;
749
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushSoxResamplerRequest;
750
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushSoxResamplerRequest;
751
- static equals(a: PushSoxResamplerRequest | PlainMessage<PushSoxResamplerRequest> | undefined, b: PushSoxResamplerRequest | PlainMessage<PushSoxResamplerRequest> | undefined): boolean;
752
- }
753
- /**
754
- * @generated from message livekit.proto.PushSoxResamplerResponse
755
- */
756
- declare class PushSoxResamplerResponse extends Message<PushSoxResamplerResponse> {
757
- /**
758
- * *const i16 (could be null)
759
- *
760
- * @generated from field: required uint64 output_ptr = 1;
761
- */
762
- outputPtr?: bigint;
763
- /**
764
- * in bytes
765
- *
766
- * @generated from field: required uint32 size = 2;
767
- */
768
- size?: number;
769
- /**
770
- * @generated from field: optional string error = 3;
771
- */
772
- error?: string;
773
- constructor(data?: PartialMessage<PushSoxResamplerResponse>);
774
- static readonly runtime: typeof proto2;
775
- static readonly typeName = "livekit.proto.PushSoxResamplerResponse";
776
- static readonly fields: FieldList;
777
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushSoxResamplerResponse;
778
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushSoxResamplerResponse;
779
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushSoxResamplerResponse;
780
- static equals(a: PushSoxResamplerResponse | PlainMessage<PushSoxResamplerResponse> | undefined, b: PushSoxResamplerResponse | PlainMessage<PushSoxResamplerResponse> | undefined): boolean;
781
- }
782
- /**
783
- * @generated from message livekit.proto.FlushSoxResamplerRequest
784
- */
785
- declare class FlushSoxResamplerRequest extends Message<FlushSoxResamplerRequest> {
786
- /**
787
- * @generated from field: required uint64 resampler_handle = 1;
788
- */
789
- resamplerHandle?: bigint;
790
- constructor(data?: PartialMessage<FlushSoxResamplerRequest>);
791
- static readonly runtime: typeof proto2;
792
- static readonly typeName = "livekit.proto.FlushSoxResamplerRequest";
793
- static readonly fields: FieldList;
794
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FlushSoxResamplerRequest;
795
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FlushSoxResamplerRequest;
796
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FlushSoxResamplerRequest;
797
- static equals(a: FlushSoxResamplerRequest | PlainMessage<FlushSoxResamplerRequest> | undefined, b: FlushSoxResamplerRequest | PlainMessage<FlushSoxResamplerRequest> | undefined): boolean;
798
- }
799
- /**
800
- * @generated from message livekit.proto.FlushSoxResamplerResponse
801
- */
802
- declare class FlushSoxResamplerResponse extends Message<FlushSoxResamplerResponse> {
803
- /**
804
- * *const i16 (could be null)
805
- *
806
- * @generated from field: required uint64 output_ptr = 1;
807
- */
808
- outputPtr?: bigint;
809
- /**
810
- * in bytes
811
- *
812
- * @generated from field: required uint32 size = 2;
813
- */
814
- size?: number;
815
- /**
816
- * @generated from field: optional string error = 3;
817
- */
818
- error?: string;
819
- constructor(data?: PartialMessage<FlushSoxResamplerResponse>);
820
- static readonly runtime: typeof proto2;
821
- static readonly typeName = "livekit.proto.FlushSoxResamplerResponse";
822
- static readonly fields: FieldList;
823
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FlushSoxResamplerResponse;
824
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FlushSoxResamplerResponse;
825
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FlushSoxResamplerResponse;
826
- static equals(a: FlushSoxResamplerResponse | PlainMessage<FlushSoxResamplerResponse> | undefined, b: FlushSoxResamplerResponse | PlainMessage<FlushSoxResamplerResponse> | undefined): boolean;
827
- }
828
- /**
829
- * @generated from message livekit.proto.AudioFrameBufferInfo
830
- */
831
- declare class AudioFrameBufferInfo extends Message<AudioFrameBufferInfo> {
832
- /**
833
- * *const i16
834
- *
835
- * @generated from field: required uint64 data_ptr = 1;
836
- */
837
- dataPtr?: bigint;
838
- /**
839
- * @generated from field: required uint32 num_channels = 2;
840
- */
841
- numChannels?: number;
842
- /**
843
- * @generated from field: required uint32 sample_rate = 3;
844
- */
845
- sampleRate?: number;
846
- /**
847
- * @generated from field: required uint32 samples_per_channel = 4;
848
- */
849
- samplesPerChannel?: number;
850
- constructor(data?: PartialMessage<AudioFrameBufferInfo>);
851
- static readonly runtime: typeof proto2;
852
- static readonly typeName = "livekit.proto.AudioFrameBufferInfo";
853
- static readonly fields: FieldList;
854
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioFrameBufferInfo;
855
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioFrameBufferInfo;
856
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioFrameBufferInfo;
857
- static equals(a: AudioFrameBufferInfo | PlainMessage<AudioFrameBufferInfo> | undefined, b: AudioFrameBufferInfo | PlainMessage<AudioFrameBufferInfo> | undefined): boolean;
858
- }
859
- /**
860
- * @generated from message livekit.proto.OwnedAudioFrameBuffer
861
- */
862
- declare class OwnedAudioFrameBuffer extends Message<OwnedAudioFrameBuffer> {
863
- /**
864
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
865
- */
866
- handle?: FfiOwnedHandle;
867
- /**
868
- * @generated from field: required livekit.proto.AudioFrameBufferInfo info = 2;
869
- */
870
- info?: AudioFrameBufferInfo;
871
- constructor(data?: PartialMessage<OwnedAudioFrameBuffer>);
872
- static readonly runtime: typeof proto2;
873
- static readonly typeName = "livekit.proto.OwnedAudioFrameBuffer";
874
- static readonly fields: FieldList;
875
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioFrameBuffer;
876
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioFrameBuffer;
877
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioFrameBuffer;
878
- static equals(a: OwnedAudioFrameBuffer | PlainMessage<OwnedAudioFrameBuffer> | undefined, b: OwnedAudioFrameBuffer | PlainMessage<OwnedAudioFrameBuffer> | undefined): boolean;
879
- }
880
- /**
881
- * @generated from message livekit.proto.AudioStreamInfo
882
- */
883
- declare class AudioStreamInfo extends Message<AudioStreamInfo> {
884
- /**
885
- * @generated from field: required livekit.proto.AudioStreamType type = 1;
886
- */
887
- type?: AudioStreamType;
888
- constructor(data?: PartialMessage<AudioStreamInfo>);
889
- static readonly runtime: typeof proto2;
890
- static readonly typeName = "livekit.proto.AudioStreamInfo";
891
- static readonly fields: FieldList;
892
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamInfo;
893
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamInfo;
894
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamInfo;
895
- static equals(a: AudioStreamInfo | PlainMessage<AudioStreamInfo> | undefined, b: AudioStreamInfo | PlainMessage<AudioStreamInfo> | undefined): boolean;
896
- }
897
- /**
898
- * @generated from message livekit.proto.OwnedAudioStream
899
- */
900
- declare class OwnedAudioStream extends Message<OwnedAudioStream> {
901
- /**
902
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
903
- */
904
- handle?: FfiOwnedHandle;
905
- /**
906
- * @generated from field: required livekit.proto.AudioStreamInfo info = 2;
907
- */
908
- info?: AudioStreamInfo;
909
- constructor(data?: PartialMessage<OwnedAudioStream>);
910
- static readonly runtime: typeof proto2;
911
- static readonly typeName = "livekit.proto.OwnedAudioStream";
912
- static readonly fields: FieldList;
913
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioStream;
914
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioStream;
915
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioStream;
916
- static equals(a: OwnedAudioStream | PlainMessage<OwnedAudioStream> | undefined, b: OwnedAudioStream | PlainMessage<OwnedAudioStream> | undefined): boolean;
917
- }
918
- /**
919
- * @generated from message livekit.proto.AudioStreamEvent
920
- */
921
- declare class AudioStreamEvent extends Message<AudioStreamEvent> {
922
- /**
923
- * @generated from field: required uint64 stream_handle = 1;
924
- */
925
- streamHandle?: bigint;
926
- /**
927
- * @generated from oneof livekit.proto.AudioStreamEvent.message
928
- */
929
- message: {
930
- /**
931
- * @generated from field: livekit.proto.AudioFrameReceived frame_received = 2;
932
- */
933
- value: AudioFrameReceived;
934
- case: "frameReceived";
935
- } | {
936
- /**
937
- * @generated from field: livekit.proto.AudioStreamEOS eos = 3;
938
- */
939
- value: AudioStreamEOS;
940
- case: "eos";
941
- } | {
942
- case: undefined;
943
- value?: undefined;
944
- };
945
- constructor(data?: PartialMessage<AudioStreamEvent>);
946
- static readonly runtime: typeof proto2;
947
- static readonly typeName = "livekit.proto.AudioStreamEvent";
948
- static readonly fields: FieldList;
949
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamEvent;
950
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamEvent;
951
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamEvent;
952
- static equals(a: AudioStreamEvent | PlainMessage<AudioStreamEvent> | undefined, b: AudioStreamEvent | PlainMessage<AudioStreamEvent> | undefined): boolean;
953
- }
954
- /**
955
- * @generated from message livekit.proto.AudioFrameReceived
956
- */
957
- declare class AudioFrameReceived extends Message<AudioFrameReceived> {
958
- /**
959
- * @generated from field: required livekit.proto.OwnedAudioFrameBuffer frame = 1;
960
- */
961
- frame?: OwnedAudioFrameBuffer;
962
- constructor(data?: PartialMessage<AudioFrameReceived>);
963
- static readonly runtime: typeof proto2;
964
- static readonly typeName = "livekit.proto.AudioFrameReceived";
965
- static readonly fields: FieldList;
966
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioFrameReceived;
967
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioFrameReceived;
968
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioFrameReceived;
969
- static equals(a: AudioFrameReceived | PlainMessage<AudioFrameReceived> | undefined, b: AudioFrameReceived | PlainMessage<AudioFrameReceived> | undefined): boolean;
970
- }
971
- /**
972
- * @generated from message livekit.proto.AudioStreamEOS
973
- */
974
- declare class AudioStreamEOS extends Message<AudioStreamEOS> {
975
- constructor(data?: PartialMessage<AudioStreamEOS>);
976
- static readonly runtime: typeof proto2;
977
- static readonly typeName = "livekit.proto.AudioStreamEOS";
978
- static readonly fields: FieldList;
979
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamEOS;
980
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamEOS;
981
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamEOS;
982
- static equals(a: AudioStreamEOS | PlainMessage<AudioStreamEOS> | undefined, b: AudioStreamEOS | PlainMessage<AudioStreamEOS> | undefined): boolean;
983
- }
984
- /**
985
- * @generated from message livekit.proto.AudioSourceOptions
986
- */
987
- declare class AudioSourceOptions extends Message<AudioSourceOptions> {
988
- /**
989
- * @generated from field: required bool echo_cancellation = 1;
990
- */
991
- echoCancellation?: boolean;
992
- /**
993
- * @generated from field: required bool noise_suppression = 2;
994
- */
995
- noiseSuppression?: boolean;
996
- /**
997
- * @generated from field: required bool auto_gain_control = 3;
998
- */
999
- autoGainControl?: boolean;
1000
- constructor(data?: PartialMessage<AudioSourceOptions>);
1001
- static readonly runtime: typeof proto2;
1002
- static readonly typeName = "livekit.proto.AudioSourceOptions";
1003
- static readonly fields: FieldList;
1004
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceOptions;
1005
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceOptions;
1006
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceOptions;
1007
- static equals(a: AudioSourceOptions | PlainMessage<AudioSourceOptions> | undefined, b: AudioSourceOptions | PlainMessage<AudioSourceOptions> | undefined): boolean;
1008
- }
1009
- /**
1010
- * @generated from message livekit.proto.AudioSourceInfo
1011
- */
1012
- declare class AudioSourceInfo extends Message<AudioSourceInfo> {
1013
- /**
1014
- * @generated from field: required livekit.proto.AudioSourceType type = 2;
1015
- */
1016
- type?: AudioSourceType;
1017
- constructor(data?: PartialMessage<AudioSourceInfo>);
1018
- static readonly runtime: typeof proto2;
1019
- static readonly typeName = "livekit.proto.AudioSourceInfo";
1020
- static readonly fields: FieldList;
1021
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceInfo;
1022
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceInfo;
1023
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceInfo;
1024
- static equals(a: AudioSourceInfo | PlainMessage<AudioSourceInfo> | undefined, b: AudioSourceInfo | PlainMessage<AudioSourceInfo> | undefined): boolean;
1025
- }
1026
- /**
1027
- * @generated from message livekit.proto.OwnedAudioSource
1028
- */
1029
- declare class OwnedAudioSource extends Message<OwnedAudioSource> {
1030
- /**
1031
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
1032
- */
1033
- handle?: FfiOwnedHandle;
1034
- /**
1035
- * @generated from field: required livekit.proto.AudioSourceInfo info = 2;
1036
- */
1037
- info?: AudioSourceInfo;
1038
- constructor(data?: PartialMessage<OwnedAudioSource>);
1039
- static readonly runtime: typeof proto2;
1040
- static readonly typeName = "livekit.proto.OwnedAudioSource";
1041
- static readonly fields: FieldList;
1042
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioSource;
1043
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioSource;
1044
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioSource;
1045
- static equals(a: OwnedAudioSource | PlainMessage<OwnedAudioSource> | undefined, b: OwnedAudioSource | PlainMessage<OwnedAudioSource> | undefined): boolean;
1046
- }
1047
- /**
1048
- * @generated from message livekit.proto.AudioResamplerInfo
1049
- */
1050
- declare class AudioResamplerInfo extends Message<AudioResamplerInfo> {
1051
- constructor(data?: PartialMessage<AudioResamplerInfo>);
1052
- static readonly runtime: typeof proto2;
1053
- static readonly typeName = "livekit.proto.AudioResamplerInfo";
1054
- static readonly fields: FieldList;
1055
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioResamplerInfo;
1056
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioResamplerInfo;
1057
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioResamplerInfo;
1058
- static equals(a: AudioResamplerInfo | PlainMessage<AudioResamplerInfo> | undefined, b: AudioResamplerInfo | PlainMessage<AudioResamplerInfo> | undefined): boolean;
1059
- }
1060
- /**
1061
- * @generated from message livekit.proto.OwnedAudioResampler
1062
- */
1063
- declare class OwnedAudioResampler extends Message<OwnedAudioResampler> {
1064
- /**
1065
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
1066
- */
1067
- handle?: FfiOwnedHandle;
1068
- /**
1069
- * @generated from field: required livekit.proto.AudioResamplerInfo info = 2;
1070
- */
1071
- info?: AudioResamplerInfo;
1072
- constructor(data?: PartialMessage<OwnedAudioResampler>);
1073
- static readonly runtime: typeof proto2;
1074
- static readonly typeName = "livekit.proto.OwnedAudioResampler";
1075
- static readonly fields: FieldList;
1076
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioResampler;
1077
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioResampler;
1078
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioResampler;
1079
- static equals(a: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined, b: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined): boolean;
1080
- }
1081
- /**
1082
- * @generated from message livekit.proto.OwnedApm
1083
- */
1084
- declare class OwnedApm extends Message<OwnedApm> {
1085
- /**
1086
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
1087
- */
1088
- handle?: FfiOwnedHandle;
1089
- constructor(data?: PartialMessage<OwnedApm>);
1090
- static readonly runtime: typeof proto2;
1091
- static readonly typeName = "livekit.proto.OwnedApm";
1092
- static readonly fields: FieldList;
1093
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedApm;
1094
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedApm;
1095
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedApm;
1096
- static equals(a: OwnedApm | PlainMessage<OwnedApm> | undefined, b: OwnedApm | PlainMessage<OwnedApm> | undefined): boolean;
1097
- }
1098
- /**
1099
- * @generated from message livekit.proto.SoxResamplerInfo
1100
- */
1101
- declare class SoxResamplerInfo extends Message<SoxResamplerInfo> {
1102
- constructor(data?: PartialMessage<SoxResamplerInfo>);
1103
- static readonly runtime: typeof proto2;
1104
- static readonly typeName = "livekit.proto.SoxResamplerInfo";
1105
- static readonly fields: FieldList;
1106
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SoxResamplerInfo;
1107
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SoxResamplerInfo;
1108
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SoxResamplerInfo;
1109
- static equals(a: SoxResamplerInfo | PlainMessage<SoxResamplerInfo> | undefined, b: SoxResamplerInfo | PlainMessage<SoxResamplerInfo> | undefined): boolean;
1110
- }
1111
- /**
1112
- * @generated from message livekit.proto.OwnedSoxResampler
1113
- */
1114
- declare class OwnedSoxResampler extends Message<OwnedSoxResampler> {
1115
- /**
1116
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
1117
- */
1118
- handle?: FfiOwnedHandle;
1119
- /**
1120
- * @generated from field: required livekit.proto.SoxResamplerInfo info = 2;
1121
- */
1122
- info?: SoxResamplerInfo;
1123
- constructor(data?: PartialMessage<OwnedSoxResampler>);
1124
- static readonly runtime: typeof proto2;
1125
- static readonly typeName = "livekit.proto.OwnedSoxResampler";
1126
- static readonly fields: FieldList;
1127
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedSoxResampler;
1128
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedSoxResampler;
1129
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedSoxResampler;
1130
- static equals(a: OwnedSoxResampler | PlainMessage<OwnedSoxResampler> | undefined, b: OwnedSoxResampler | PlainMessage<OwnedSoxResampler> | undefined): boolean;
1131
- }
1132
- /**
1133
- * Audio Filter Plugin
1134
- *
1135
- * @generated from message livekit.proto.LoadAudioFilterPluginRequest
1136
- */
1137
- declare class LoadAudioFilterPluginRequest extends Message<LoadAudioFilterPluginRequest> {
1138
- /**
1139
- * path for ffi audio filter plugin
1140
- *
1141
- * @generated from field: required string plugin_path = 1;
1142
- */
1143
- pluginPath?: string;
1144
- /**
1145
- * Optional: paths for dependency dylibs
1146
- *
1147
- * @generated from field: repeated string dependencies = 2;
1148
- */
1149
- dependencies: string[];
1150
- /**
1151
- * Unique identifier of the plugin
1152
- *
1153
- * @generated from field: required string module_id = 3;
1154
- */
1155
- moduleId?: string;
1156
- constructor(data?: PartialMessage<LoadAudioFilterPluginRequest>);
1157
- static readonly runtime: typeof proto2;
1158
- static readonly typeName = "livekit.proto.LoadAudioFilterPluginRequest";
1159
- static readonly fields: FieldList;
1160
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LoadAudioFilterPluginRequest;
1161
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginRequest;
1162
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginRequest;
1163
- static equals(a: LoadAudioFilterPluginRequest | PlainMessage<LoadAudioFilterPluginRequest> | undefined, b: LoadAudioFilterPluginRequest | PlainMessage<LoadAudioFilterPluginRequest> | undefined): boolean;
1164
- }
1165
- /**
1166
- * @generated from message livekit.proto.LoadAudioFilterPluginResponse
1167
- */
1168
- declare class LoadAudioFilterPluginResponse extends Message<LoadAudioFilterPluginResponse> {
1169
- /**
1170
- * @generated from field: optional string error = 1;
1171
- */
1172
- error?: string;
1173
- constructor(data?: PartialMessage<LoadAudioFilterPluginResponse>);
1174
- static readonly runtime: typeof proto2;
1175
- static readonly typeName = "livekit.proto.LoadAudioFilterPluginResponse";
1176
- static readonly fields: FieldList;
1177
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LoadAudioFilterPluginResponse;
1178
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginResponse;
1179
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LoadAudioFilterPluginResponse;
1180
- static equals(a: LoadAudioFilterPluginResponse | PlainMessage<LoadAudioFilterPluginResponse> | undefined, b: LoadAudioFilterPluginResponse | PlainMessage<LoadAudioFilterPluginResponse> | undefined): boolean;
1181
- }
1182
-
1183
- 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 };