@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,1283 +0,0 @@
1
- import { Message, proto2 } from "@bufbuild/protobuf";
2
- import { TrackSource } from "./track_pb.js";
3
- import { FfiOwnedHandle } from "./handle_pb.js";
4
- var SoxResamplerDataType = /* @__PURE__ */ ((SoxResamplerDataType2) => {
5
- SoxResamplerDataType2[SoxResamplerDataType2["SOXR_DATATYPE_INT16I"] = 0] = "SOXR_DATATYPE_INT16I";
6
- SoxResamplerDataType2[SoxResamplerDataType2["SOXR_DATATYPE_INT16S"] = 1] = "SOXR_DATATYPE_INT16S";
7
- return SoxResamplerDataType2;
8
- })(SoxResamplerDataType || {});
9
- proto2.util.setEnumType(SoxResamplerDataType, "livekit.proto.SoxResamplerDataType", [
10
- { no: 0, name: "SOXR_DATATYPE_INT16I" },
11
- { no: 1, name: "SOXR_DATATYPE_INT16S" }
12
- ]);
13
- var SoxQualityRecipe = /* @__PURE__ */ ((SoxQualityRecipe2) => {
14
- SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_QUICK"] = 0] = "SOXR_QUALITY_QUICK";
15
- SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_LOW"] = 1] = "SOXR_QUALITY_LOW";
16
- SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_MEDIUM"] = 2] = "SOXR_QUALITY_MEDIUM";
17
- SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_HIGH"] = 3] = "SOXR_QUALITY_HIGH";
18
- SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_VERYHIGH"] = 4] = "SOXR_QUALITY_VERYHIGH";
19
- return SoxQualityRecipe2;
20
- })(SoxQualityRecipe || {});
21
- proto2.util.setEnumType(SoxQualityRecipe, "livekit.proto.SoxQualityRecipe", [
22
- { no: 0, name: "SOXR_QUALITY_QUICK" },
23
- { no: 1, name: "SOXR_QUALITY_LOW" },
24
- { no: 2, name: "SOXR_QUALITY_MEDIUM" },
25
- { no: 3, name: "SOXR_QUALITY_HIGH" },
26
- { no: 4, name: "SOXR_QUALITY_VERYHIGH" }
27
- ]);
28
- var SoxFlagBits = /* @__PURE__ */ ((SoxFlagBits2) => {
29
- SoxFlagBits2[SoxFlagBits2["SOXR_ROLLOFF_SMALL"] = 0] = "SOXR_ROLLOFF_SMALL";
30
- SoxFlagBits2[SoxFlagBits2["SOXR_ROLLOFF_MEDIUM"] = 1] = "SOXR_ROLLOFF_MEDIUM";
31
- SoxFlagBits2[SoxFlagBits2["SOXR_ROLLOFF_NONE"] = 2] = "SOXR_ROLLOFF_NONE";
32
- SoxFlagBits2[SoxFlagBits2["SOXR_HIGH_PREC_CLOCK"] = 3] = "SOXR_HIGH_PREC_CLOCK";
33
- SoxFlagBits2[SoxFlagBits2["SOXR_DOUBLE_PRECISION"] = 4] = "SOXR_DOUBLE_PRECISION";
34
- SoxFlagBits2[SoxFlagBits2["SOXR_VR"] = 5] = "SOXR_VR";
35
- return SoxFlagBits2;
36
- })(SoxFlagBits || {});
37
- proto2.util.setEnumType(SoxFlagBits, "livekit.proto.SoxFlagBits", [
38
- { no: 0, name: "SOXR_ROLLOFF_SMALL" },
39
- { no: 1, name: "SOXR_ROLLOFF_MEDIUM" },
40
- { no: 2, name: "SOXR_ROLLOFF_NONE" },
41
- { no: 3, name: "SOXR_HIGH_PREC_CLOCK" },
42
- { no: 4, name: "SOXR_DOUBLE_PRECISION" },
43
- { no: 5, name: "SOXR_VR" }
44
- ]);
45
- var AudioStreamType = /* @__PURE__ */ ((AudioStreamType2) => {
46
- AudioStreamType2[AudioStreamType2["AUDIO_STREAM_NATIVE"] = 0] = "AUDIO_STREAM_NATIVE";
47
- AudioStreamType2[AudioStreamType2["AUDIO_STREAM_HTML"] = 1] = "AUDIO_STREAM_HTML";
48
- return AudioStreamType2;
49
- })(AudioStreamType || {});
50
- proto2.util.setEnumType(AudioStreamType, "livekit.proto.AudioStreamType", [
51
- { no: 0, name: "AUDIO_STREAM_NATIVE" },
52
- { no: 1, name: "AUDIO_STREAM_HTML" }
53
- ]);
54
- var AudioSourceType = /* @__PURE__ */ ((AudioSourceType2) => {
55
- AudioSourceType2[AudioSourceType2["AUDIO_SOURCE_NATIVE"] = 0] = "AUDIO_SOURCE_NATIVE";
56
- return AudioSourceType2;
57
- })(AudioSourceType || {});
58
- proto2.util.setEnumType(AudioSourceType, "livekit.proto.AudioSourceType", [
59
- { no: 0, name: "AUDIO_SOURCE_NATIVE" }
60
- ]);
61
- const _NewAudioStreamRequest = class _NewAudioStreamRequest extends Message {
62
- constructor(data) {
63
- super();
64
- proto2.util.initPartial(data, this);
65
- }
66
- static fromBinary(bytes, options) {
67
- return new _NewAudioStreamRequest().fromBinary(bytes, options);
68
- }
69
- static fromJson(jsonValue, options) {
70
- return new _NewAudioStreamRequest().fromJson(jsonValue, options);
71
- }
72
- static fromJsonString(jsonString, options) {
73
- return new _NewAudioStreamRequest().fromJsonString(jsonString, options);
74
- }
75
- static equals(a, b) {
76
- return proto2.util.equals(_NewAudioStreamRequest, a, b);
77
- }
78
- };
79
- _NewAudioStreamRequest.runtime = proto2;
80
- _NewAudioStreamRequest.typeName = "livekit.proto.NewAudioStreamRequest";
81
- _NewAudioStreamRequest.fields = proto2.util.newFieldList(() => [
82
- { no: 1, name: "track_handle", kind: "scalar", T: 4, req: true },
83
- { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true },
84
- { no: 3, name: "sample_rate", kind: "scalar", T: 13, opt: true },
85
- { no: 4, name: "num_channels", kind: "scalar", T: 13, opt: true },
86
- { no: 5, name: "audio_filter_module_id", kind: "scalar", T: 9, opt: true },
87
- { no: 6, name: "audio_filter_options", kind: "scalar", T: 9, opt: true },
88
- { no: 7, name: "frame_size_ms", kind: "scalar", T: 13, opt: true }
89
- ]);
90
- let NewAudioStreamRequest = _NewAudioStreamRequest;
91
- const _NewAudioStreamResponse = class _NewAudioStreamResponse extends Message {
92
- constructor(data) {
93
- super();
94
- proto2.util.initPartial(data, this);
95
- }
96
- static fromBinary(bytes, options) {
97
- return new _NewAudioStreamResponse().fromBinary(bytes, options);
98
- }
99
- static fromJson(jsonValue, options) {
100
- return new _NewAudioStreamResponse().fromJson(jsonValue, options);
101
- }
102
- static fromJsonString(jsonString, options) {
103
- return new _NewAudioStreamResponse().fromJsonString(jsonString, options);
104
- }
105
- static equals(a, b) {
106
- return proto2.util.equals(_NewAudioStreamResponse, a, b);
107
- }
108
- };
109
- _NewAudioStreamResponse.runtime = proto2;
110
- _NewAudioStreamResponse.typeName = "livekit.proto.NewAudioStreamResponse";
111
- _NewAudioStreamResponse.fields = proto2.util.newFieldList(() => [
112
- { no: 1, name: "stream", kind: "message", T: OwnedAudioStream, req: true }
113
- ]);
114
- let NewAudioStreamResponse = _NewAudioStreamResponse;
115
- const _AudioStreamFromParticipantRequest = class _AudioStreamFromParticipantRequest extends Message {
116
- constructor(data) {
117
- super();
118
- proto2.util.initPartial(data, this);
119
- }
120
- static fromBinary(bytes, options) {
121
- return new _AudioStreamFromParticipantRequest().fromBinary(bytes, options);
122
- }
123
- static fromJson(jsonValue, options) {
124
- return new _AudioStreamFromParticipantRequest().fromJson(jsonValue, options);
125
- }
126
- static fromJsonString(jsonString, options) {
127
- return new _AudioStreamFromParticipantRequest().fromJsonString(jsonString, options);
128
- }
129
- static equals(a, b) {
130
- return proto2.util.equals(_AudioStreamFromParticipantRequest, a, b);
131
- }
132
- };
133
- _AudioStreamFromParticipantRequest.runtime = proto2;
134
- _AudioStreamFromParticipantRequest.typeName = "livekit.proto.AudioStreamFromParticipantRequest";
135
- _AudioStreamFromParticipantRequest.fields = proto2.util.newFieldList(() => [
136
- { no: 1, name: "participant_handle", kind: "scalar", T: 4, req: true },
137
- { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true },
138
- { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource), opt: true },
139
- { no: 5, name: "sample_rate", kind: "scalar", T: 13, opt: true },
140
- { no: 6, name: "num_channels", kind: "scalar", T: 13, opt: true },
141
- { no: 7, name: "audio_filter_module_id", kind: "scalar", T: 9, opt: true },
142
- { no: 8, name: "audio_filter_options", kind: "scalar", T: 9, opt: true },
143
- { no: 9, name: "frame_size_ms", kind: "scalar", T: 13, opt: true }
144
- ]);
145
- let AudioStreamFromParticipantRequest = _AudioStreamFromParticipantRequest;
146
- const _AudioStreamFromParticipantResponse = class _AudioStreamFromParticipantResponse extends Message {
147
- constructor(data) {
148
- super();
149
- proto2.util.initPartial(data, this);
150
- }
151
- static fromBinary(bytes, options) {
152
- return new _AudioStreamFromParticipantResponse().fromBinary(bytes, options);
153
- }
154
- static fromJson(jsonValue, options) {
155
- return new _AudioStreamFromParticipantResponse().fromJson(jsonValue, options);
156
- }
157
- static fromJsonString(jsonString, options) {
158
- return new _AudioStreamFromParticipantResponse().fromJsonString(jsonString, options);
159
- }
160
- static equals(a, b) {
161
- return proto2.util.equals(_AudioStreamFromParticipantResponse, a, b);
162
- }
163
- };
164
- _AudioStreamFromParticipantResponse.runtime = proto2;
165
- _AudioStreamFromParticipantResponse.typeName = "livekit.proto.AudioStreamFromParticipantResponse";
166
- _AudioStreamFromParticipantResponse.fields = proto2.util.newFieldList(() => [
167
- { no: 1, name: "stream", kind: "message", T: OwnedAudioStream, req: true }
168
- ]);
169
- let AudioStreamFromParticipantResponse = _AudioStreamFromParticipantResponse;
170
- const _NewAudioSourceRequest = class _NewAudioSourceRequest extends Message {
171
- constructor(data) {
172
- super();
173
- proto2.util.initPartial(data, this);
174
- }
175
- static fromBinary(bytes, options) {
176
- return new _NewAudioSourceRequest().fromBinary(bytes, options);
177
- }
178
- static fromJson(jsonValue, options) {
179
- return new _NewAudioSourceRequest().fromJson(jsonValue, options);
180
- }
181
- static fromJsonString(jsonString, options) {
182
- return new _NewAudioSourceRequest().fromJsonString(jsonString, options);
183
- }
184
- static equals(a, b) {
185
- return proto2.util.equals(_NewAudioSourceRequest, a, b);
186
- }
187
- };
188
- _NewAudioSourceRequest.runtime = proto2;
189
- _NewAudioSourceRequest.typeName = "livekit.proto.NewAudioSourceRequest";
190
- _NewAudioSourceRequest.fields = proto2.util.newFieldList(() => [
191
- { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType), req: true },
192
- { no: 2, name: "options", kind: "message", T: AudioSourceOptions, opt: true },
193
- { no: 3, name: "sample_rate", kind: "scalar", T: 13, req: true },
194
- { no: 4, name: "num_channels", kind: "scalar", T: 13, req: true },
195
- { no: 5, name: "queue_size_ms", kind: "scalar", T: 13, opt: true }
196
- ]);
197
- let NewAudioSourceRequest = _NewAudioSourceRequest;
198
- const _NewAudioSourceResponse = class _NewAudioSourceResponse extends Message {
199
- constructor(data) {
200
- super();
201
- proto2.util.initPartial(data, this);
202
- }
203
- static fromBinary(bytes, options) {
204
- return new _NewAudioSourceResponse().fromBinary(bytes, options);
205
- }
206
- static fromJson(jsonValue, options) {
207
- return new _NewAudioSourceResponse().fromJson(jsonValue, options);
208
- }
209
- static fromJsonString(jsonString, options) {
210
- return new _NewAudioSourceResponse().fromJsonString(jsonString, options);
211
- }
212
- static equals(a, b) {
213
- return proto2.util.equals(_NewAudioSourceResponse, a, b);
214
- }
215
- };
216
- _NewAudioSourceResponse.runtime = proto2;
217
- _NewAudioSourceResponse.typeName = "livekit.proto.NewAudioSourceResponse";
218
- _NewAudioSourceResponse.fields = proto2.util.newFieldList(() => [
219
- { no: 1, name: "source", kind: "message", T: OwnedAudioSource, req: true }
220
- ]);
221
- let NewAudioSourceResponse = _NewAudioSourceResponse;
222
- const _CaptureAudioFrameRequest = class _CaptureAudioFrameRequest extends Message {
223
- constructor(data) {
224
- super();
225
- proto2.util.initPartial(data, this);
226
- }
227
- static fromBinary(bytes, options) {
228
- return new _CaptureAudioFrameRequest().fromBinary(bytes, options);
229
- }
230
- static fromJson(jsonValue, options) {
231
- return new _CaptureAudioFrameRequest().fromJson(jsonValue, options);
232
- }
233
- static fromJsonString(jsonString, options) {
234
- return new _CaptureAudioFrameRequest().fromJsonString(jsonString, options);
235
- }
236
- static equals(a, b) {
237
- return proto2.util.equals(_CaptureAudioFrameRequest, a, b);
238
- }
239
- };
240
- _CaptureAudioFrameRequest.runtime = proto2;
241
- _CaptureAudioFrameRequest.typeName = "livekit.proto.CaptureAudioFrameRequest";
242
- _CaptureAudioFrameRequest.fields = proto2.util.newFieldList(() => [
243
- { no: 1, name: "source_handle", kind: "scalar", T: 4, req: true },
244
- { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo, req: true }
245
- ]);
246
- let CaptureAudioFrameRequest = _CaptureAudioFrameRequest;
247
- const _CaptureAudioFrameResponse = class _CaptureAudioFrameResponse extends Message {
248
- constructor(data) {
249
- super();
250
- proto2.util.initPartial(data, this);
251
- }
252
- static fromBinary(bytes, options) {
253
- return new _CaptureAudioFrameResponse().fromBinary(bytes, options);
254
- }
255
- static fromJson(jsonValue, options) {
256
- return new _CaptureAudioFrameResponse().fromJson(jsonValue, options);
257
- }
258
- static fromJsonString(jsonString, options) {
259
- return new _CaptureAudioFrameResponse().fromJsonString(jsonString, options);
260
- }
261
- static equals(a, b) {
262
- return proto2.util.equals(_CaptureAudioFrameResponse, a, b);
263
- }
264
- };
265
- _CaptureAudioFrameResponse.runtime = proto2;
266
- _CaptureAudioFrameResponse.typeName = "livekit.proto.CaptureAudioFrameResponse";
267
- _CaptureAudioFrameResponse.fields = proto2.util.newFieldList(() => [
268
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
269
- ]);
270
- let CaptureAudioFrameResponse = _CaptureAudioFrameResponse;
271
- const _CaptureAudioFrameCallback = class _CaptureAudioFrameCallback extends Message {
272
- constructor(data) {
273
- super();
274
- proto2.util.initPartial(data, this);
275
- }
276
- static fromBinary(bytes, options) {
277
- return new _CaptureAudioFrameCallback().fromBinary(bytes, options);
278
- }
279
- static fromJson(jsonValue, options) {
280
- return new _CaptureAudioFrameCallback().fromJson(jsonValue, options);
281
- }
282
- static fromJsonString(jsonString, options) {
283
- return new _CaptureAudioFrameCallback().fromJsonString(jsonString, options);
284
- }
285
- static equals(a, b) {
286
- return proto2.util.equals(_CaptureAudioFrameCallback, a, b);
287
- }
288
- };
289
- _CaptureAudioFrameCallback.runtime = proto2;
290
- _CaptureAudioFrameCallback.typeName = "livekit.proto.CaptureAudioFrameCallback";
291
- _CaptureAudioFrameCallback.fields = proto2.util.newFieldList(() => [
292
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
293
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
294
- ]);
295
- let CaptureAudioFrameCallback = _CaptureAudioFrameCallback;
296
- const _ClearAudioBufferRequest = class _ClearAudioBufferRequest extends Message {
297
- constructor(data) {
298
- super();
299
- proto2.util.initPartial(data, this);
300
- }
301
- static fromBinary(bytes, options) {
302
- return new _ClearAudioBufferRequest().fromBinary(bytes, options);
303
- }
304
- static fromJson(jsonValue, options) {
305
- return new _ClearAudioBufferRequest().fromJson(jsonValue, options);
306
- }
307
- static fromJsonString(jsonString, options) {
308
- return new _ClearAudioBufferRequest().fromJsonString(jsonString, options);
309
- }
310
- static equals(a, b) {
311
- return proto2.util.equals(_ClearAudioBufferRequest, a, b);
312
- }
313
- };
314
- _ClearAudioBufferRequest.runtime = proto2;
315
- _ClearAudioBufferRequest.typeName = "livekit.proto.ClearAudioBufferRequest";
316
- _ClearAudioBufferRequest.fields = proto2.util.newFieldList(() => [
317
- { no: 1, name: "source_handle", kind: "scalar", T: 4, req: true }
318
- ]);
319
- let ClearAudioBufferRequest = _ClearAudioBufferRequest;
320
- const _ClearAudioBufferResponse = class _ClearAudioBufferResponse extends Message {
321
- constructor(data) {
322
- super();
323
- proto2.util.initPartial(data, this);
324
- }
325
- static fromBinary(bytes, options) {
326
- return new _ClearAudioBufferResponse().fromBinary(bytes, options);
327
- }
328
- static fromJson(jsonValue, options) {
329
- return new _ClearAudioBufferResponse().fromJson(jsonValue, options);
330
- }
331
- static fromJsonString(jsonString, options) {
332
- return new _ClearAudioBufferResponse().fromJsonString(jsonString, options);
333
- }
334
- static equals(a, b) {
335
- return proto2.util.equals(_ClearAudioBufferResponse, a, b);
336
- }
337
- };
338
- _ClearAudioBufferResponse.runtime = proto2;
339
- _ClearAudioBufferResponse.typeName = "livekit.proto.ClearAudioBufferResponse";
340
- _ClearAudioBufferResponse.fields = proto2.util.newFieldList(() => []);
341
- let ClearAudioBufferResponse = _ClearAudioBufferResponse;
342
- const _NewAudioResamplerRequest = class _NewAudioResamplerRequest extends Message {
343
- constructor(data) {
344
- super();
345
- proto2.util.initPartial(data, this);
346
- }
347
- static fromBinary(bytes, options) {
348
- return new _NewAudioResamplerRequest().fromBinary(bytes, options);
349
- }
350
- static fromJson(jsonValue, options) {
351
- return new _NewAudioResamplerRequest().fromJson(jsonValue, options);
352
- }
353
- static fromJsonString(jsonString, options) {
354
- return new _NewAudioResamplerRequest().fromJsonString(jsonString, options);
355
- }
356
- static equals(a, b) {
357
- return proto2.util.equals(_NewAudioResamplerRequest, a, b);
358
- }
359
- };
360
- _NewAudioResamplerRequest.runtime = proto2;
361
- _NewAudioResamplerRequest.typeName = "livekit.proto.NewAudioResamplerRequest";
362
- _NewAudioResamplerRequest.fields = proto2.util.newFieldList(() => []);
363
- let NewAudioResamplerRequest = _NewAudioResamplerRequest;
364
- const _NewAudioResamplerResponse = class _NewAudioResamplerResponse extends Message {
365
- constructor(data) {
366
- super();
367
- proto2.util.initPartial(data, this);
368
- }
369
- static fromBinary(bytes, options) {
370
- return new _NewAudioResamplerResponse().fromBinary(bytes, options);
371
- }
372
- static fromJson(jsonValue, options) {
373
- return new _NewAudioResamplerResponse().fromJson(jsonValue, options);
374
- }
375
- static fromJsonString(jsonString, options) {
376
- return new _NewAudioResamplerResponse().fromJsonString(jsonString, options);
377
- }
378
- static equals(a, b) {
379
- return proto2.util.equals(_NewAudioResamplerResponse, a, b);
380
- }
381
- };
382
- _NewAudioResamplerResponse.runtime = proto2;
383
- _NewAudioResamplerResponse.typeName = "livekit.proto.NewAudioResamplerResponse";
384
- _NewAudioResamplerResponse.fields = proto2.util.newFieldList(() => [
385
- { no: 1, name: "resampler", kind: "message", T: OwnedAudioResampler, req: true }
386
- ]);
387
- let NewAudioResamplerResponse = _NewAudioResamplerResponse;
388
- const _RemixAndResampleRequest = class _RemixAndResampleRequest extends Message {
389
- constructor(data) {
390
- super();
391
- proto2.util.initPartial(data, this);
392
- }
393
- static fromBinary(bytes, options) {
394
- return new _RemixAndResampleRequest().fromBinary(bytes, options);
395
- }
396
- static fromJson(jsonValue, options) {
397
- return new _RemixAndResampleRequest().fromJson(jsonValue, options);
398
- }
399
- static fromJsonString(jsonString, options) {
400
- return new _RemixAndResampleRequest().fromJsonString(jsonString, options);
401
- }
402
- static equals(a, b) {
403
- return proto2.util.equals(_RemixAndResampleRequest, a, b);
404
- }
405
- };
406
- _RemixAndResampleRequest.runtime = proto2;
407
- _RemixAndResampleRequest.typeName = "livekit.proto.RemixAndResampleRequest";
408
- _RemixAndResampleRequest.fields = proto2.util.newFieldList(() => [
409
- { no: 1, name: "resampler_handle", kind: "scalar", T: 4, req: true },
410
- { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo, req: true },
411
- { no: 3, name: "num_channels", kind: "scalar", T: 13, req: true },
412
- { no: 4, name: "sample_rate", kind: "scalar", T: 13, req: true }
413
- ]);
414
- let RemixAndResampleRequest = _RemixAndResampleRequest;
415
- const _RemixAndResampleResponse = class _RemixAndResampleResponse extends Message {
416
- constructor(data) {
417
- super();
418
- proto2.util.initPartial(data, this);
419
- }
420
- static fromBinary(bytes, options) {
421
- return new _RemixAndResampleResponse().fromBinary(bytes, options);
422
- }
423
- static fromJson(jsonValue, options) {
424
- return new _RemixAndResampleResponse().fromJson(jsonValue, options);
425
- }
426
- static fromJsonString(jsonString, options) {
427
- return new _RemixAndResampleResponse().fromJsonString(jsonString, options);
428
- }
429
- static equals(a, b) {
430
- return proto2.util.equals(_RemixAndResampleResponse, a, b);
431
- }
432
- };
433
- _RemixAndResampleResponse.runtime = proto2;
434
- _RemixAndResampleResponse.typeName = "livekit.proto.RemixAndResampleResponse";
435
- _RemixAndResampleResponse.fields = proto2.util.newFieldList(() => [
436
- { no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer, req: true }
437
- ]);
438
- let RemixAndResampleResponse = _RemixAndResampleResponse;
439
- const _NewApmRequest = class _NewApmRequest extends Message {
440
- constructor(data) {
441
- super();
442
- proto2.util.initPartial(data, this);
443
- }
444
- static fromBinary(bytes, options) {
445
- return new _NewApmRequest().fromBinary(bytes, options);
446
- }
447
- static fromJson(jsonValue, options) {
448
- return new _NewApmRequest().fromJson(jsonValue, options);
449
- }
450
- static fromJsonString(jsonString, options) {
451
- return new _NewApmRequest().fromJsonString(jsonString, options);
452
- }
453
- static equals(a, b) {
454
- return proto2.util.equals(_NewApmRequest, a, b);
455
- }
456
- };
457
- _NewApmRequest.runtime = proto2;
458
- _NewApmRequest.typeName = "livekit.proto.NewApmRequest";
459
- _NewApmRequest.fields = proto2.util.newFieldList(() => [
460
- { no: 1, name: "echo_canceller_enabled", kind: "scalar", T: 8, req: true },
461
- { no: 2, name: "gain_controller_enabled", kind: "scalar", T: 8, req: true },
462
- { no: 3, name: "high_pass_filter_enabled", kind: "scalar", T: 8, req: true },
463
- { no: 4, name: "noise_suppression_enabled", kind: "scalar", T: 8, req: true }
464
- ]);
465
- let NewApmRequest = _NewApmRequest;
466
- const _NewApmResponse = class _NewApmResponse extends Message {
467
- constructor(data) {
468
- super();
469
- proto2.util.initPartial(data, this);
470
- }
471
- static fromBinary(bytes, options) {
472
- return new _NewApmResponse().fromBinary(bytes, options);
473
- }
474
- static fromJson(jsonValue, options) {
475
- return new _NewApmResponse().fromJson(jsonValue, options);
476
- }
477
- static fromJsonString(jsonString, options) {
478
- return new _NewApmResponse().fromJsonString(jsonString, options);
479
- }
480
- static equals(a, b) {
481
- return proto2.util.equals(_NewApmResponse, a, b);
482
- }
483
- };
484
- _NewApmResponse.runtime = proto2;
485
- _NewApmResponse.typeName = "livekit.proto.NewApmResponse";
486
- _NewApmResponse.fields = proto2.util.newFieldList(() => [
487
- { no: 1, name: "apm", kind: "message", T: OwnedApm, req: true }
488
- ]);
489
- let NewApmResponse = _NewApmResponse;
490
- const _ApmProcessStreamRequest = class _ApmProcessStreamRequest extends Message {
491
- constructor(data) {
492
- super();
493
- proto2.util.initPartial(data, this);
494
- }
495
- static fromBinary(bytes, options) {
496
- return new _ApmProcessStreamRequest().fromBinary(bytes, options);
497
- }
498
- static fromJson(jsonValue, options) {
499
- return new _ApmProcessStreamRequest().fromJson(jsonValue, options);
500
- }
501
- static fromJsonString(jsonString, options) {
502
- return new _ApmProcessStreamRequest().fromJsonString(jsonString, options);
503
- }
504
- static equals(a, b) {
505
- return proto2.util.equals(_ApmProcessStreamRequest, a, b);
506
- }
507
- };
508
- _ApmProcessStreamRequest.runtime = proto2;
509
- _ApmProcessStreamRequest.typeName = "livekit.proto.ApmProcessStreamRequest";
510
- _ApmProcessStreamRequest.fields = proto2.util.newFieldList(() => [
511
- { no: 1, name: "apm_handle", kind: "scalar", T: 4, req: true },
512
- { no: 2, name: "data_ptr", kind: "scalar", T: 4, req: true },
513
- { no: 3, name: "size", kind: "scalar", T: 13, req: true },
514
- { no: 4, name: "sample_rate", kind: "scalar", T: 13, req: true },
515
- { no: 5, name: "num_channels", kind: "scalar", T: 13, req: true }
516
- ]);
517
- let ApmProcessStreamRequest = _ApmProcessStreamRequest;
518
- const _ApmProcessStreamResponse = class _ApmProcessStreamResponse extends Message {
519
- constructor(data) {
520
- super();
521
- proto2.util.initPartial(data, this);
522
- }
523
- static fromBinary(bytes, options) {
524
- return new _ApmProcessStreamResponse().fromBinary(bytes, options);
525
- }
526
- static fromJson(jsonValue, options) {
527
- return new _ApmProcessStreamResponse().fromJson(jsonValue, options);
528
- }
529
- static fromJsonString(jsonString, options) {
530
- return new _ApmProcessStreamResponse().fromJsonString(jsonString, options);
531
- }
532
- static equals(a, b) {
533
- return proto2.util.equals(_ApmProcessStreamResponse, a, b);
534
- }
535
- };
536
- _ApmProcessStreamResponse.runtime = proto2;
537
- _ApmProcessStreamResponse.typeName = "livekit.proto.ApmProcessStreamResponse";
538
- _ApmProcessStreamResponse.fields = proto2.util.newFieldList(() => [
539
- { no: 1, name: "error", kind: "scalar", T: 9, opt: true }
540
- ]);
541
- let ApmProcessStreamResponse = _ApmProcessStreamResponse;
542
- const _ApmProcessReverseStreamRequest = class _ApmProcessReverseStreamRequest extends Message {
543
- constructor(data) {
544
- super();
545
- proto2.util.initPartial(data, this);
546
- }
547
- static fromBinary(bytes, options) {
548
- return new _ApmProcessReverseStreamRequest().fromBinary(bytes, options);
549
- }
550
- static fromJson(jsonValue, options) {
551
- return new _ApmProcessReverseStreamRequest().fromJson(jsonValue, options);
552
- }
553
- static fromJsonString(jsonString, options) {
554
- return new _ApmProcessReverseStreamRequest().fromJsonString(jsonString, options);
555
- }
556
- static equals(a, b) {
557
- return proto2.util.equals(_ApmProcessReverseStreamRequest, a, b);
558
- }
559
- };
560
- _ApmProcessReverseStreamRequest.runtime = proto2;
561
- _ApmProcessReverseStreamRequest.typeName = "livekit.proto.ApmProcessReverseStreamRequest";
562
- _ApmProcessReverseStreamRequest.fields = proto2.util.newFieldList(() => [
563
- { no: 1, name: "apm_handle", kind: "scalar", T: 4, req: true },
564
- { no: 2, name: "data_ptr", kind: "scalar", T: 4, req: true },
565
- { no: 3, name: "size", kind: "scalar", T: 13, req: true },
566
- { no: 4, name: "sample_rate", kind: "scalar", T: 13, req: true },
567
- { no: 5, name: "num_channels", kind: "scalar", T: 13, req: true }
568
- ]);
569
- let ApmProcessReverseStreamRequest = _ApmProcessReverseStreamRequest;
570
- const _ApmProcessReverseStreamResponse = class _ApmProcessReverseStreamResponse extends Message {
571
- constructor(data) {
572
- super();
573
- proto2.util.initPartial(data, this);
574
- }
575
- static fromBinary(bytes, options) {
576
- return new _ApmProcessReverseStreamResponse().fromBinary(bytes, options);
577
- }
578
- static fromJson(jsonValue, options) {
579
- return new _ApmProcessReverseStreamResponse().fromJson(jsonValue, options);
580
- }
581
- static fromJsonString(jsonString, options) {
582
- return new _ApmProcessReverseStreamResponse().fromJsonString(jsonString, options);
583
- }
584
- static equals(a, b) {
585
- return proto2.util.equals(_ApmProcessReverseStreamResponse, a, b);
586
- }
587
- };
588
- _ApmProcessReverseStreamResponse.runtime = proto2;
589
- _ApmProcessReverseStreamResponse.typeName = "livekit.proto.ApmProcessReverseStreamResponse";
590
- _ApmProcessReverseStreamResponse.fields = proto2.util.newFieldList(() => [
591
- { no: 1, name: "error", kind: "scalar", T: 9, opt: true }
592
- ]);
593
- let ApmProcessReverseStreamResponse = _ApmProcessReverseStreamResponse;
594
- const _ApmSetStreamDelayRequest = class _ApmSetStreamDelayRequest extends Message {
595
- constructor(data) {
596
- super();
597
- proto2.util.initPartial(data, this);
598
- }
599
- static fromBinary(bytes, options) {
600
- return new _ApmSetStreamDelayRequest().fromBinary(bytes, options);
601
- }
602
- static fromJson(jsonValue, options) {
603
- return new _ApmSetStreamDelayRequest().fromJson(jsonValue, options);
604
- }
605
- static fromJsonString(jsonString, options) {
606
- return new _ApmSetStreamDelayRequest().fromJsonString(jsonString, options);
607
- }
608
- static equals(a, b) {
609
- return proto2.util.equals(_ApmSetStreamDelayRequest, a, b);
610
- }
611
- };
612
- _ApmSetStreamDelayRequest.runtime = proto2;
613
- _ApmSetStreamDelayRequest.typeName = "livekit.proto.ApmSetStreamDelayRequest";
614
- _ApmSetStreamDelayRequest.fields = proto2.util.newFieldList(() => [
615
- { no: 1, name: "apm_handle", kind: "scalar", T: 4, req: true },
616
- { no: 2, name: "delay_ms", kind: "scalar", T: 5, req: true }
617
- ]);
618
- let ApmSetStreamDelayRequest = _ApmSetStreamDelayRequest;
619
- const _ApmSetStreamDelayResponse = class _ApmSetStreamDelayResponse extends Message {
620
- constructor(data) {
621
- super();
622
- proto2.util.initPartial(data, this);
623
- }
624
- static fromBinary(bytes, options) {
625
- return new _ApmSetStreamDelayResponse().fromBinary(bytes, options);
626
- }
627
- static fromJson(jsonValue, options) {
628
- return new _ApmSetStreamDelayResponse().fromJson(jsonValue, options);
629
- }
630
- static fromJsonString(jsonString, options) {
631
- return new _ApmSetStreamDelayResponse().fromJsonString(jsonString, options);
632
- }
633
- static equals(a, b) {
634
- return proto2.util.equals(_ApmSetStreamDelayResponse, a, b);
635
- }
636
- };
637
- _ApmSetStreamDelayResponse.runtime = proto2;
638
- _ApmSetStreamDelayResponse.typeName = "livekit.proto.ApmSetStreamDelayResponse";
639
- _ApmSetStreamDelayResponse.fields = proto2.util.newFieldList(() => [
640
- { no: 1, name: "error", kind: "scalar", T: 9, opt: true }
641
- ]);
642
- let ApmSetStreamDelayResponse = _ApmSetStreamDelayResponse;
643
- const _NewSoxResamplerRequest = class _NewSoxResamplerRequest extends Message {
644
- constructor(data) {
645
- super();
646
- proto2.util.initPartial(data, this);
647
- }
648
- static fromBinary(bytes, options) {
649
- return new _NewSoxResamplerRequest().fromBinary(bytes, options);
650
- }
651
- static fromJson(jsonValue, options) {
652
- return new _NewSoxResamplerRequest().fromJson(jsonValue, options);
653
- }
654
- static fromJsonString(jsonString, options) {
655
- return new _NewSoxResamplerRequest().fromJsonString(jsonString, options);
656
- }
657
- static equals(a, b) {
658
- return proto2.util.equals(_NewSoxResamplerRequest, a, b);
659
- }
660
- };
661
- _NewSoxResamplerRequest.runtime = proto2;
662
- _NewSoxResamplerRequest.typeName = "livekit.proto.NewSoxResamplerRequest";
663
- _NewSoxResamplerRequest.fields = proto2.util.newFieldList(() => [
664
- { no: 1, name: "input_rate", kind: "scalar", T: 1, req: true },
665
- { no: 2, name: "output_rate", kind: "scalar", T: 1, req: true },
666
- { no: 3, name: "num_channels", kind: "scalar", T: 13, req: true },
667
- { no: 4, name: "input_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType), req: true },
668
- { no: 5, name: "output_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType), req: true },
669
- { no: 6, name: "quality_recipe", kind: "enum", T: proto2.getEnumType(SoxQualityRecipe), req: true },
670
- { no: 7, name: "flags", kind: "scalar", T: 13, opt: true }
671
- ]);
672
- let NewSoxResamplerRequest = _NewSoxResamplerRequest;
673
- const _NewSoxResamplerResponse = class _NewSoxResamplerResponse extends Message {
674
- constructor(data) {
675
- super();
676
- /**
677
- * @generated from oneof livekit.proto.NewSoxResamplerResponse.message
678
- */
679
- this.message = { case: void 0 };
680
- proto2.util.initPartial(data, this);
681
- }
682
- static fromBinary(bytes, options) {
683
- return new _NewSoxResamplerResponse().fromBinary(bytes, options);
684
- }
685
- static fromJson(jsonValue, options) {
686
- return new _NewSoxResamplerResponse().fromJson(jsonValue, options);
687
- }
688
- static fromJsonString(jsonString, options) {
689
- return new _NewSoxResamplerResponse().fromJsonString(jsonString, options);
690
- }
691
- static equals(a, b) {
692
- return proto2.util.equals(_NewSoxResamplerResponse, a, b);
693
- }
694
- };
695
- _NewSoxResamplerResponse.runtime = proto2;
696
- _NewSoxResamplerResponse.typeName = "livekit.proto.NewSoxResamplerResponse";
697
- _NewSoxResamplerResponse.fields = proto2.util.newFieldList(() => [
698
- { no: 1, name: "resampler", kind: "message", T: OwnedSoxResampler, oneof: "message" },
699
- { no: 2, name: "error", kind: "scalar", T: 9, oneof: "message" }
700
- ]);
701
- let NewSoxResamplerResponse = _NewSoxResamplerResponse;
702
- const _PushSoxResamplerRequest = class _PushSoxResamplerRequest extends Message {
703
- constructor(data) {
704
- super();
705
- proto2.util.initPartial(data, this);
706
- }
707
- static fromBinary(bytes, options) {
708
- return new _PushSoxResamplerRequest().fromBinary(bytes, options);
709
- }
710
- static fromJson(jsonValue, options) {
711
- return new _PushSoxResamplerRequest().fromJson(jsonValue, options);
712
- }
713
- static fromJsonString(jsonString, options) {
714
- return new _PushSoxResamplerRequest().fromJsonString(jsonString, options);
715
- }
716
- static equals(a, b) {
717
- return proto2.util.equals(_PushSoxResamplerRequest, a, b);
718
- }
719
- };
720
- _PushSoxResamplerRequest.runtime = proto2;
721
- _PushSoxResamplerRequest.typeName = "livekit.proto.PushSoxResamplerRequest";
722
- _PushSoxResamplerRequest.fields = proto2.util.newFieldList(() => [
723
- { no: 1, name: "resampler_handle", kind: "scalar", T: 4, req: true },
724
- { no: 2, name: "data_ptr", kind: "scalar", T: 4, req: true },
725
- { no: 3, name: "size", kind: "scalar", T: 13, req: true }
726
- ]);
727
- let PushSoxResamplerRequest = _PushSoxResamplerRequest;
728
- const _PushSoxResamplerResponse = class _PushSoxResamplerResponse extends Message {
729
- constructor(data) {
730
- super();
731
- proto2.util.initPartial(data, this);
732
- }
733
- static fromBinary(bytes, options) {
734
- return new _PushSoxResamplerResponse().fromBinary(bytes, options);
735
- }
736
- static fromJson(jsonValue, options) {
737
- return new _PushSoxResamplerResponse().fromJson(jsonValue, options);
738
- }
739
- static fromJsonString(jsonString, options) {
740
- return new _PushSoxResamplerResponse().fromJsonString(jsonString, options);
741
- }
742
- static equals(a, b) {
743
- return proto2.util.equals(_PushSoxResamplerResponse, a, b);
744
- }
745
- };
746
- _PushSoxResamplerResponse.runtime = proto2;
747
- _PushSoxResamplerResponse.typeName = "livekit.proto.PushSoxResamplerResponse";
748
- _PushSoxResamplerResponse.fields = proto2.util.newFieldList(() => [
749
- { no: 1, name: "output_ptr", kind: "scalar", T: 4, req: true },
750
- { no: 2, name: "size", kind: "scalar", T: 13, req: true },
751
- { no: 3, name: "error", kind: "scalar", T: 9, opt: true }
752
- ]);
753
- let PushSoxResamplerResponse = _PushSoxResamplerResponse;
754
- const _FlushSoxResamplerRequest = class _FlushSoxResamplerRequest extends Message {
755
- constructor(data) {
756
- super();
757
- proto2.util.initPartial(data, this);
758
- }
759
- static fromBinary(bytes, options) {
760
- return new _FlushSoxResamplerRequest().fromBinary(bytes, options);
761
- }
762
- static fromJson(jsonValue, options) {
763
- return new _FlushSoxResamplerRequest().fromJson(jsonValue, options);
764
- }
765
- static fromJsonString(jsonString, options) {
766
- return new _FlushSoxResamplerRequest().fromJsonString(jsonString, options);
767
- }
768
- static equals(a, b) {
769
- return proto2.util.equals(_FlushSoxResamplerRequest, a, b);
770
- }
771
- };
772
- _FlushSoxResamplerRequest.runtime = proto2;
773
- _FlushSoxResamplerRequest.typeName = "livekit.proto.FlushSoxResamplerRequest";
774
- _FlushSoxResamplerRequest.fields = proto2.util.newFieldList(() => [
775
- { no: 1, name: "resampler_handle", kind: "scalar", T: 4, req: true }
776
- ]);
777
- let FlushSoxResamplerRequest = _FlushSoxResamplerRequest;
778
- const _FlushSoxResamplerResponse = class _FlushSoxResamplerResponse extends Message {
779
- constructor(data) {
780
- super();
781
- proto2.util.initPartial(data, this);
782
- }
783
- static fromBinary(bytes, options) {
784
- return new _FlushSoxResamplerResponse().fromBinary(bytes, options);
785
- }
786
- static fromJson(jsonValue, options) {
787
- return new _FlushSoxResamplerResponse().fromJson(jsonValue, options);
788
- }
789
- static fromJsonString(jsonString, options) {
790
- return new _FlushSoxResamplerResponse().fromJsonString(jsonString, options);
791
- }
792
- static equals(a, b) {
793
- return proto2.util.equals(_FlushSoxResamplerResponse, a, b);
794
- }
795
- };
796
- _FlushSoxResamplerResponse.runtime = proto2;
797
- _FlushSoxResamplerResponse.typeName = "livekit.proto.FlushSoxResamplerResponse";
798
- _FlushSoxResamplerResponse.fields = proto2.util.newFieldList(() => [
799
- { no: 1, name: "output_ptr", kind: "scalar", T: 4, req: true },
800
- { no: 2, name: "size", kind: "scalar", T: 13, req: true },
801
- { no: 3, name: "error", kind: "scalar", T: 9, opt: true }
802
- ]);
803
- let FlushSoxResamplerResponse = _FlushSoxResamplerResponse;
804
- const _AudioFrameBufferInfo = class _AudioFrameBufferInfo extends Message {
805
- constructor(data) {
806
- super();
807
- proto2.util.initPartial(data, this);
808
- }
809
- static fromBinary(bytes, options) {
810
- return new _AudioFrameBufferInfo().fromBinary(bytes, options);
811
- }
812
- static fromJson(jsonValue, options) {
813
- return new _AudioFrameBufferInfo().fromJson(jsonValue, options);
814
- }
815
- static fromJsonString(jsonString, options) {
816
- return new _AudioFrameBufferInfo().fromJsonString(jsonString, options);
817
- }
818
- static equals(a, b) {
819
- return proto2.util.equals(_AudioFrameBufferInfo, a, b);
820
- }
821
- };
822
- _AudioFrameBufferInfo.runtime = proto2;
823
- _AudioFrameBufferInfo.typeName = "livekit.proto.AudioFrameBufferInfo";
824
- _AudioFrameBufferInfo.fields = proto2.util.newFieldList(() => [
825
- { no: 1, name: "data_ptr", kind: "scalar", T: 4, req: true },
826
- { no: 2, name: "num_channels", kind: "scalar", T: 13, req: true },
827
- { no: 3, name: "sample_rate", kind: "scalar", T: 13, req: true },
828
- { no: 4, name: "samples_per_channel", kind: "scalar", T: 13, req: true }
829
- ]);
830
- let AudioFrameBufferInfo = _AudioFrameBufferInfo;
831
- const _OwnedAudioFrameBuffer = class _OwnedAudioFrameBuffer extends Message {
832
- constructor(data) {
833
- super();
834
- proto2.util.initPartial(data, this);
835
- }
836
- static fromBinary(bytes, options) {
837
- return new _OwnedAudioFrameBuffer().fromBinary(bytes, options);
838
- }
839
- static fromJson(jsonValue, options) {
840
- return new _OwnedAudioFrameBuffer().fromJson(jsonValue, options);
841
- }
842
- static fromJsonString(jsonString, options) {
843
- return new _OwnedAudioFrameBuffer().fromJsonString(jsonString, options);
844
- }
845
- static equals(a, b) {
846
- return proto2.util.equals(_OwnedAudioFrameBuffer, a, b);
847
- }
848
- };
849
- _OwnedAudioFrameBuffer.runtime = proto2;
850
- _OwnedAudioFrameBuffer.typeName = "livekit.proto.OwnedAudioFrameBuffer";
851
- _OwnedAudioFrameBuffer.fields = proto2.util.newFieldList(() => [
852
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
853
- { no: 2, name: "info", kind: "message", T: AudioFrameBufferInfo, req: true }
854
- ]);
855
- let OwnedAudioFrameBuffer = _OwnedAudioFrameBuffer;
856
- const _AudioStreamInfo = class _AudioStreamInfo extends Message {
857
- constructor(data) {
858
- super();
859
- proto2.util.initPartial(data, this);
860
- }
861
- static fromBinary(bytes, options) {
862
- return new _AudioStreamInfo().fromBinary(bytes, options);
863
- }
864
- static fromJson(jsonValue, options) {
865
- return new _AudioStreamInfo().fromJson(jsonValue, options);
866
- }
867
- static fromJsonString(jsonString, options) {
868
- return new _AudioStreamInfo().fromJsonString(jsonString, options);
869
- }
870
- static equals(a, b) {
871
- return proto2.util.equals(_AudioStreamInfo, a, b);
872
- }
873
- };
874
- _AudioStreamInfo.runtime = proto2;
875
- _AudioStreamInfo.typeName = "livekit.proto.AudioStreamInfo";
876
- _AudioStreamInfo.fields = proto2.util.newFieldList(() => [
877
- { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true }
878
- ]);
879
- let AudioStreamInfo = _AudioStreamInfo;
880
- const _OwnedAudioStream = class _OwnedAudioStream extends Message {
881
- constructor(data) {
882
- super();
883
- proto2.util.initPartial(data, this);
884
- }
885
- static fromBinary(bytes, options) {
886
- return new _OwnedAudioStream().fromBinary(bytes, options);
887
- }
888
- static fromJson(jsonValue, options) {
889
- return new _OwnedAudioStream().fromJson(jsonValue, options);
890
- }
891
- static fromJsonString(jsonString, options) {
892
- return new _OwnedAudioStream().fromJsonString(jsonString, options);
893
- }
894
- static equals(a, b) {
895
- return proto2.util.equals(_OwnedAudioStream, a, b);
896
- }
897
- };
898
- _OwnedAudioStream.runtime = proto2;
899
- _OwnedAudioStream.typeName = "livekit.proto.OwnedAudioStream";
900
- _OwnedAudioStream.fields = proto2.util.newFieldList(() => [
901
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
902
- { no: 2, name: "info", kind: "message", T: AudioStreamInfo, req: true }
903
- ]);
904
- let OwnedAudioStream = _OwnedAudioStream;
905
- const _AudioStreamEvent = class _AudioStreamEvent extends Message {
906
- constructor(data) {
907
- super();
908
- /**
909
- * @generated from oneof livekit.proto.AudioStreamEvent.message
910
- */
911
- this.message = { case: void 0 };
912
- proto2.util.initPartial(data, this);
913
- }
914
- static fromBinary(bytes, options) {
915
- return new _AudioStreamEvent().fromBinary(bytes, options);
916
- }
917
- static fromJson(jsonValue, options) {
918
- return new _AudioStreamEvent().fromJson(jsonValue, options);
919
- }
920
- static fromJsonString(jsonString, options) {
921
- return new _AudioStreamEvent().fromJsonString(jsonString, options);
922
- }
923
- static equals(a, b) {
924
- return proto2.util.equals(_AudioStreamEvent, a, b);
925
- }
926
- };
927
- _AudioStreamEvent.runtime = proto2;
928
- _AudioStreamEvent.typeName = "livekit.proto.AudioStreamEvent";
929
- _AudioStreamEvent.fields = proto2.util.newFieldList(() => [
930
- { no: 1, name: "stream_handle", kind: "scalar", T: 4, req: true },
931
- { no: 2, name: "frame_received", kind: "message", T: AudioFrameReceived, oneof: "message" },
932
- { no: 3, name: "eos", kind: "message", T: AudioStreamEOS, oneof: "message" }
933
- ]);
934
- let AudioStreamEvent = _AudioStreamEvent;
935
- const _AudioFrameReceived = class _AudioFrameReceived extends Message {
936
- constructor(data) {
937
- super();
938
- proto2.util.initPartial(data, this);
939
- }
940
- static fromBinary(bytes, options) {
941
- return new _AudioFrameReceived().fromBinary(bytes, options);
942
- }
943
- static fromJson(jsonValue, options) {
944
- return new _AudioFrameReceived().fromJson(jsonValue, options);
945
- }
946
- static fromJsonString(jsonString, options) {
947
- return new _AudioFrameReceived().fromJsonString(jsonString, options);
948
- }
949
- static equals(a, b) {
950
- return proto2.util.equals(_AudioFrameReceived, a, b);
951
- }
952
- };
953
- _AudioFrameReceived.runtime = proto2;
954
- _AudioFrameReceived.typeName = "livekit.proto.AudioFrameReceived";
955
- _AudioFrameReceived.fields = proto2.util.newFieldList(() => [
956
- { no: 1, name: "frame", kind: "message", T: OwnedAudioFrameBuffer, req: true }
957
- ]);
958
- let AudioFrameReceived = _AudioFrameReceived;
959
- const _AudioStreamEOS = class _AudioStreamEOS extends Message {
960
- constructor(data) {
961
- super();
962
- proto2.util.initPartial(data, this);
963
- }
964
- static fromBinary(bytes, options) {
965
- return new _AudioStreamEOS().fromBinary(bytes, options);
966
- }
967
- static fromJson(jsonValue, options) {
968
- return new _AudioStreamEOS().fromJson(jsonValue, options);
969
- }
970
- static fromJsonString(jsonString, options) {
971
- return new _AudioStreamEOS().fromJsonString(jsonString, options);
972
- }
973
- static equals(a, b) {
974
- return proto2.util.equals(_AudioStreamEOS, a, b);
975
- }
976
- };
977
- _AudioStreamEOS.runtime = proto2;
978
- _AudioStreamEOS.typeName = "livekit.proto.AudioStreamEOS";
979
- _AudioStreamEOS.fields = proto2.util.newFieldList(() => []);
980
- let AudioStreamEOS = _AudioStreamEOS;
981
- const _AudioSourceOptions = class _AudioSourceOptions extends Message {
982
- constructor(data) {
983
- super();
984
- proto2.util.initPartial(data, this);
985
- }
986
- static fromBinary(bytes, options) {
987
- return new _AudioSourceOptions().fromBinary(bytes, options);
988
- }
989
- static fromJson(jsonValue, options) {
990
- return new _AudioSourceOptions().fromJson(jsonValue, options);
991
- }
992
- static fromJsonString(jsonString, options) {
993
- return new _AudioSourceOptions().fromJsonString(jsonString, options);
994
- }
995
- static equals(a, b) {
996
- return proto2.util.equals(_AudioSourceOptions, a, b);
997
- }
998
- };
999
- _AudioSourceOptions.runtime = proto2;
1000
- _AudioSourceOptions.typeName = "livekit.proto.AudioSourceOptions";
1001
- _AudioSourceOptions.fields = proto2.util.newFieldList(() => [
1002
- { no: 1, name: "echo_cancellation", kind: "scalar", T: 8, req: true },
1003
- { no: 2, name: "noise_suppression", kind: "scalar", T: 8, req: true },
1004
- { no: 3, name: "auto_gain_control", kind: "scalar", T: 8, req: true }
1005
- ]);
1006
- let AudioSourceOptions = _AudioSourceOptions;
1007
- const _AudioSourceInfo = class _AudioSourceInfo extends Message {
1008
- constructor(data) {
1009
- super();
1010
- proto2.util.initPartial(data, this);
1011
- }
1012
- static fromBinary(bytes, options) {
1013
- return new _AudioSourceInfo().fromBinary(bytes, options);
1014
- }
1015
- static fromJson(jsonValue, options) {
1016
- return new _AudioSourceInfo().fromJson(jsonValue, options);
1017
- }
1018
- static fromJsonString(jsonString, options) {
1019
- return new _AudioSourceInfo().fromJsonString(jsonString, options);
1020
- }
1021
- static equals(a, b) {
1022
- return proto2.util.equals(_AudioSourceInfo, a, b);
1023
- }
1024
- };
1025
- _AudioSourceInfo.runtime = proto2;
1026
- _AudioSourceInfo.typeName = "livekit.proto.AudioSourceInfo";
1027
- _AudioSourceInfo.fields = proto2.util.newFieldList(() => [
1028
- { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType), req: true }
1029
- ]);
1030
- let AudioSourceInfo = _AudioSourceInfo;
1031
- const _OwnedAudioSource = class _OwnedAudioSource extends Message {
1032
- constructor(data) {
1033
- super();
1034
- proto2.util.initPartial(data, this);
1035
- }
1036
- static fromBinary(bytes, options) {
1037
- return new _OwnedAudioSource().fromBinary(bytes, options);
1038
- }
1039
- static fromJson(jsonValue, options) {
1040
- return new _OwnedAudioSource().fromJson(jsonValue, options);
1041
- }
1042
- static fromJsonString(jsonString, options) {
1043
- return new _OwnedAudioSource().fromJsonString(jsonString, options);
1044
- }
1045
- static equals(a, b) {
1046
- return proto2.util.equals(_OwnedAudioSource, a, b);
1047
- }
1048
- };
1049
- _OwnedAudioSource.runtime = proto2;
1050
- _OwnedAudioSource.typeName = "livekit.proto.OwnedAudioSource";
1051
- _OwnedAudioSource.fields = proto2.util.newFieldList(() => [
1052
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1053
- { no: 2, name: "info", kind: "message", T: AudioSourceInfo, req: true }
1054
- ]);
1055
- let OwnedAudioSource = _OwnedAudioSource;
1056
- const _AudioResamplerInfo = class _AudioResamplerInfo extends Message {
1057
- constructor(data) {
1058
- super();
1059
- proto2.util.initPartial(data, this);
1060
- }
1061
- static fromBinary(bytes, options) {
1062
- return new _AudioResamplerInfo().fromBinary(bytes, options);
1063
- }
1064
- static fromJson(jsonValue, options) {
1065
- return new _AudioResamplerInfo().fromJson(jsonValue, options);
1066
- }
1067
- static fromJsonString(jsonString, options) {
1068
- return new _AudioResamplerInfo().fromJsonString(jsonString, options);
1069
- }
1070
- static equals(a, b) {
1071
- return proto2.util.equals(_AudioResamplerInfo, a, b);
1072
- }
1073
- };
1074
- _AudioResamplerInfo.runtime = proto2;
1075
- _AudioResamplerInfo.typeName = "livekit.proto.AudioResamplerInfo";
1076
- _AudioResamplerInfo.fields = proto2.util.newFieldList(() => []);
1077
- let AudioResamplerInfo = _AudioResamplerInfo;
1078
- const _OwnedAudioResampler = class _OwnedAudioResampler extends Message {
1079
- constructor(data) {
1080
- super();
1081
- proto2.util.initPartial(data, this);
1082
- }
1083
- static fromBinary(bytes, options) {
1084
- return new _OwnedAudioResampler().fromBinary(bytes, options);
1085
- }
1086
- static fromJson(jsonValue, options) {
1087
- return new _OwnedAudioResampler().fromJson(jsonValue, options);
1088
- }
1089
- static fromJsonString(jsonString, options) {
1090
- return new _OwnedAudioResampler().fromJsonString(jsonString, options);
1091
- }
1092
- static equals(a, b) {
1093
- return proto2.util.equals(_OwnedAudioResampler, a, b);
1094
- }
1095
- };
1096
- _OwnedAudioResampler.runtime = proto2;
1097
- _OwnedAudioResampler.typeName = "livekit.proto.OwnedAudioResampler";
1098
- _OwnedAudioResampler.fields = proto2.util.newFieldList(() => [
1099
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1100
- { no: 2, name: "info", kind: "message", T: AudioResamplerInfo, req: true }
1101
- ]);
1102
- let OwnedAudioResampler = _OwnedAudioResampler;
1103
- const _OwnedApm = class _OwnedApm extends Message {
1104
- constructor(data) {
1105
- super();
1106
- proto2.util.initPartial(data, this);
1107
- }
1108
- static fromBinary(bytes, options) {
1109
- return new _OwnedApm().fromBinary(bytes, options);
1110
- }
1111
- static fromJson(jsonValue, options) {
1112
- return new _OwnedApm().fromJson(jsonValue, options);
1113
- }
1114
- static fromJsonString(jsonString, options) {
1115
- return new _OwnedApm().fromJsonString(jsonString, options);
1116
- }
1117
- static equals(a, b) {
1118
- return proto2.util.equals(_OwnedApm, a, b);
1119
- }
1120
- };
1121
- _OwnedApm.runtime = proto2;
1122
- _OwnedApm.typeName = "livekit.proto.OwnedApm";
1123
- _OwnedApm.fields = proto2.util.newFieldList(() => [
1124
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }
1125
- ]);
1126
- let OwnedApm = _OwnedApm;
1127
- const _SoxResamplerInfo = class _SoxResamplerInfo extends Message {
1128
- constructor(data) {
1129
- super();
1130
- proto2.util.initPartial(data, this);
1131
- }
1132
- static fromBinary(bytes, options) {
1133
- return new _SoxResamplerInfo().fromBinary(bytes, options);
1134
- }
1135
- static fromJson(jsonValue, options) {
1136
- return new _SoxResamplerInfo().fromJson(jsonValue, options);
1137
- }
1138
- static fromJsonString(jsonString, options) {
1139
- return new _SoxResamplerInfo().fromJsonString(jsonString, options);
1140
- }
1141
- static equals(a, b) {
1142
- return proto2.util.equals(_SoxResamplerInfo, a, b);
1143
- }
1144
- };
1145
- _SoxResamplerInfo.runtime = proto2;
1146
- _SoxResamplerInfo.typeName = "livekit.proto.SoxResamplerInfo";
1147
- _SoxResamplerInfo.fields = proto2.util.newFieldList(() => []);
1148
- let SoxResamplerInfo = _SoxResamplerInfo;
1149
- const _OwnedSoxResampler = class _OwnedSoxResampler extends Message {
1150
- constructor(data) {
1151
- super();
1152
- proto2.util.initPartial(data, this);
1153
- }
1154
- static fromBinary(bytes, options) {
1155
- return new _OwnedSoxResampler().fromBinary(bytes, options);
1156
- }
1157
- static fromJson(jsonValue, options) {
1158
- return new _OwnedSoxResampler().fromJson(jsonValue, options);
1159
- }
1160
- static fromJsonString(jsonString, options) {
1161
- return new _OwnedSoxResampler().fromJsonString(jsonString, options);
1162
- }
1163
- static equals(a, b) {
1164
- return proto2.util.equals(_OwnedSoxResampler, a, b);
1165
- }
1166
- };
1167
- _OwnedSoxResampler.runtime = proto2;
1168
- _OwnedSoxResampler.typeName = "livekit.proto.OwnedSoxResampler";
1169
- _OwnedSoxResampler.fields = proto2.util.newFieldList(() => [
1170
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1171
- { no: 2, name: "info", kind: "message", T: SoxResamplerInfo, req: true }
1172
- ]);
1173
- let OwnedSoxResampler = _OwnedSoxResampler;
1174
- const _LoadAudioFilterPluginRequest = class _LoadAudioFilterPluginRequest extends Message {
1175
- constructor(data) {
1176
- super();
1177
- /**
1178
- * Optional: paths for dependency dylibs
1179
- *
1180
- * @generated from field: repeated string dependencies = 2;
1181
- */
1182
- this.dependencies = [];
1183
- proto2.util.initPartial(data, this);
1184
- }
1185
- static fromBinary(bytes, options) {
1186
- return new _LoadAudioFilterPluginRequest().fromBinary(bytes, options);
1187
- }
1188
- static fromJson(jsonValue, options) {
1189
- return new _LoadAudioFilterPluginRequest().fromJson(jsonValue, options);
1190
- }
1191
- static fromJsonString(jsonString, options) {
1192
- return new _LoadAudioFilterPluginRequest().fromJsonString(jsonString, options);
1193
- }
1194
- static equals(a, b) {
1195
- return proto2.util.equals(_LoadAudioFilterPluginRequest, a, b);
1196
- }
1197
- };
1198
- _LoadAudioFilterPluginRequest.runtime = proto2;
1199
- _LoadAudioFilterPluginRequest.typeName = "livekit.proto.LoadAudioFilterPluginRequest";
1200
- _LoadAudioFilterPluginRequest.fields = proto2.util.newFieldList(() => [
1201
- { no: 1, name: "plugin_path", kind: "scalar", T: 9, req: true },
1202
- { no: 2, name: "dependencies", kind: "scalar", T: 9, repeated: true },
1203
- { no: 3, name: "module_id", kind: "scalar", T: 9, req: true }
1204
- ]);
1205
- let LoadAudioFilterPluginRequest = _LoadAudioFilterPluginRequest;
1206
- const _LoadAudioFilterPluginResponse = class _LoadAudioFilterPluginResponse extends Message {
1207
- constructor(data) {
1208
- super();
1209
- proto2.util.initPartial(data, this);
1210
- }
1211
- static fromBinary(bytes, options) {
1212
- return new _LoadAudioFilterPluginResponse().fromBinary(bytes, options);
1213
- }
1214
- static fromJson(jsonValue, options) {
1215
- return new _LoadAudioFilterPluginResponse().fromJson(jsonValue, options);
1216
- }
1217
- static fromJsonString(jsonString, options) {
1218
- return new _LoadAudioFilterPluginResponse().fromJsonString(jsonString, options);
1219
- }
1220
- static equals(a, b) {
1221
- return proto2.util.equals(_LoadAudioFilterPluginResponse, a, b);
1222
- }
1223
- };
1224
- _LoadAudioFilterPluginResponse.runtime = proto2;
1225
- _LoadAudioFilterPluginResponse.typeName = "livekit.proto.LoadAudioFilterPluginResponse";
1226
- _LoadAudioFilterPluginResponse.fields = proto2.util.newFieldList(() => [
1227
- { no: 1, name: "error", kind: "scalar", T: 9, opt: true }
1228
- ]);
1229
- let LoadAudioFilterPluginResponse = _LoadAudioFilterPluginResponse;
1230
- export {
1231
- ApmProcessReverseStreamRequest,
1232
- ApmProcessReverseStreamResponse,
1233
- ApmProcessStreamRequest,
1234
- ApmProcessStreamResponse,
1235
- ApmSetStreamDelayRequest,
1236
- ApmSetStreamDelayResponse,
1237
- AudioFrameBufferInfo,
1238
- AudioFrameReceived,
1239
- AudioResamplerInfo,
1240
- AudioSourceInfo,
1241
- AudioSourceOptions,
1242
- AudioSourceType,
1243
- AudioStreamEOS,
1244
- AudioStreamEvent,
1245
- AudioStreamFromParticipantRequest,
1246
- AudioStreamFromParticipantResponse,
1247
- AudioStreamInfo,
1248
- AudioStreamType,
1249
- CaptureAudioFrameCallback,
1250
- CaptureAudioFrameRequest,
1251
- CaptureAudioFrameResponse,
1252
- ClearAudioBufferRequest,
1253
- ClearAudioBufferResponse,
1254
- FlushSoxResamplerRequest,
1255
- FlushSoxResamplerResponse,
1256
- LoadAudioFilterPluginRequest,
1257
- LoadAudioFilterPluginResponse,
1258
- NewApmRequest,
1259
- NewApmResponse,
1260
- NewAudioResamplerRequest,
1261
- NewAudioResamplerResponse,
1262
- NewAudioSourceRequest,
1263
- NewAudioSourceResponse,
1264
- NewAudioStreamRequest,
1265
- NewAudioStreamResponse,
1266
- NewSoxResamplerRequest,
1267
- NewSoxResamplerResponse,
1268
- OwnedApm,
1269
- OwnedAudioFrameBuffer,
1270
- OwnedAudioResampler,
1271
- OwnedAudioSource,
1272
- OwnedAudioStream,
1273
- OwnedSoxResampler,
1274
- PushSoxResamplerRequest,
1275
- PushSoxResamplerResponse,
1276
- RemixAndResampleRequest,
1277
- RemixAndResampleResponse,
1278
- SoxFlagBits,
1279
- SoxQualityRecipe,
1280
- SoxResamplerDataType,
1281
- SoxResamplerInfo
1282
- };
1283
- //# sourceMappingURL=audio_frame_pb.js.map