@livekit/rtc-node 0.12.2 → 0.13.1

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 (217) hide show
  1. package/dist/audio_frame.cjs +2 -2
  2. package/dist/audio_frame.cjs.map +1 -1
  3. package/dist/audio_frame.d.cts +2 -3
  4. package/dist/audio_frame.d.ts +2 -3
  5. package/dist/audio_frame.d.ts.map +1 -1
  6. package/dist/audio_frame.js +3 -3
  7. package/dist/audio_frame.js.map +1 -1
  8. package/dist/audio_resampler.cjs +10 -7
  9. package/dist/audio_resampler.cjs.map +1 -1
  10. package/dist/audio_resampler.d.cts +2 -3
  11. package/dist/audio_resampler.d.ts +2 -3
  12. package/dist/audio_resampler.d.ts.map +1 -1
  13. package/dist/audio_resampler.js +13 -10
  14. package/dist/audio_resampler.js.map +1 -1
  15. package/dist/audio_source.cjs +6 -4
  16. package/dist/audio_source.cjs.map +1 -1
  17. package/dist/audio_source.d.cts +3 -3
  18. package/dist/audio_source.d.ts +3 -3
  19. package/dist/audio_source.d.ts.map +1 -1
  20. package/dist/audio_source.js +9 -7
  21. package/dist/audio_source.js.map +1 -1
  22. package/dist/audio_stream.cjs +1 -2
  23. package/dist/audio_stream.cjs.map +1 -1
  24. package/dist/audio_stream.d.cts +2 -3
  25. package/dist/audio_stream.d.ts +2 -3
  26. package/dist/audio_stream.d.ts.map +1 -1
  27. package/dist/audio_stream.js +2 -3
  28. package/dist/audio_stream.js.map +1 -1
  29. package/dist/e2ee.cjs +19 -20
  30. package/dist/e2ee.cjs.map +1 -1
  31. package/dist/e2ee.d.cts +5 -6
  32. package/dist/e2ee.d.ts +5 -6
  33. package/dist/e2ee.d.ts.map +1 -1
  34. package/dist/e2ee.js +29 -30
  35. package/dist/e2ee.js.map +1 -1
  36. package/dist/ffi_client.cjs +6 -5
  37. package/dist/ffi_client.cjs.map +1 -1
  38. package/dist/ffi_client.d.cts +10 -10
  39. package/dist/ffi_client.d.ts +10 -10
  40. package/dist/ffi_client.d.ts.map +1 -1
  41. package/dist/ffi_client.js +6 -10
  42. package/dist/ffi_client.js.map +1 -1
  43. package/dist/index.cjs +16 -49
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +6 -35
  46. package/dist/index.d.ts +6 -35
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +7 -46
  49. package/dist/index.js.map +1 -1
  50. package/dist/napi/native.d.cjs.map +1 -1
  51. package/dist/napi/native.d.ts +5 -5
  52. package/dist/native.d.ts +5 -5
  53. package/dist/participant.cjs +60 -36
  54. package/dist/participant.cjs.map +1 -1
  55. package/dist/participant.d.cts +11 -11
  56. package/dist/participant.d.ts +11 -11
  57. package/dist/participant.d.ts.map +1 -1
  58. package/dist/participant.js +78 -52
  59. package/dist/participant.js.map +1 -1
  60. package/dist/proto/audio_frame_pb.cjs +977 -125
  61. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  62. package/dist/proto/audio_frame_pb.d.cts +502 -417
  63. package/dist/proto/audio_frame_pb.d.ts +502 -417
  64. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  65. package/dist/proto/audio_frame_pb.js +943 -85
  66. package/dist/proto/audio_frame_pb.js.map +1 -1
  67. package/dist/proto/e2ee_pb.cjs +700 -85
  68. package/dist/proto/e2ee_pb.cjs.map +1 -1
  69. package/dist/proto/e2ee_pb.d.cts +331 -263
  70. package/dist/proto/e2ee_pb.d.ts +331 -263
  71. package/dist/proto/e2ee_pb.d.ts.map +1 -1
  72. package/dist/proto/e2ee_pb.js +675 -57
  73. package/dist/proto/e2ee_pb.js.map +1 -1
  74. package/dist/proto/ffi_pb.cjs +369 -36
  75. package/dist/proto/ffi_pb.cjs.map +1 -1
  76. package/dist/proto/ffi_pb.d.cts +156 -109
  77. package/dist/proto/ffi_pb.d.ts +156 -109
  78. package/dist/proto/ffi_pb.d.ts.map +1 -1
  79. package/dist/proto/ffi_pb.js +364 -29
  80. package/dist/proto/ffi_pb.js.map +1 -1
  81. package/dist/proto/handle_pb.cjs +27 -7
  82. package/dist/proto/handle_pb.cjs.map +1 -1
  83. package/dist/proto/handle_pb.d.cts +13 -15
  84. package/dist/proto/handle_pb.d.ts +13 -15
  85. package/dist/proto/handle_pb.d.ts.map +1 -1
  86. package/dist/proto/handle_pb.js +26 -5
  87. package/dist/proto/handle_pb.js.map +1 -1
  88. package/dist/proto/participant_pb.cjs +112 -15
  89. package/dist/proto/participant_pb.cjs.map +1 -1
  90. package/dist/proto/participant_pb.d.cts +140 -52
  91. package/dist/proto/participant_pb.d.ts +140 -52
  92. package/dist/proto/participant_pb.d.ts.map +1 -1
  93. package/dist/proto/participant_pb.js +109 -11
  94. package/dist/proto/participant_pb.js.map +1 -1
  95. package/dist/proto/room_pb.cjs +2693 -302
  96. package/dist/proto/room_pb.cjs.map +1 -1
  97. package/dist/proto/room_pb.d.cts +1265 -862
  98. package/dist/proto/room_pb.d.ts +1265 -862
  99. package/dist/proto/room_pb.d.ts.map +1 -1
  100. package/dist/proto/room_pb.js +2603 -210
  101. package/dist/proto/room_pb.js.map +1 -1
  102. package/dist/proto/rpc_pb.cjs +302 -37
  103. package/dist/proto/rpc_pb.cjs.map +1 -1
  104. package/dist/proto/rpc_pb.d.cts +138 -108
  105. package/dist/proto/rpc_pb.d.ts +138 -108
  106. package/dist/proto/rpc_pb.d.ts.map +1 -1
  107. package/dist/proto/rpc_pb.js +291 -25
  108. package/dist/proto/rpc_pb.js.map +1 -1
  109. package/dist/proto/stats_pb.cjs +1253 -139
  110. package/dist/proto/stats_pb.cjs.map +1 -1
  111. package/dist/proto/stats_pb.d.cts +803 -692
  112. package/dist/proto/stats_pb.d.ts +803 -692
  113. package/dist/proto/stats_pb.d.ts.map +1 -1
  114. package/dist/proto/stats_pb.js +1216 -93
  115. package/dist/proto/stats_pb.js.map +1 -1
  116. package/dist/proto/track_pb.cjs +462 -64
  117. package/dist/proto/track_pb.cjs.map +1 -1
  118. package/dist/proto/track_pb.d.cts +250 -218
  119. package/dist/proto/track_pb.d.ts +250 -218
  120. package/dist/proto/track_pb.d.ts.map +1 -1
  121. package/dist/proto/track_pb.js +447 -45
  122. package/dist/proto/track_pb.js.map +1 -1
  123. package/dist/proto/track_publication_pb.cjs +130 -0
  124. package/dist/proto/track_publication_pb.cjs.map +1 -0
  125. package/dist/proto/track_publication_pb.d.cts +80 -0
  126. package/dist/proto/track_publication_pb.d.ts +80 -0
  127. package/dist/proto/track_publication_pb.d.ts.map +1 -0
  128. package/dist/proto/track_publication_pb.js +103 -0
  129. package/dist/proto/track_publication_pb.js.map +1 -0
  130. package/dist/proto/video_frame_pb.cjs +648 -88
  131. package/dist/proto/video_frame_pb.cjs.map +1 -1
  132. package/dist/proto/video_frame_pb.d.cts +371 -328
  133. package/dist/proto/video_frame_pb.d.ts +371 -328
  134. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  135. package/dist/proto/video_frame_pb.js +626 -60
  136. package/dist/proto/video_frame_pb.js.map +1 -1
  137. package/dist/room.cjs +85 -125
  138. package/dist/room.cjs.map +1 -1
  139. package/dist/room.d.cts +6 -17
  140. package/dist/room.d.ts +6 -17
  141. package/dist/room.d.ts.map +1 -1
  142. package/dist/room.js +85 -123
  143. package/dist/room.js.map +1 -1
  144. package/dist/rpc.cjs.map +1 -1
  145. package/dist/rpc.d.cts +0 -1
  146. package/dist/rpc.d.ts +0 -1
  147. package/dist/rpc.js.map +1 -1
  148. package/dist/track.cjs +12 -8
  149. package/dist/track.cjs.map +1 -1
  150. package/dist/track.d.cts +8 -9
  151. package/dist/track.d.ts +8 -9
  152. package/dist/track.d.ts.map +1 -1
  153. package/dist/track.js +13 -9
  154. package/dist/track.js.map +1 -1
  155. package/dist/track_publication.cjs +21 -12
  156. package/dist/track_publication.cjs.map +1 -1
  157. package/dist/track_publication.d.cts +12 -13
  158. package/dist/track_publication.d.ts +12 -13
  159. package/dist/track_publication.d.ts.map +1 -1
  160. package/dist/track_publication.js +22 -13
  161. package/dist/track_publication.js.map +1 -1
  162. package/dist/version.cjs +1 -1
  163. package/dist/version.cjs.map +1 -1
  164. package/dist/version.d.cts +1 -1
  165. package/dist/version.d.ts +1 -1
  166. package/dist/version.js +1 -1
  167. package/dist/version.js.map +1 -1
  168. package/dist/video_frame.cjs +26 -45
  169. package/dist/video_frame.cjs.map +1 -1
  170. package/dist/video_frame.d.cts +2 -3
  171. package/dist/video_frame.d.ts +2 -3
  172. package/dist/video_frame.d.ts.map +1 -1
  173. package/dist/video_frame.js +29 -48
  174. package/dist/video_frame.js.map +1 -1
  175. package/dist/video_source.cjs +7 -4
  176. package/dist/video_source.cjs.map +1 -1
  177. package/dist/video_source.d.cts +4 -4
  178. package/dist/video_source.d.ts +4 -4
  179. package/dist/video_source.d.ts.map +1 -1
  180. package/dist/video_source.js +9 -6
  181. package/dist/video_source.js.map +1 -1
  182. package/dist/video_stream.cjs +16 -5
  183. package/dist/video_stream.cjs.map +1 -1
  184. package/dist/video_stream.d.cts +3 -4
  185. package/dist/video_stream.d.ts +3 -4
  186. package/dist/video_stream.d.ts.map +1 -1
  187. package/dist/video_stream.js +17 -6
  188. package/dist/video_stream.js.map +1 -1
  189. package/package.json +9 -9
  190. package/src/audio_frame.ts +10 -10
  191. package/src/audio_resampler.ts +15 -13
  192. package/src/audio_source.ts +11 -8
  193. package/src/audio_stream.ts +3 -4
  194. package/src/e2ee.ts +41 -42
  195. package/src/ffi_client.ts +8 -16
  196. package/src/index.ts +5 -68
  197. package/src/napi/native.d.ts +5 -5
  198. package/src/participant.ts +102 -73
  199. package/src/proto/audio_frame_pb.ts +1220 -496
  200. package/src/proto/e2ee_pb.ts +858 -337
  201. package/src/proto/ffi_pb.ts +442 -135
  202. package/src/proto/handle_pb.ts +33 -19
  203. package/src/proto/participant_pb.ts +225 -60
  204. package/src/proto/room_pb.ts +3149 -1013
  205. package/src/proto/rpc_pb.ts +358 -129
  206. package/src/proto/stats_pb.ts +1891 -877
  207. package/src/proto/track_pb.ts +587 -253
  208. package/src/proto/track_publication_pb.ts +180 -0
  209. package/src/proto/video_frame_pb.ts +861 -394
  210. package/src/room.ts +137 -189
  211. package/src/rpc.ts +1 -1
  212. package/src/track.ts +16 -17
  213. package/src/track_publication.ts +25 -26
  214. package/src/version.ts +1 -1
  215. package/src/video_frame.ts +48 -72
  216. package/src/video_source.ts +11 -8
  217. package/src/video_stream.ts +18 -8
@@ -12,23 +12,165 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
 
15
- // @generated by protoc-gen-es v2.2.0 with parameter "target=ts,import_extension=js"
15
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js"
16
16
  // @generated from file audio_frame.proto (package livekit.proto, syntax proto2)
17
17
  /* eslint-disable */
18
+ // @ts-nocheck
18
19
 
19
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
20
- import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
21
- import type { FfiOwnedHandle } from "./handle_pb.js";
22
- import { file_handle } from "./handle_pb.js";
23
- import type { TrackSource } from "./track_pb.js";
24
- import { file_track } from "./track_pb.js";
25
- import type { Message } from "@bufbuild/protobuf";
20
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
+ import { Message, proto2 } from "@bufbuild/protobuf";
22
+ import { TrackSource } from "./track_pb.js";
23
+ import { FfiOwnedHandle } from "./handle_pb.js";
26
24
 
27
25
  /**
28
- * Describes the file audio_frame.proto.
26
+ * @generated from enum livekit.proto.SoxResamplerDataType
27
+ */
28
+ export enum SoxResamplerDataType {
29
+ /**
30
+ * TODO(theomonnom): support other datatypes (shouldn't really be needed)
31
+ *
32
+ * @generated from enum value: SOXR_DATATYPE_INT16I = 0;
33
+ */
34
+ SOXR_DATATYPE_INT16I = 0,
35
+
36
+ /**
37
+ * @generated from enum value: SOXR_DATATYPE_INT16S = 1;
38
+ */
39
+ SOXR_DATATYPE_INT16S = 1,
40
+ }
41
+ // Retrieve enum metadata with: proto2.getEnumType(SoxResamplerDataType)
42
+ proto2.util.setEnumType(SoxResamplerDataType, "livekit.proto.SoxResamplerDataType", [
43
+ { no: 0, name: "SOXR_DATATYPE_INT16I" },
44
+ { no: 1, name: "SOXR_DATATYPE_INT16S" },
45
+ ]);
46
+
47
+ /**
48
+ * @generated from enum livekit.proto.SoxQualityRecipe
49
+ */
50
+ export enum SoxQualityRecipe {
51
+ /**
52
+ * @generated from enum value: SOXR_QUALITY_QUICK = 0;
53
+ */
54
+ SOXR_QUALITY_QUICK = 0,
55
+
56
+ /**
57
+ * @generated from enum value: SOXR_QUALITY_LOW = 1;
58
+ */
59
+ SOXR_QUALITY_LOW = 1,
60
+
61
+ /**
62
+ * @generated from enum value: SOXR_QUALITY_MEDIUM = 2;
63
+ */
64
+ SOXR_QUALITY_MEDIUM = 2,
65
+
66
+ /**
67
+ * @generated from enum value: SOXR_QUALITY_HIGH = 3;
68
+ */
69
+ SOXR_QUALITY_HIGH = 3,
70
+
71
+ /**
72
+ * @generated from enum value: SOXR_QUALITY_VERYHIGH = 4;
73
+ */
74
+ SOXR_QUALITY_VERYHIGH = 4,
75
+ }
76
+ // Retrieve enum metadata with: proto2.getEnumType(SoxQualityRecipe)
77
+ proto2.util.setEnumType(SoxQualityRecipe, "livekit.proto.SoxQualityRecipe", [
78
+ { no: 0, name: "SOXR_QUALITY_QUICK" },
79
+ { no: 1, name: "SOXR_QUALITY_LOW" },
80
+ { no: 2, name: "SOXR_QUALITY_MEDIUM" },
81
+ { no: 3, name: "SOXR_QUALITY_HIGH" },
82
+ { no: 4, name: "SOXR_QUALITY_VERYHIGH" },
83
+ ]);
84
+
85
+ /**
86
+ * @generated from enum livekit.proto.SoxFlagBits
29
87
  */
30
- export const file_audio_frame: GenFile = /*@__PURE__*/
31
- fileDesc("ChFhdWRpb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90byKGAQoVTmV3QXVkaW9TdHJlYW1SZXF1ZXN0EhQKDHRyYWNrX2hhbmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5wcm90by5BdWRpb1N0cmVhbVR5cGUSEwoLc2FtcGxlX3JhdGUYAyABKA0SFAoMbnVtX2NoYW5uZWxzGAQgASgNIkkKFk5ld0F1ZGlvU3RyZWFtUmVzcG9uc2USLwoGc3RyZWFtGAEgAigLMh8ubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvU3RyZWFtIsoBCiFBdWRpb1N0cmVhbUZyb21QYXJ0aWNpcGFudFJlcXVlc3QSGgoScGFydGljaXBhbnRfaGFuZGxlGAEgAigEEiwKBHR5cGUYAiACKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZRIwCgx0cmFja19zb3VyY2UYAyABKA4yGi5saXZla2l0LnByb3RvLlRyYWNrU291cmNlEhMKC3NhbXBsZV9yYXRlGAUgASgNEhQKDG51bV9jaGFubmVscxgGIAEoDSJVCiJBdWRpb1N0cmVhbUZyb21QYXJ0aWNpcGFudFJlc3BvbnNlEi8KBnN0cmVhbRgBIAIoCzIfLmxpdmVraXQucHJvdG8uT3duZWRBdWRpb1N0cmVhbSK7AQoVTmV3QXVkaW9Tb3VyY2VSZXF1ZXN0EiwKBHR5cGUYASACKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU291cmNlVHlwZRIyCgdvcHRpb25zGAIgASgLMiEubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZU9wdGlvbnMSEwoLc2FtcGxlX3JhdGUYAyACKA0SFAoMbnVtX2NoYW5uZWxzGAQgAigNEhUKDXF1ZXVlX3NpemVfbXMYBSABKA0iSQoWTmV3QXVkaW9Tb3VyY2VSZXNwb25zZRIvCgZzb3VyY2UYASACKAsyHy5saXZla2l0LnByb3RvLk93bmVkQXVkaW9Tb3VyY2UiZgoYQ2FwdHVyZUF1ZGlvRnJhbWVSZXF1ZXN0EhUKDXNvdXJjZV9oYW5kbGUYASACKAQSMwoGYnVmZmVyGAIgAigLMiMubGl2ZWtpdC5wcm90by5BdWRpb0ZyYW1lQnVmZmVySW5mbyItChlDYXB0dXJlQXVkaW9GcmFtZVJlc3BvbnNlEhAKCGFzeW5jX2lkGAEgAigEIjwKGUNhcHR1cmVBdWRpb0ZyYW1lQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASACKAQSDQoFZXJyb3IYAiABKAkiMAoXQ2xlYXJBdWRpb0J1ZmZlclJlcXVlc3QSFQoNc291cmNlX2hhbmRsZRgBIAIoBCIaChhDbGVhckF1ZGlvQnVmZmVyUmVzcG9uc2UiGgoYTmV3QXVkaW9SZXNhbXBsZXJSZXF1ZXN0IlIKGU5ld0F1ZGlvUmVzYW1wbGVyUmVzcG9uc2USNQoJcmVzYW1wbGVyGAEgAigLMiIubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvUmVzYW1wbGVyIpMBChdSZW1peEFuZFJlc2FtcGxlUmVxdWVzdBIYChByZXNhbXBsZXJfaGFuZGxlGAEgAigEEjMKBmJ1ZmZlchgCIAIoCzIjLmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8SFAoMbnVtX2NoYW5uZWxzGAMgAigNEhMKC3NhbXBsZV9yYXRlGAQgAigNIlAKGFJlbWl4QW5kUmVzYW1wbGVSZXNwb25zZRI0CgZidWZmZXIYASACKAsyJC5saXZla2l0LnByb3RvLk93bmVkQXVkaW9GcmFtZUJ1ZmZlciKcAgoWTmV3U294UmVzYW1wbGVyUmVxdWVzdBISCgppbnB1dF9yYXRlGAEgAigBEhMKC291dHB1dF9yYXRlGAIgAigBEhQKDG51bV9jaGFubmVscxgDIAIoDRI8Cg9pbnB1dF9kYXRhX3R5cGUYBCACKA4yIy5saXZla2l0LnByb3RvLlNveFJlc2FtcGxlckRhdGFUeXBlEj0KEG91dHB1dF9kYXRhX3R5cGUYBSACKA4yIy5saXZla2l0LnByb3RvLlNveFJlc2FtcGxlckRhdGFUeXBlEjcKDnF1YWxpdHlfcmVjaXBlGAYgAigOMh8ubGl2ZWtpdC5wcm90by5Tb3hRdWFsaXR5UmVjaXBlEg0KBWZsYWdzGAcgASgNImwKF05ld1NveFJlc2FtcGxlclJlc3BvbnNlEjUKCXJlc2FtcGxlchgBIAEoCzIgLmxpdmVraXQucHJvdG8uT3duZWRTb3hSZXNhbXBsZXJIABIPCgVlcnJvchgCIAEoCUgAQgkKB21lc3NhZ2UiUwoXUHVzaFNveFJlc2FtcGxlclJlcXVlc3QSGAoQcmVzYW1wbGVyX2hhbmRsZRgBIAIoBBIQCghkYXRhX3B0chgCIAIoBBIMCgRzaXplGAMgAigNIksKGFB1c2hTb3hSZXNhbXBsZXJSZXNwb25zZRISCgpvdXRwdXRfcHRyGAEgAigEEgwKBHNpemUYAiACKA0SDQoFZXJyb3IYAyABKAkiNAoYRmx1c2hTb3hSZXNhbXBsZXJSZXF1ZXN0EhgKEHJlc2FtcGxlcl9oYW5kbGUYASACKAQiTAoZRmx1c2hTb3hSZXNhbXBsZXJSZXNwb25zZRISCgpvdXRwdXRfcHRyGAEgAigEEgwKBHNpemUYAiACKA0SDQoFZXJyb3IYAyABKAkicAoUQXVkaW9GcmFtZUJ1ZmZlckluZm8SEAoIZGF0YV9wdHIYASACKAQSFAoMbnVtX2NoYW5uZWxzGAIgAigNEhMKC3NhbXBsZV9yYXRlGAMgAigNEhsKE3NhbXBsZXNfcGVyX2NoYW5uZWwYBCACKA0ieQoVT3duZWRBdWRpb0ZyYW1lQnVmZmVyEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUSMQoEaW5mbxgCIAIoCzIjLmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8iPwoPQXVkaW9TdHJlYW1JbmZvEiwKBHR5cGUYASACKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZSJvChBPd25lZEF1ZGlvU3RyZWFtEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUSLAoEaW5mbxgCIAIoCzIeLmxpdmVraXQucHJvdG8uQXVkaW9TdHJlYW1JbmZvIp8BChBBdWRpb1N0cmVhbUV2ZW50EhUKDXN0cmVhbV9oYW5kbGUYASACKAQSOwoOZnJhbWVfcmVjZWl2ZWQYAiABKAsyIS5saXZla2l0LnByb3RvLkF1ZGlvRnJhbWVSZWNlaXZlZEgAEiwKA2VvcxgDIAEoCzIdLmxpdmVraXQucHJvdG8uQXVkaW9TdHJlYW1FT1NIAEIJCgdtZXNzYWdlIkkKEkF1ZGlvRnJhbWVSZWNlaXZlZBIzCgVmcmFtZRgBIAIoCzIkLmxpdmVraXQucHJvdG8uT3duZWRBdWRpb0ZyYW1lQnVmZmVyIhAKDkF1ZGlvU3RyZWFtRU9TImUKEkF1ZGlvU291cmNlT3B0aW9ucxIZChFlY2hvX2NhbmNlbGxhdGlvbhgBIAIoCBIZChFub2lzZV9zdXBwcmVzc2lvbhgCIAIoCBIZChFhdXRvX2dhaW5fY29udHJvbBgDIAIoCCI/Cg9BdWRpb1NvdXJjZUluZm8SLAoEdHlwZRgCIAIoDjIeLmxpdmVraXQucHJvdG8uQXVkaW9Tb3VyY2VUeXBlIm8KEE93bmVkQXVkaW9Tb3VyY2USLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZUluZm8iFAoSQXVkaW9SZXNhbXBsZXJJbmZvInUKE093bmVkQXVkaW9SZXNhbXBsZXISLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIvCgRpbmZvGAIgAigLMiEubGl2ZWtpdC5wcm90by5BdWRpb1Jlc2FtcGxlckluZm8iEgoQU294UmVzYW1wbGVySW5mbyJxChFPd25lZFNveFJlc2FtcGxlchItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEi0KBGluZm8YAiACKAsyHy5saXZla2l0LnByb3RvLlNveFJlc2FtcGxlckluZm8qSgoUU294UmVzYW1wbGVyRGF0YVR5cGUSGAoUU09YUl9EQVRBVFlQRV9JTlQxNkkQABIYChRTT1hSX0RBVEFUWVBFX0lOVDE2UxABKosBChBTb3hRdWFsaXR5UmVjaXBlEhYKElNPWFJfUVVBTElUWV9RVUlDSxAAEhQKEFNPWFJfUVVBTElUWV9MT1cQARIXChNTT1hSX1FVQUxJVFlfTUVESVVNEAISFQoRU09YUl9RVUFMSVRZX0hJR0gQAxIZChVTT1hSX1FVQUxJVFlfVkVSWUhJR0gQBCqXAQoLU294RmxhZ0JpdHMSFgoSU09YUl9ST0xMT0ZGX1NNQUxMEAASFwoTU09YUl9ST0xMT0ZGX01FRElVTRABEhUKEVNPWFJfUk9MTE9GRl9OT05FEAISGAoUU09YUl9ISUdIX1BSRUNfQ0xPQ0sQAxIZChVTT1hSX0RPVUJMRV9QUkVDSVNJT04QBBILCgdTT1hSX1ZSEAUqQQoPQXVkaW9TdHJlYW1UeXBlEhcKE0FVRElPX1NUUkVBTV9OQVRJVkUQABIVChFBVURJT19TVFJFQU1fSFRNTBABKioKD0F1ZGlvU291cmNlVHlwZRIXChNBVURJT19TT1VSQ0VfTkFUSVZFEABCEKoCDUxpdmVLaXQuUHJvdG8", [file_handle, file_track]);
88
+ export enum SoxFlagBits {
89
+ /**
90
+ * 1 << 0
91
+ *
92
+ * @generated from enum value: SOXR_ROLLOFF_SMALL = 0;
93
+ */
94
+ SOXR_ROLLOFF_SMALL = 0,
95
+
96
+ /**
97
+ * 1 << 1
98
+ *
99
+ * @generated from enum value: SOXR_ROLLOFF_MEDIUM = 1;
100
+ */
101
+ SOXR_ROLLOFF_MEDIUM = 1,
102
+
103
+ /**
104
+ * 1 << 2
105
+ *
106
+ * @generated from enum value: SOXR_ROLLOFF_NONE = 2;
107
+ */
108
+ SOXR_ROLLOFF_NONE = 2,
109
+
110
+ /**
111
+ * 1 << 3
112
+ *
113
+ * @generated from enum value: SOXR_HIGH_PREC_CLOCK = 3;
114
+ */
115
+ SOXR_HIGH_PREC_CLOCK = 3,
116
+
117
+ /**
118
+ * 1 << 4
119
+ *
120
+ * @generated from enum value: SOXR_DOUBLE_PRECISION = 4;
121
+ */
122
+ SOXR_DOUBLE_PRECISION = 4,
123
+
124
+ /**
125
+ * 1 << 5
126
+ *
127
+ * @generated from enum value: SOXR_VR = 5;
128
+ */
129
+ SOXR_VR = 5,
130
+ }
131
+ // Retrieve enum metadata with: proto2.getEnumType(SoxFlagBits)
132
+ proto2.util.setEnumType(SoxFlagBits, "livekit.proto.SoxFlagBits", [
133
+ { no: 0, name: "SOXR_ROLLOFF_SMALL" },
134
+ { no: 1, name: "SOXR_ROLLOFF_MEDIUM" },
135
+ { no: 2, name: "SOXR_ROLLOFF_NONE" },
136
+ { no: 3, name: "SOXR_HIGH_PREC_CLOCK" },
137
+ { no: 4, name: "SOXR_DOUBLE_PRECISION" },
138
+ { no: 5, name: "SOXR_VR" },
139
+ ]);
140
+
141
+ /**
142
+ * @generated from enum livekit.proto.AudioStreamType
143
+ */
144
+ export enum AudioStreamType {
145
+ /**
146
+ * @generated from enum value: AUDIO_STREAM_NATIVE = 0;
147
+ */
148
+ AUDIO_STREAM_NATIVE = 0,
149
+
150
+ /**
151
+ * @generated from enum value: AUDIO_STREAM_HTML = 1;
152
+ */
153
+ AUDIO_STREAM_HTML = 1,
154
+ }
155
+ // Retrieve enum metadata with: proto2.getEnumType(AudioStreamType)
156
+ proto2.util.setEnumType(AudioStreamType, "livekit.proto.AudioStreamType", [
157
+ { no: 0, name: "AUDIO_STREAM_NATIVE" },
158
+ { no: 1, name: "AUDIO_STREAM_HTML" },
159
+ ]);
160
+
161
+ /**
162
+ * @generated from enum livekit.proto.AudioSourceType
163
+ */
164
+ export enum AudioSourceType {
165
+ /**
166
+ * @generated from enum value: AUDIO_SOURCE_NATIVE = 0;
167
+ */
168
+ AUDIO_SOURCE_NATIVE = 0,
169
+ }
170
+ // Retrieve enum metadata with: proto2.getEnumType(AudioSourceType)
171
+ proto2.util.setEnumType(AudioSourceType, "livekit.proto.AudioSourceType", [
172
+ { no: 0, name: "AUDIO_SOURCE_NATIVE" },
173
+ ]);
32
174
 
33
175
  /**
34
176
  * Create a new AudioStream
@@ -36,116 +178,203 @@ export const file_audio_frame: GenFile = /*@__PURE__*/
36
178
  *
37
179
  * @generated from message livekit.proto.NewAudioStreamRequest
38
180
  */
39
- export type NewAudioStreamRequest = Message<"livekit.proto.NewAudioStreamRequest"> & {
181
+ export class NewAudioStreamRequest extends Message<NewAudioStreamRequest> {
40
182
  /**
41
183
  * @generated from field: required uint64 track_handle = 1;
42
184
  */
43
- trackHandle: bigint;
185
+ trackHandle?: bigint;
44
186
 
45
187
  /**
46
188
  * @generated from field: required livekit.proto.AudioStreamType type = 2;
47
189
  */
48
- type: AudioStreamType;
190
+ type?: AudioStreamType;
49
191
 
50
192
  /**
51
193
  * @generated from field: optional uint32 sample_rate = 3;
52
194
  */
53
- sampleRate: number;
195
+ sampleRate?: number;
54
196
 
55
197
  /**
56
198
  * @generated from field: optional uint32 num_channels = 4;
57
199
  */
58
- numChannels: number;
59
- };
60
-
61
- /**
62
- * Describes the message livekit.proto.NewAudioStreamRequest.
63
- * Use `create(NewAudioStreamRequestSchema)` to create a new message.
64
- */
65
- export const NewAudioStreamRequestSchema: GenMessage<NewAudioStreamRequest> = /*@__PURE__*/
66
- messageDesc(file_audio_frame, 0);
200
+ numChannels?: number;
201
+
202
+ constructor(data?: PartialMessage<NewAudioStreamRequest>) {
203
+ super();
204
+ proto2.util.initPartial(data, this);
205
+ }
206
+
207
+ static readonly runtime: typeof proto2 = proto2;
208
+ static readonly typeName = "livekit.proto.NewAudioStreamRequest";
209
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
210
+ { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
211
+ { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true },
212
+ { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
213
+ { no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
214
+ ]);
215
+
216
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamRequest {
217
+ return new NewAudioStreamRequest().fromBinary(bytes, options);
218
+ }
219
+
220
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioStreamRequest {
221
+ return new NewAudioStreamRequest().fromJson(jsonValue, options);
222
+ }
223
+
224
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioStreamRequest {
225
+ return new NewAudioStreamRequest().fromJsonString(jsonString, options);
226
+ }
227
+
228
+ static equals(a: NewAudioStreamRequest | PlainMessage<NewAudioStreamRequest> | undefined, b: NewAudioStreamRequest | PlainMessage<NewAudioStreamRequest> | undefined): boolean {
229
+ return proto2.util.equals(NewAudioStreamRequest, a, b);
230
+ }
231
+ }
67
232
 
68
233
  /**
69
234
  * @generated from message livekit.proto.NewAudioStreamResponse
70
235
  */
71
- export type NewAudioStreamResponse = Message<"livekit.proto.NewAudioStreamResponse"> & {
236
+ export class NewAudioStreamResponse extends Message<NewAudioStreamResponse> {
72
237
  /**
73
238
  * @generated from field: required livekit.proto.OwnedAudioStream stream = 1;
74
239
  */
75
240
  stream?: OwnedAudioStream;
76
- };
77
241
 
78
- /**
79
- * Describes the message livekit.proto.NewAudioStreamResponse.
80
- * Use `create(NewAudioStreamResponseSchema)` to create a new message.
81
- */
82
- export const NewAudioStreamResponseSchema: GenMessage<NewAudioStreamResponse> = /*@__PURE__*/
83
- messageDesc(file_audio_frame, 1);
242
+ constructor(data?: PartialMessage<NewAudioStreamResponse>) {
243
+ super();
244
+ proto2.util.initPartial(data, this);
245
+ }
246
+
247
+ static readonly runtime: typeof proto2 = proto2;
248
+ static readonly typeName = "livekit.proto.NewAudioStreamResponse";
249
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
250
+ { no: 1, name: "stream", kind: "message", T: OwnedAudioStream, req: true },
251
+ ]);
252
+
253
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamResponse {
254
+ return new NewAudioStreamResponse().fromBinary(bytes, options);
255
+ }
256
+
257
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioStreamResponse {
258
+ return new NewAudioStreamResponse().fromJson(jsonValue, options);
259
+ }
260
+
261
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioStreamResponse {
262
+ return new NewAudioStreamResponse().fromJsonString(jsonString, options);
263
+ }
264
+
265
+ static equals(a: NewAudioStreamResponse | PlainMessage<NewAudioStreamResponse> | undefined, b: NewAudioStreamResponse | PlainMessage<NewAudioStreamResponse> | undefined): boolean {
266
+ return proto2.util.equals(NewAudioStreamResponse, a, b);
267
+ }
268
+ }
84
269
 
85
270
  /**
86
271
  * @generated from message livekit.proto.AudioStreamFromParticipantRequest
87
272
  */
88
- export type AudioStreamFromParticipantRequest = Message<"livekit.proto.AudioStreamFromParticipantRequest"> & {
273
+ export class AudioStreamFromParticipantRequest extends Message<AudioStreamFromParticipantRequest> {
89
274
  /**
90
275
  * @generated from field: required uint64 participant_handle = 1;
91
276
  */
92
- participantHandle: bigint;
277
+ participantHandle?: bigint;
93
278
 
94
279
  /**
95
280
  * @generated from field: required livekit.proto.AudioStreamType type = 2;
96
281
  */
97
- type: AudioStreamType;
282
+ type?: AudioStreamType;
98
283
 
99
284
  /**
100
285
  * @generated from field: optional livekit.proto.TrackSource track_source = 3;
101
286
  */
102
- trackSource: TrackSource;
287
+ trackSource?: TrackSource;
103
288
 
104
289
  /**
105
290
  * @generated from field: optional uint32 sample_rate = 5;
106
291
  */
107
- sampleRate: number;
292
+ sampleRate?: number;
108
293
 
109
294
  /**
110
295
  * @generated from field: optional uint32 num_channels = 6;
111
296
  */
112
- numChannels: number;
113
- };
114
-
115
- /**
116
- * Describes the message livekit.proto.AudioStreamFromParticipantRequest.
117
- * Use `create(AudioStreamFromParticipantRequestSchema)` to create a new message.
118
- */
119
- export const AudioStreamFromParticipantRequestSchema: GenMessage<AudioStreamFromParticipantRequest> = /*@__PURE__*/
120
- messageDesc(file_audio_frame, 2);
297
+ numChannels?: number;
298
+
299
+ constructor(data?: PartialMessage<AudioStreamFromParticipantRequest>) {
300
+ super();
301
+ proto2.util.initPartial(data, this);
302
+ }
303
+
304
+ static readonly runtime: typeof proto2 = proto2;
305
+ static readonly typeName = "livekit.proto.AudioStreamFromParticipantRequest";
306
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
307
+ { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
308
+ { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true },
309
+ { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource), opt: true },
310
+ { no: 5, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
311
+ { no: 6, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
312
+ ]);
313
+
314
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamFromParticipantRequest {
315
+ return new AudioStreamFromParticipantRequest().fromBinary(bytes, options);
316
+ }
317
+
318
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantRequest {
319
+ return new AudioStreamFromParticipantRequest().fromJson(jsonValue, options);
320
+ }
321
+
322
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantRequest {
323
+ return new AudioStreamFromParticipantRequest().fromJsonString(jsonString, options);
324
+ }
325
+
326
+ static equals(a: AudioStreamFromParticipantRequest | PlainMessage<AudioStreamFromParticipantRequest> | undefined, b: AudioStreamFromParticipantRequest | PlainMessage<AudioStreamFromParticipantRequest> | undefined): boolean {
327
+ return proto2.util.equals(AudioStreamFromParticipantRequest, a, b);
328
+ }
329
+ }
121
330
 
122
331
  /**
123
332
  * @generated from message livekit.proto.AudioStreamFromParticipantResponse
124
333
  */
125
- export type AudioStreamFromParticipantResponse = Message<"livekit.proto.AudioStreamFromParticipantResponse"> & {
334
+ export class AudioStreamFromParticipantResponse extends Message<AudioStreamFromParticipantResponse> {
126
335
  /**
127
336
  * @generated from field: required livekit.proto.OwnedAudioStream stream = 1;
128
337
  */
129
338
  stream?: OwnedAudioStream;
130
- };
131
339
 
132
- /**
133
- * Describes the message livekit.proto.AudioStreamFromParticipantResponse.
134
- * Use `create(AudioStreamFromParticipantResponseSchema)` to create a new message.
135
- */
136
- export const AudioStreamFromParticipantResponseSchema: GenMessage<AudioStreamFromParticipantResponse> = /*@__PURE__*/
137
- messageDesc(file_audio_frame, 3);
340
+ constructor(data?: PartialMessage<AudioStreamFromParticipantResponse>) {
341
+ super();
342
+ proto2.util.initPartial(data, this);
343
+ }
344
+
345
+ static readonly runtime: typeof proto2 = proto2;
346
+ static readonly typeName = "livekit.proto.AudioStreamFromParticipantResponse";
347
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
348
+ { no: 1, name: "stream", kind: "message", T: OwnedAudioStream, req: true },
349
+ ]);
350
+
351
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamFromParticipantResponse {
352
+ return new AudioStreamFromParticipantResponse().fromBinary(bytes, options);
353
+ }
354
+
355
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantResponse {
356
+ return new AudioStreamFromParticipantResponse().fromJson(jsonValue, options);
357
+ }
358
+
359
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantResponse {
360
+ return new AudioStreamFromParticipantResponse().fromJsonString(jsonString, options);
361
+ }
362
+
363
+ static equals(a: AudioStreamFromParticipantResponse | PlainMessage<AudioStreamFromParticipantResponse> | undefined, b: AudioStreamFromParticipantResponse | PlainMessage<AudioStreamFromParticipantResponse> | undefined): boolean {
364
+ return proto2.util.equals(AudioStreamFromParticipantResponse, a, b);
365
+ }
366
+ }
138
367
 
139
368
  /**
140
369
  * Create a new AudioSource
141
370
  *
142
371
  * @generated from message livekit.proto.NewAudioSourceRequest
143
372
  */
144
- export type NewAudioSourceRequest = Message<"livekit.proto.NewAudioSourceRequest"> & {
373
+ export class NewAudioSourceRequest extends Message<NewAudioSourceRequest> {
145
374
  /**
146
375
  * @generated from field: required livekit.proto.AudioSourceType type = 1;
147
376
  */
148
- type: AudioSourceType;
377
+ type?: AudioSourceType;
149
378
 
150
379
  /**
151
380
  * @generated from field: optional livekit.proto.AudioSourceOptions options = 2;
@@ -155,42 +384,86 @@ export type NewAudioSourceRequest = Message<"livekit.proto.NewAudioSourceRequest
155
384
  /**
156
385
  * @generated from field: required uint32 sample_rate = 3;
157
386
  */
158
- sampleRate: number;
387
+ sampleRate?: number;
159
388
 
160
389
  /**
161
390
  * @generated from field: required uint32 num_channels = 4;
162
391
  */
163
- numChannels: number;
392
+ numChannels?: number;
164
393
 
165
394
  /**
166
395
  * @generated from field: optional uint32 queue_size_ms = 5;
167
396
  */
168
- queueSizeMs: number;
169
- };
170
-
171
- /**
172
- * Describes the message livekit.proto.NewAudioSourceRequest.
173
- * Use `create(NewAudioSourceRequestSchema)` to create a new message.
174
- */
175
- export const NewAudioSourceRequestSchema: GenMessage<NewAudioSourceRequest> = /*@__PURE__*/
176
- messageDesc(file_audio_frame, 4);
397
+ queueSizeMs?: number;
398
+
399
+ constructor(data?: PartialMessage<NewAudioSourceRequest>) {
400
+ super();
401
+ proto2.util.initPartial(data, this);
402
+ }
403
+
404
+ static readonly runtime: typeof proto2 = proto2;
405
+ static readonly typeName = "livekit.proto.NewAudioSourceRequest";
406
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
407
+ { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType), req: true },
408
+ { no: 2, name: "options", kind: "message", T: AudioSourceOptions, opt: true },
409
+ { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
410
+ { no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
411
+ { no: 5, name: "queue_size_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
412
+ ]);
413
+
414
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioSourceRequest {
415
+ return new NewAudioSourceRequest().fromBinary(bytes, options);
416
+ }
417
+
418
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioSourceRequest {
419
+ return new NewAudioSourceRequest().fromJson(jsonValue, options);
420
+ }
421
+
422
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioSourceRequest {
423
+ return new NewAudioSourceRequest().fromJsonString(jsonString, options);
424
+ }
425
+
426
+ static equals(a: NewAudioSourceRequest | PlainMessage<NewAudioSourceRequest> | undefined, b: NewAudioSourceRequest | PlainMessage<NewAudioSourceRequest> | undefined): boolean {
427
+ return proto2.util.equals(NewAudioSourceRequest, a, b);
428
+ }
429
+ }
177
430
 
178
431
  /**
179
432
  * @generated from message livekit.proto.NewAudioSourceResponse
180
433
  */
181
- export type NewAudioSourceResponse = Message<"livekit.proto.NewAudioSourceResponse"> & {
434
+ export class NewAudioSourceResponse extends Message<NewAudioSourceResponse> {
182
435
  /**
183
436
  * @generated from field: required livekit.proto.OwnedAudioSource source = 1;
184
437
  */
185
438
  source?: OwnedAudioSource;
186
- };
187
439
 
188
- /**
189
- * Describes the message livekit.proto.NewAudioSourceResponse.
190
- * Use `create(NewAudioSourceResponseSchema)` to create a new message.
191
- */
192
- export const NewAudioSourceResponseSchema: GenMessage<NewAudioSourceResponse> = /*@__PURE__*/
193
- messageDesc(file_audio_frame, 5);
440
+ constructor(data?: PartialMessage<NewAudioSourceResponse>) {
441
+ super();
442
+ proto2.util.initPartial(data, this);
443
+ }
444
+
445
+ static readonly runtime: typeof proto2 = proto2;
446
+ static readonly typeName = "livekit.proto.NewAudioSourceResponse";
447
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
448
+ { no: 1, name: "source", kind: "message", T: OwnedAudioSource, req: true },
449
+ ]);
450
+
451
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioSourceResponse {
452
+ return new NewAudioSourceResponse().fromBinary(bytes, options);
453
+ }
454
+
455
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioSourceResponse {
456
+ return new NewAudioSourceResponse().fromJson(jsonValue, options);
457
+ }
458
+
459
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioSourceResponse {
460
+ return new NewAudioSourceResponse().fromJsonString(jsonString, options);
461
+ }
462
+
463
+ static equals(a: NewAudioSourceResponse | PlainMessage<NewAudioSourceResponse> | undefined, b: NewAudioSourceResponse | PlainMessage<NewAudioSourceResponse> | undefined): boolean {
464
+ return proto2.util.equals(NewAudioSourceResponse, a, b);
465
+ }
466
+ }
194
467
 
195
468
  /**
196
469
  * Push a frame to an AudioSource
@@ -198,136 +471,274 @@ export const NewAudioSourceResponseSchema: GenMessage<NewAudioSourceResponse> =
198
471
  *
199
472
  * @generated from message livekit.proto.CaptureAudioFrameRequest
200
473
  */
201
- export type CaptureAudioFrameRequest = Message<"livekit.proto.CaptureAudioFrameRequest"> & {
474
+ export class CaptureAudioFrameRequest extends Message<CaptureAudioFrameRequest> {
202
475
  /**
203
476
  * @generated from field: required uint64 source_handle = 1;
204
477
  */
205
- sourceHandle: bigint;
478
+ sourceHandle?: bigint;
206
479
 
207
480
  /**
208
481
  * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2;
209
482
  */
210
483
  buffer?: AudioFrameBufferInfo;
211
- };
212
484
 
213
- /**
214
- * Describes the message livekit.proto.CaptureAudioFrameRequest.
215
- * Use `create(CaptureAudioFrameRequestSchema)` to create a new message.
216
- */
217
- export const CaptureAudioFrameRequestSchema: GenMessage<CaptureAudioFrameRequest> = /*@__PURE__*/
218
- messageDesc(file_audio_frame, 6);
485
+ constructor(data?: PartialMessage<CaptureAudioFrameRequest>) {
486
+ super();
487
+ proto2.util.initPartial(data, this);
488
+ }
489
+
490
+ static readonly runtime: typeof proto2 = proto2;
491
+ static readonly typeName = "livekit.proto.CaptureAudioFrameRequest";
492
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
493
+ { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
494
+ { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo, req: true },
495
+ ]);
496
+
497
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameRequest {
498
+ return new CaptureAudioFrameRequest().fromBinary(bytes, options);
499
+ }
500
+
501
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameRequest {
502
+ return new CaptureAudioFrameRequest().fromJson(jsonValue, options);
503
+ }
504
+
505
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameRequest {
506
+ return new CaptureAudioFrameRequest().fromJsonString(jsonString, options);
507
+ }
508
+
509
+ static equals(a: CaptureAudioFrameRequest | PlainMessage<CaptureAudioFrameRequest> | undefined, b: CaptureAudioFrameRequest | PlainMessage<CaptureAudioFrameRequest> | undefined): boolean {
510
+ return proto2.util.equals(CaptureAudioFrameRequest, a, b);
511
+ }
512
+ }
219
513
 
220
514
  /**
221
515
  * @generated from message livekit.proto.CaptureAudioFrameResponse
222
516
  */
223
- export type CaptureAudioFrameResponse = Message<"livekit.proto.CaptureAudioFrameResponse"> & {
517
+ export class CaptureAudioFrameResponse extends Message<CaptureAudioFrameResponse> {
224
518
  /**
225
519
  * @generated from field: required uint64 async_id = 1;
226
520
  */
227
- asyncId: bigint;
228
- };
521
+ asyncId?: bigint;
229
522
 
230
- /**
231
- * Describes the message livekit.proto.CaptureAudioFrameResponse.
232
- * Use `create(CaptureAudioFrameResponseSchema)` to create a new message.
233
- */
234
- export const CaptureAudioFrameResponseSchema: GenMessage<CaptureAudioFrameResponse> = /*@__PURE__*/
235
- messageDesc(file_audio_frame, 7);
523
+ constructor(data?: PartialMessage<CaptureAudioFrameResponse>) {
524
+ super();
525
+ proto2.util.initPartial(data, this);
526
+ }
527
+
528
+ static readonly runtime: typeof proto2 = proto2;
529
+ static readonly typeName = "livekit.proto.CaptureAudioFrameResponse";
530
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
531
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
532
+ ]);
533
+
534
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameResponse {
535
+ return new CaptureAudioFrameResponse().fromBinary(bytes, options);
536
+ }
537
+
538
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameResponse {
539
+ return new CaptureAudioFrameResponse().fromJson(jsonValue, options);
540
+ }
541
+
542
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameResponse {
543
+ return new CaptureAudioFrameResponse().fromJsonString(jsonString, options);
544
+ }
545
+
546
+ static equals(a: CaptureAudioFrameResponse | PlainMessage<CaptureAudioFrameResponse> | undefined, b: CaptureAudioFrameResponse | PlainMessage<CaptureAudioFrameResponse> | undefined): boolean {
547
+ return proto2.util.equals(CaptureAudioFrameResponse, a, b);
548
+ }
549
+ }
236
550
 
237
551
  /**
238
552
  * @generated from message livekit.proto.CaptureAudioFrameCallback
239
553
  */
240
- export type CaptureAudioFrameCallback = Message<"livekit.proto.CaptureAudioFrameCallback"> & {
554
+ export class CaptureAudioFrameCallback extends Message<CaptureAudioFrameCallback> {
241
555
  /**
242
556
  * @generated from field: required uint64 async_id = 1;
243
557
  */
244
- asyncId: bigint;
558
+ asyncId?: bigint;
245
559
 
246
560
  /**
247
561
  * @generated from field: optional string error = 2;
248
562
  */
249
- error: string;
250
- };
563
+ error?: string;
251
564
 
252
- /**
253
- * Describes the message livekit.proto.CaptureAudioFrameCallback.
254
- * Use `create(CaptureAudioFrameCallbackSchema)` to create a new message.
255
- */
256
- export const CaptureAudioFrameCallbackSchema: GenMessage<CaptureAudioFrameCallback> = /*@__PURE__*/
257
- messageDesc(file_audio_frame, 8);
565
+ constructor(data?: PartialMessage<CaptureAudioFrameCallback>) {
566
+ super();
567
+ proto2.util.initPartial(data, this);
568
+ }
569
+
570
+ static readonly runtime: typeof proto2 = proto2;
571
+ static readonly typeName = "livekit.proto.CaptureAudioFrameCallback";
572
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
573
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
574
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
575
+ ]);
576
+
577
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameCallback {
578
+ return new CaptureAudioFrameCallback().fromBinary(bytes, options);
579
+ }
580
+
581
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameCallback {
582
+ return new CaptureAudioFrameCallback().fromJson(jsonValue, options);
583
+ }
584
+
585
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameCallback {
586
+ return new CaptureAudioFrameCallback().fromJsonString(jsonString, options);
587
+ }
588
+
589
+ static equals(a: CaptureAudioFrameCallback | PlainMessage<CaptureAudioFrameCallback> | undefined, b: CaptureAudioFrameCallback | PlainMessage<CaptureAudioFrameCallback> | undefined): boolean {
590
+ return proto2.util.equals(CaptureAudioFrameCallback, a, b);
591
+ }
592
+ }
258
593
 
259
594
  /**
260
595
  * @generated from message livekit.proto.ClearAudioBufferRequest
261
596
  */
262
- export type ClearAudioBufferRequest = Message<"livekit.proto.ClearAudioBufferRequest"> & {
597
+ export class ClearAudioBufferRequest extends Message<ClearAudioBufferRequest> {
263
598
  /**
264
599
  * @generated from field: required uint64 source_handle = 1;
265
600
  */
266
- sourceHandle: bigint;
267
- };
601
+ sourceHandle?: bigint;
268
602
 
269
- /**
270
- * Describes the message livekit.proto.ClearAudioBufferRequest.
271
- * Use `create(ClearAudioBufferRequestSchema)` to create a new message.
272
- */
273
- export const ClearAudioBufferRequestSchema: GenMessage<ClearAudioBufferRequest> = /*@__PURE__*/
274
- messageDesc(file_audio_frame, 9);
603
+ constructor(data?: PartialMessage<ClearAudioBufferRequest>) {
604
+ super();
605
+ proto2.util.initPartial(data, this);
606
+ }
607
+
608
+ static readonly runtime: typeof proto2 = proto2;
609
+ static readonly typeName = "livekit.proto.ClearAudioBufferRequest";
610
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
611
+ { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
612
+ ]);
613
+
614
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClearAudioBufferRequest {
615
+ return new ClearAudioBufferRequest().fromBinary(bytes, options);
616
+ }
617
+
618
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClearAudioBufferRequest {
619
+ return new ClearAudioBufferRequest().fromJson(jsonValue, options);
620
+ }
621
+
622
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClearAudioBufferRequest {
623
+ return new ClearAudioBufferRequest().fromJsonString(jsonString, options);
624
+ }
625
+
626
+ static equals(a: ClearAudioBufferRequest | PlainMessage<ClearAudioBufferRequest> | undefined, b: ClearAudioBufferRequest | PlainMessage<ClearAudioBufferRequest> | undefined): boolean {
627
+ return proto2.util.equals(ClearAudioBufferRequest, a, b);
628
+ }
629
+ }
275
630
 
276
631
  /**
277
632
  * @generated from message livekit.proto.ClearAudioBufferResponse
278
633
  */
279
- export type ClearAudioBufferResponse = Message<"livekit.proto.ClearAudioBufferResponse"> & {
280
- };
634
+ export class ClearAudioBufferResponse extends Message<ClearAudioBufferResponse> {
635
+ constructor(data?: PartialMessage<ClearAudioBufferResponse>) {
636
+ super();
637
+ proto2.util.initPartial(data, this);
638
+ }
281
639
 
282
- /**
283
- * Describes the message livekit.proto.ClearAudioBufferResponse.
284
- * Use `create(ClearAudioBufferResponseSchema)` to create a new message.
285
- */
286
- export const ClearAudioBufferResponseSchema: GenMessage<ClearAudioBufferResponse> = /*@__PURE__*/
287
- messageDesc(file_audio_frame, 10);
640
+ static readonly runtime: typeof proto2 = proto2;
641
+ static readonly typeName = "livekit.proto.ClearAudioBufferResponse";
642
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
643
+ ]);
644
+
645
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClearAudioBufferResponse {
646
+ return new ClearAudioBufferResponse().fromBinary(bytes, options);
647
+ }
648
+
649
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClearAudioBufferResponse {
650
+ return new ClearAudioBufferResponse().fromJson(jsonValue, options);
651
+ }
652
+
653
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClearAudioBufferResponse {
654
+ return new ClearAudioBufferResponse().fromJsonString(jsonString, options);
655
+ }
656
+
657
+ static equals(a: ClearAudioBufferResponse | PlainMessage<ClearAudioBufferResponse> | undefined, b: ClearAudioBufferResponse | PlainMessage<ClearAudioBufferResponse> | undefined): boolean {
658
+ return proto2.util.equals(ClearAudioBufferResponse, a, b);
659
+ }
660
+ }
288
661
 
289
662
  /**
290
663
  * Create a new AudioResampler
291
664
  *
292
665
  * @generated from message livekit.proto.NewAudioResamplerRequest
293
666
  */
294
- export type NewAudioResamplerRequest = Message<"livekit.proto.NewAudioResamplerRequest"> & {
295
- };
667
+ export class NewAudioResamplerRequest extends Message<NewAudioResamplerRequest> {
668
+ constructor(data?: PartialMessage<NewAudioResamplerRequest>) {
669
+ super();
670
+ proto2.util.initPartial(data, this);
671
+ }
296
672
 
297
- /**
298
- * Describes the message livekit.proto.NewAudioResamplerRequest.
299
- * Use `create(NewAudioResamplerRequestSchema)` to create a new message.
300
- */
301
- export const NewAudioResamplerRequestSchema: GenMessage<NewAudioResamplerRequest> = /*@__PURE__*/
302
- messageDesc(file_audio_frame, 11);
673
+ static readonly runtime: typeof proto2 = proto2;
674
+ static readonly typeName = "livekit.proto.NewAudioResamplerRequest";
675
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
676
+ ]);
677
+
678
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioResamplerRequest {
679
+ return new NewAudioResamplerRequest().fromBinary(bytes, options);
680
+ }
681
+
682
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioResamplerRequest {
683
+ return new NewAudioResamplerRequest().fromJson(jsonValue, options);
684
+ }
685
+
686
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioResamplerRequest {
687
+ return new NewAudioResamplerRequest().fromJsonString(jsonString, options);
688
+ }
689
+
690
+ static equals(a: NewAudioResamplerRequest | PlainMessage<NewAudioResamplerRequest> | undefined, b: NewAudioResamplerRequest | PlainMessage<NewAudioResamplerRequest> | undefined): boolean {
691
+ return proto2.util.equals(NewAudioResamplerRequest, a, b);
692
+ }
693
+ }
303
694
 
304
695
  /**
305
696
  * @generated from message livekit.proto.NewAudioResamplerResponse
306
697
  */
307
- export type NewAudioResamplerResponse = Message<"livekit.proto.NewAudioResamplerResponse"> & {
698
+ export class NewAudioResamplerResponse extends Message<NewAudioResamplerResponse> {
308
699
  /**
309
700
  * @generated from field: required livekit.proto.OwnedAudioResampler resampler = 1;
310
701
  */
311
702
  resampler?: OwnedAudioResampler;
312
- };
313
703
 
314
- /**
315
- * Describes the message livekit.proto.NewAudioResamplerResponse.
316
- * Use `create(NewAudioResamplerResponseSchema)` to create a new message.
317
- */
318
- export const NewAudioResamplerResponseSchema: GenMessage<NewAudioResamplerResponse> = /*@__PURE__*/
319
- messageDesc(file_audio_frame, 12);
704
+ constructor(data?: PartialMessage<NewAudioResamplerResponse>) {
705
+ super();
706
+ proto2.util.initPartial(data, this);
707
+ }
708
+
709
+ static readonly runtime: typeof proto2 = proto2;
710
+ static readonly typeName = "livekit.proto.NewAudioResamplerResponse";
711
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
712
+ { no: 1, name: "resampler", kind: "message", T: OwnedAudioResampler, req: true },
713
+ ]);
714
+
715
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioResamplerResponse {
716
+ return new NewAudioResamplerResponse().fromBinary(bytes, options);
717
+ }
718
+
719
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioResamplerResponse {
720
+ return new NewAudioResamplerResponse().fromJson(jsonValue, options);
721
+ }
722
+
723
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioResamplerResponse {
724
+ return new NewAudioResamplerResponse().fromJsonString(jsonString, options);
725
+ }
726
+
727
+ static equals(a: NewAudioResamplerResponse | PlainMessage<NewAudioResamplerResponse> | undefined, b: NewAudioResamplerResponse | PlainMessage<NewAudioResamplerResponse> | undefined): boolean {
728
+ return proto2.util.equals(NewAudioResamplerResponse, a, b);
729
+ }
730
+ }
320
731
 
321
732
  /**
322
733
  * Remix and resample an audio frame
323
734
  *
324
735
  * @generated from message livekit.proto.RemixAndResampleRequest
325
736
  */
326
- export type RemixAndResampleRequest = Message<"livekit.proto.RemixAndResampleRequest"> & {
737
+ export class RemixAndResampleRequest extends Message<RemixAndResampleRequest> {
327
738
  /**
328
739
  * @generated from field: required uint64 resampler_handle = 1;
329
740
  */
330
- resamplerHandle: bigint;
741
+ resamplerHandle?: bigint;
331
742
 
332
743
  /**
333
744
  * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2;
@@ -337,89 +748,158 @@ export type RemixAndResampleRequest = Message<"livekit.proto.RemixAndResampleReq
337
748
  /**
338
749
  * @generated from field: required uint32 num_channels = 3;
339
750
  */
340
- numChannels: number;
751
+ numChannels?: number;
341
752
 
342
753
  /**
343
754
  * @generated from field: required uint32 sample_rate = 4;
344
755
  */
345
- sampleRate: number;
346
- };
347
-
348
- /**
349
- * Describes the message livekit.proto.RemixAndResampleRequest.
350
- * Use `create(RemixAndResampleRequestSchema)` to create a new message.
351
- */
352
- export const RemixAndResampleRequestSchema: GenMessage<RemixAndResampleRequest> = /*@__PURE__*/
353
- messageDesc(file_audio_frame, 13);
756
+ sampleRate?: number;
757
+
758
+ constructor(data?: PartialMessage<RemixAndResampleRequest>) {
759
+ super();
760
+ proto2.util.initPartial(data, this);
761
+ }
762
+
763
+ static readonly runtime: typeof proto2 = proto2;
764
+ static readonly typeName = "livekit.proto.RemixAndResampleRequest";
765
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
766
+ { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
767
+ { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo, req: true },
768
+ { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
769
+ { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
770
+ ]);
771
+
772
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemixAndResampleRequest {
773
+ return new RemixAndResampleRequest().fromBinary(bytes, options);
774
+ }
775
+
776
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemixAndResampleRequest {
777
+ return new RemixAndResampleRequest().fromJson(jsonValue, options);
778
+ }
779
+
780
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleRequest {
781
+ return new RemixAndResampleRequest().fromJsonString(jsonString, options);
782
+ }
783
+
784
+ static equals(a: RemixAndResampleRequest | PlainMessage<RemixAndResampleRequest> | undefined, b: RemixAndResampleRequest | PlainMessage<RemixAndResampleRequest> | undefined): boolean {
785
+ return proto2.util.equals(RemixAndResampleRequest, a, b);
786
+ }
787
+ }
354
788
 
355
789
  /**
356
790
  * @generated from message livekit.proto.RemixAndResampleResponse
357
791
  */
358
- export type RemixAndResampleResponse = Message<"livekit.proto.RemixAndResampleResponse"> & {
792
+ export class RemixAndResampleResponse extends Message<RemixAndResampleResponse> {
359
793
  /**
360
794
  * @generated from field: required livekit.proto.OwnedAudioFrameBuffer buffer = 1;
361
795
  */
362
796
  buffer?: OwnedAudioFrameBuffer;
363
- };
364
797
 
365
- /**
366
- * Describes the message livekit.proto.RemixAndResampleResponse.
367
- * Use `create(RemixAndResampleResponseSchema)` to create a new message.
368
- */
369
- export const RemixAndResampleResponseSchema: GenMessage<RemixAndResampleResponse> = /*@__PURE__*/
370
- messageDesc(file_audio_frame, 14);
798
+ constructor(data?: PartialMessage<RemixAndResampleResponse>) {
799
+ super();
800
+ proto2.util.initPartial(data, this);
801
+ }
802
+
803
+ static readonly runtime: typeof proto2 = proto2;
804
+ static readonly typeName = "livekit.proto.RemixAndResampleResponse";
805
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
806
+ { no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer, req: true },
807
+ ]);
808
+
809
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemixAndResampleResponse {
810
+ return new RemixAndResampleResponse().fromBinary(bytes, options);
811
+ }
812
+
813
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemixAndResampleResponse {
814
+ return new RemixAndResampleResponse().fromJson(jsonValue, options);
815
+ }
816
+
817
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleResponse {
818
+ return new RemixAndResampleResponse().fromJsonString(jsonString, options);
819
+ }
820
+
821
+ static equals(a: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined, b: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined): boolean {
822
+ return proto2.util.equals(RemixAndResampleResponse, a, b);
823
+ }
824
+ }
371
825
 
372
826
  /**
373
827
  * @generated from message livekit.proto.NewSoxResamplerRequest
374
828
  */
375
- export type NewSoxResamplerRequest = Message<"livekit.proto.NewSoxResamplerRequest"> & {
829
+ export class NewSoxResamplerRequest extends Message<NewSoxResamplerRequest> {
376
830
  /**
377
831
  * @generated from field: required double input_rate = 1;
378
832
  */
379
- inputRate: number;
833
+ inputRate?: number;
380
834
 
381
835
  /**
382
836
  * @generated from field: required double output_rate = 2;
383
837
  */
384
- outputRate: number;
838
+ outputRate?: number;
385
839
 
386
840
  /**
387
841
  * @generated from field: required uint32 num_channels = 3;
388
842
  */
389
- numChannels: number;
843
+ numChannels?: number;
390
844
 
391
845
  /**
392
846
  * @generated from field: required livekit.proto.SoxResamplerDataType input_data_type = 4;
393
847
  */
394
- inputDataType: SoxResamplerDataType;
848
+ inputDataType?: SoxResamplerDataType;
395
849
 
396
850
  /**
397
851
  * @generated from field: required livekit.proto.SoxResamplerDataType output_data_type = 5;
398
852
  */
399
- outputDataType: SoxResamplerDataType;
853
+ outputDataType?: SoxResamplerDataType;
400
854
 
401
855
  /**
402
856
  * @generated from field: required livekit.proto.SoxQualityRecipe quality_recipe = 6;
403
857
  */
404
- qualityRecipe: SoxQualityRecipe;
858
+ qualityRecipe?: SoxQualityRecipe;
405
859
 
406
860
  /**
407
861
  * @generated from field: optional uint32 flags = 7;
408
862
  */
409
- flags: number;
410
- };
411
-
412
- /**
413
- * Describes the message livekit.proto.NewSoxResamplerRequest.
414
- * Use `create(NewSoxResamplerRequestSchema)` to create a new message.
415
- */
416
- export const NewSoxResamplerRequestSchema: GenMessage<NewSoxResamplerRequest> = /*@__PURE__*/
417
- messageDesc(file_audio_frame, 15);
863
+ flags?: number;
864
+
865
+ constructor(data?: PartialMessage<NewSoxResamplerRequest>) {
866
+ super();
867
+ proto2.util.initPartial(data, this);
868
+ }
869
+
870
+ static readonly runtime: typeof proto2 = proto2;
871
+ static readonly typeName = "livekit.proto.NewSoxResamplerRequest";
872
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
873
+ { no: 1, name: "input_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true },
874
+ { no: 2, name: "output_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true },
875
+ { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
876
+ { no: 4, name: "input_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType), req: true },
877
+ { no: 5, name: "output_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType), req: true },
878
+ { no: 6, name: "quality_recipe", kind: "enum", T: proto2.getEnumType(SoxQualityRecipe), req: true },
879
+ { no: 7, name: "flags", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
880
+ ]);
881
+
882
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewSoxResamplerRequest {
883
+ return new NewSoxResamplerRequest().fromBinary(bytes, options);
884
+ }
885
+
886
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewSoxResamplerRequest {
887
+ return new NewSoxResamplerRequest().fromJson(jsonValue, options);
888
+ }
889
+
890
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewSoxResamplerRequest {
891
+ return new NewSoxResamplerRequest().fromJsonString(jsonString, options);
892
+ }
893
+
894
+ static equals(a: NewSoxResamplerRequest | PlainMessage<NewSoxResamplerRequest> | undefined, b: NewSoxResamplerRequest | PlainMessage<NewSoxResamplerRequest> | undefined): boolean {
895
+ return proto2.util.equals(NewSoxResamplerRequest, a, b);
896
+ }
897
+ }
418
898
 
419
899
  /**
420
900
  * @generated from message livekit.proto.NewSoxResamplerResponse
421
901
  */
422
- export type NewSoxResamplerResponse = Message<"livekit.proto.NewSoxResamplerResponse"> & {
902
+ export class NewSoxResamplerResponse extends Message<NewSoxResamplerResponse> {
423
903
  /**
424
904
  * @generated from oneof livekit.proto.NewSoxResamplerResponse.message
425
905
  */
@@ -435,164 +915,294 @@ export type NewSoxResamplerResponse = Message<"livekit.proto.NewSoxResamplerResp
435
915
  */
436
916
  value: string;
437
917
  case: "error";
438
- } | { case: undefined; value?: undefined };
439
- };
440
-
441
- /**
442
- * Describes the message livekit.proto.NewSoxResamplerResponse.
443
- * Use `create(NewSoxResamplerResponseSchema)` to create a new message.
444
- */
445
- export const NewSoxResamplerResponseSchema: GenMessage<NewSoxResamplerResponse> = /*@__PURE__*/
446
- messageDesc(file_audio_frame, 16);
918
+ } | { case: undefined; value?: undefined } = { case: undefined };
919
+
920
+ constructor(data?: PartialMessage<NewSoxResamplerResponse>) {
921
+ super();
922
+ proto2.util.initPartial(data, this);
923
+ }
924
+
925
+ static readonly runtime: typeof proto2 = proto2;
926
+ static readonly typeName = "livekit.proto.NewSoxResamplerResponse";
927
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
928
+ { no: 1, name: "resampler", kind: "message", T: OwnedSoxResampler, oneof: "message" },
929
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" },
930
+ ]);
931
+
932
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewSoxResamplerResponse {
933
+ return new NewSoxResamplerResponse().fromBinary(bytes, options);
934
+ }
935
+
936
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewSoxResamplerResponse {
937
+ return new NewSoxResamplerResponse().fromJson(jsonValue, options);
938
+ }
939
+
940
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewSoxResamplerResponse {
941
+ return new NewSoxResamplerResponse().fromJsonString(jsonString, options);
942
+ }
943
+
944
+ static equals(a: NewSoxResamplerResponse | PlainMessage<NewSoxResamplerResponse> | undefined, b: NewSoxResamplerResponse | PlainMessage<NewSoxResamplerResponse> | undefined): boolean {
945
+ return proto2.util.equals(NewSoxResamplerResponse, a, b);
946
+ }
947
+ }
447
948
 
448
949
  /**
449
950
  * @generated from message livekit.proto.PushSoxResamplerRequest
450
951
  */
451
- export type PushSoxResamplerRequest = Message<"livekit.proto.PushSoxResamplerRequest"> & {
952
+ export class PushSoxResamplerRequest extends Message<PushSoxResamplerRequest> {
452
953
  /**
453
954
  * @generated from field: required uint64 resampler_handle = 1;
454
955
  */
455
- resamplerHandle: bigint;
956
+ resamplerHandle?: bigint;
456
957
 
457
958
  /**
458
959
  * *const i16
459
960
  *
460
961
  * @generated from field: required uint64 data_ptr = 2;
461
962
  */
462
- dataPtr: bigint;
963
+ dataPtr?: bigint;
463
964
 
464
965
  /**
465
966
  * in bytes
466
967
  *
467
968
  * @generated from field: required uint32 size = 3;
468
969
  */
469
- size: number;
470
- };
970
+ size?: number;
471
971
 
472
- /**
473
- * Describes the message livekit.proto.PushSoxResamplerRequest.
474
- * Use `create(PushSoxResamplerRequestSchema)` to create a new message.
475
- */
476
- export const PushSoxResamplerRequestSchema: GenMessage<PushSoxResamplerRequest> = /*@__PURE__*/
477
- messageDesc(file_audio_frame, 17);
972
+ constructor(data?: PartialMessage<PushSoxResamplerRequest>) {
973
+ super();
974
+ proto2.util.initPartial(data, this);
975
+ }
976
+
977
+ static readonly runtime: typeof proto2 = proto2;
978
+ static readonly typeName = "livekit.proto.PushSoxResamplerRequest";
979
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
980
+ { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
981
+ { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
982
+ { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
983
+ ]);
984
+
985
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushSoxResamplerRequest {
986
+ return new PushSoxResamplerRequest().fromBinary(bytes, options);
987
+ }
988
+
989
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushSoxResamplerRequest {
990
+ return new PushSoxResamplerRequest().fromJson(jsonValue, options);
991
+ }
992
+
993
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushSoxResamplerRequest {
994
+ return new PushSoxResamplerRequest().fromJsonString(jsonString, options);
995
+ }
996
+
997
+ static equals(a: PushSoxResamplerRequest | PlainMessage<PushSoxResamplerRequest> | undefined, b: PushSoxResamplerRequest | PlainMessage<PushSoxResamplerRequest> | undefined): boolean {
998
+ return proto2.util.equals(PushSoxResamplerRequest, a, b);
999
+ }
1000
+ }
478
1001
 
479
1002
  /**
480
1003
  * @generated from message livekit.proto.PushSoxResamplerResponse
481
1004
  */
482
- export type PushSoxResamplerResponse = Message<"livekit.proto.PushSoxResamplerResponse"> & {
1005
+ export class PushSoxResamplerResponse extends Message<PushSoxResamplerResponse> {
483
1006
  /**
484
1007
  * *const i16 (could be null)
485
1008
  *
486
1009
  * @generated from field: required uint64 output_ptr = 1;
487
1010
  */
488
- outputPtr: bigint;
1011
+ outputPtr?: bigint;
489
1012
 
490
1013
  /**
491
1014
  * in bytes
492
1015
  *
493
1016
  * @generated from field: required uint32 size = 2;
494
1017
  */
495
- size: number;
1018
+ size?: number;
496
1019
 
497
1020
  /**
498
1021
  * @generated from field: optional string error = 3;
499
1022
  */
500
- error: string;
501
- };
1023
+ error?: string;
502
1024
 
503
- /**
504
- * Describes the message livekit.proto.PushSoxResamplerResponse.
505
- * Use `create(PushSoxResamplerResponseSchema)` to create a new message.
506
- */
507
- export const PushSoxResamplerResponseSchema: GenMessage<PushSoxResamplerResponse> = /*@__PURE__*/
508
- messageDesc(file_audio_frame, 18);
1025
+ constructor(data?: PartialMessage<PushSoxResamplerResponse>) {
1026
+ super();
1027
+ proto2.util.initPartial(data, this);
1028
+ }
1029
+
1030
+ static readonly runtime: typeof proto2 = proto2;
1031
+ static readonly typeName = "livekit.proto.PushSoxResamplerResponse";
1032
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1033
+ { no: 1, name: "output_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
1034
+ { no: 2, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
1035
+ { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1036
+ ]);
1037
+
1038
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushSoxResamplerResponse {
1039
+ return new PushSoxResamplerResponse().fromBinary(bytes, options);
1040
+ }
1041
+
1042
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushSoxResamplerResponse {
1043
+ return new PushSoxResamplerResponse().fromJson(jsonValue, options);
1044
+ }
1045
+
1046
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushSoxResamplerResponse {
1047
+ return new PushSoxResamplerResponse().fromJsonString(jsonString, options);
1048
+ }
1049
+
1050
+ static equals(a: PushSoxResamplerResponse | PlainMessage<PushSoxResamplerResponse> | undefined, b: PushSoxResamplerResponse | PlainMessage<PushSoxResamplerResponse> | undefined): boolean {
1051
+ return proto2.util.equals(PushSoxResamplerResponse, a, b);
1052
+ }
1053
+ }
509
1054
 
510
1055
  /**
511
1056
  * @generated from message livekit.proto.FlushSoxResamplerRequest
512
1057
  */
513
- export type FlushSoxResamplerRequest = Message<"livekit.proto.FlushSoxResamplerRequest"> & {
1058
+ export class FlushSoxResamplerRequest extends Message<FlushSoxResamplerRequest> {
514
1059
  /**
515
1060
  * @generated from field: required uint64 resampler_handle = 1;
516
1061
  */
517
- resamplerHandle: bigint;
518
- };
1062
+ resamplerHandle?: bigint;
519
1063
 
520
- /**
521
- * Describes the message livekit.proto.FlushSoxResamplerRequest.
522
- * Use `create(FlushSoxResamplerRequestSchema)` to create a new message.
523
- */
524
- export const FlushSoxResamplerRequestSchema: GenMessage<FlushSoxResamplerRequest> = /*@__PURE__*/
525
- messageDesc(file_audio_frame, 19);
1064
+ constructor(data?: PartialMessage<FlushSoxResamplerRequest>) {
1065
+ super();
1066
+ proto2.util.initPartial(data, this);
1067
+ }
1068
+
1069
+ static readonly runtime: typeof proto2 = proto2;
1070
+ static readonly typeName = "livekit.proto.FlushSoxResamplerRequest";
1071
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1072
+ { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
1073
+ ]);
1074
+
1075
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FlushSoxResamplerRequest {
1076
+ return new FlushSoxResamplerRequest().fromBinary(bytes, options);
1077
+ }
1078
+
1079
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FlushSoxResamplerRequest {
1080
+ return new FlushSoxResamplerRequest().fromJson(jsonValue, options);
1081
+ }
1082
+
1083
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FlushSoxResamplerRequest {
1084
+ return new FlushSoxResamplerRequest().fromJsonString(jsonString, options);
1085
+ }
1086
+
1087
+ static equals(a: FlushSoxResamplerRequest | PlainMessage<FlushSoxResamplerRequest> | undefined, b: FlushSoxResamplerRequest | PlainMessage<FlushSoxResamplerRequest> | undefined): boolean {
1088
+ return proto2.util.equals(FlushSoxResamplerRequest, a, b);
1089
+ }
1090
+ }
526
1091
 
527
1092
  /**
528
1093
  * @generated from message livekit.proto.FlushSoxResamplerResponse
529
1094
  */
530
- export type FlushSoxResamplerResponse = Message<"livekit.proto.FlushSoxResamplerResponse"> & {
1095
+ export class FlushSoxResamplerResponse extends Message<FlushSoxResamplerResponse> {
531
1096
  /**
532
1097
  * *const i16 (could be null)
533
1098
  *
534
1099
  * @generated from field: required uint64 output_ptr = 1;
535
1100
  */
536
- outputPtr: bigint;
1101
+ outputPtr?: bigint;
537
1102
 
538
1103
  /**
539
1104
  * in bytes
540
1105
  *
541
1106
  * @generated from field: required uint32 size = 2;
542
1107
  */
543
- size: number;
1108
+ size?: number;
544
1109
 
545
1110
  /**
546
1111
  * @generated from field: optional string error = 3;
547
1112
  */
548
- error: string;
549
- };
1113
+ error?: string;
550
1114
 
551
- /**
552
- * Describes the message livekit.proto.FlushSoxResamplerResponse.
553
- * Use `create(FlushSoxResamplerResponseSchema)` to create a new message.
554
- */
555
- export const FlushSoxResamplerResponseSchema: GenMessage<FlushSoxResamplerResponse> = /*@__PURE__*/
556
- messageDesc(file_audio_frame, 20);
1115
+ constructor(data?: PartialMessage<FlushSoxResamplerResponse>) {
1116
+ super();
1117
+ proto2.util.initPartial(data, this);
1118
+ }
1119
+
1120
+ static readonly runtime: typeof proto2 = proto2;
1121
+ static readonly typeName = "livekit.proto.FlushSoxResamplerResponse";
1122
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1123
+ { no: 1, name: "output_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
1124
+ { no: 2, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
1125
+ { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1126
+ ]);
1127
+
1128
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FlushSoxResamplerResponse {
1129
+ return new FlushSoxResamplerResponse().fromBinary(bytes, options);
1130
+ }
1131
+
1132
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FlushSoxResamplerResponse {
1133
+ return new FlushSoxResamplerResponse().fromJson(jsonValue, options);
1134
+ }
1135
+
1136
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FlushSoxResamplerResponse {
1137
+ return new FlushSoxResamplerResponse().fromJsonString(jsonString, options);
1138
+ }
1139
+
1140
+ static equals(a: FlushSoxResamplerResponse | PlainMessage<FlushSoxResamplerResponse> | undefined, b: FlushSoxResamplerResponse | PlainMessage<FlushSoxResamplerResponse> | undefined): boolean {
1141
+ return proto2.util.equals(FlushSoxResamplerResponse, a, b);
1142
+ }
1143
+ }
557
1144
 
558
1145
  /**
559
1146
  * @generated from message livekit.proto.AudioFrameBufferInfo
560
1147
  */
561
- export type AudioFrameBufferInfo = Message<"livekit.proto.AudioFrameBufferInfo"> & {
1148
+ export class AudioFrameBufferInfo extends Message<AudioFrameBufferInfo> {
562
1149
  /**
563
1150
  * *const i16
564
1151
  *
565
1152
  * @generated from field: required uint64 data_ptr = 1;
566
1153
  */
567
- dataPtr: bigint;
1154
+ dataPtr?: bigint;
568
1155
 
569
1156
  /**
570
1157
  * @generated from field: required uint32 num_channels = 2;
571
1158
  */
572
- numChannels: number;
1159
+ numChannels?: number;
573
1160
 
574
1161
  /**
575
1162
  * @generated from field: required uint32 sample_rate = 3;
576
1163
  */
577
- sampleRate: number;
1164
+ sampleRate?: number;
578
1165
 
579
1166
  /**
580
1167
  * @generated from field: required uint32 samples_per_channel = 4;
581
1168
  */
582
- samplesPerChannel: number;
583
- };
584
-
585
- /**
586
- * Describes the message livekit.proto.AudioFrameBufferInfo.
587
- * Use `create(AudioFrameBufferInfoSchema)` to create a new message.
588
- */
589
- export const AudioFrameBufferInfoSchema: GenMessage<AudioFrameBufferInfo> = /*@__PURE__*/
590
- messageDesc(file_audio_frame, 21);
1169
+ samplesPerChannel?: number;
1170
+
1171
+ constructor(data?: PartialMessage<AudioFrameBufferInfo>) {
1172
+ super();
1173
+ proto2.util.initPartial(data, this);
1174
+ }
1175
+
1176
+ static readonly runtime: typeof proto2 = proto2;
1177
+ static readonly typeName = "livekit.proto.AudioFrameBufferInfo";
1178
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1179
+ { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
1180
+ { no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
1181
+ { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
1182
+ { no: 4, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
1183
+ ]);
1184
+
1185
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioFrameBufferInfo {
1186
+ return new AudioFrameBufferInfo().fromBinary(bytes, options);
1187
+ }
1188
+
1189
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioFrameBufferInfo {
1190
+ return new AudioFrameBufferInfo().fromJson(jsonValue, options);
1191
+ }
1192
+
1193
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioFrameBufferInfo {
1194
+ return new AudioFrameBufferInfo().fromJsonString(jsonString, options);
1195
+ }
1196
+
1197
+ static equals(a: AudioFrameBufferInfo | PlainMessage<AudioFrameBufferInfo> | undefined, b: AudioFrameBufferInfo | PlainMessage<AudioFrameBufferInfo> | undefined): boolean {
1198
+ return proto2.util.equals(AudioFrameBufferInfo, a, b);
1199
+ }
1200
+ }
591
1201
 
592
1202
  /**
593
1203
  * @generated from message livekit.proto.OwnedAudioFrameBuffer
594
1204
  */
595
- export type OwnedAudioFrameBuffer = Message<"livekit.proto.OwnedAudioFrameBuffer"> & {
1205
+ export class OwnedAudioFrameBuffer extends Message<OwnedAudioFrameBuffer> {
596
1206
  /**
597
1207
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
598
1208
  */
@@ -602,36 +1212,77 @@ export type OwnedAudioFrameBuffer = Message<"livekit.proto.OwnedAudioFrameBuffer
602
1212
  * @generated from field: required livekit.proto.AudioFrameBufferInfo info = 2;
603
1213
  */
604
1214
  info?: AudioFrameBufferInfo;
605
- };
606
1215
 
607
- /**
608
- * Describes the message livekit.proto.OwnedAudioFrameBuffer.
609
- * Use `create(OwnedAudioFrameBufferSchema)` to create a new message.
610
- */
611
- export const OwnedAudioFrameBufferSchema: GenMessage<OwnedAudioFrameBuffer> = /*@__PURE__*/
612
- messageDesc(file_audio_frame, 22);
1216
+ constructor(data?: PartialMessage<OwnedAudioFrameBuffer>) {
1217
+ super();
1218
+ proto2.util.initPartial(data, this);
1219
+ }
1220
+
1221
+ static readonly runtime: typeof proto2 = proto2;
1222
+ static readonly typeName = "livekit.proto.OwnedAudioFrameBuffer";
1223
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1224
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1225
+ { no: 2, name: "info", kind: "message", T: AudioFrameBufferInfo, req: true },
1226
+ ]);
1227
+
1228
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioFrameBuffer {
1229
+ return new OwnedAudioFrameBuffer().fromBinary(bytes, options);
1230
+ }
1231
+
1232
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioFrameBuffer {
1233
+ return new OwnedAudioFrameBuffer().fromJson(jsonValue, options);
1234
+ }
1235
+
1236
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioFrameBuffer {
1237
+ return new OwnedAudioFrameBuffer().fromJsonString(jsonString, options);
1238
+ }
1239
+
1240
+ static equals(a: OwnedAudioFrameBuffer | PlainMessage<OwnedAudioFrameBuffer> | undefined, b: OwnedAudioFrameBuffer | PlainMessage<OwnedAudioFrameBuffer> | undefined): boolean {
1241
+ return proto2.util.equals(OwnedAudioFrameBuffer, a, b);
1242
+ }
1243
+ }
613
1244
 
614
1245
  /**
615
1246
  * @generated from message livekit.proto.AudioStreamInfo
616
1247
  */
617
- export type AudioStreamInfo = Message<"livekit.proto.AudioStreamInfo"> & {
1248
+ export class AudioStreamInfo extends Message<AudioStreamInfo> {
618
1249
  /**
619
1250
  * @generated from field: required livekit.proto.AudioStreamType type = 1;
620
1251
  */
621
- type: AudioStreamType;
622
- };
1252
+ type?: AudioStreamType;
623
1253
 
624
- /**
625
- * Describes the message livekit.proto.AudioStreamInfo.
626
- * Use `create(AudioStreamInfoSchema)` to create a new message.
627
- */
628
- export const AudioStreamInfoSchema: GenMessage<AudioStreamInfo> = /*@__PURE__*/
629
- messageDesc(file_audio_frame, 23);
1254
+ constructor(data?: PartialMessage<AudioStreamInfo>) {
1255
+ super();
1256
+ proto2.util.initPartial(data, this);
1257
+ }
1258
+
1259
+ static readonly runtime: typeof proto2 = proto2;
1260
+ static readonly typeName = "livekit.proto.AudioStreamInfo";
1261
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1262
+ { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true },
1263
+ ]);
1264
+
1265
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamInfo {
1266
+ return new AudioStreamInfo().fromBinary(bytes, options);
1267
+ }
1268
+
1269
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamInfo {
1270
+ return new AudioStreamInfo().fromJson(jsonValue, options);
1271
+ }
1272
+
1273
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamInfo {
1274
+ return new AudioStreamInfo().fromJsonString(jsonString, options);
1275
+ }
1276
+
1277
+ static equals(a: AudioStreamInfo | PlainMessage<AudioStreamInfo> | undefined, b: AudioStreamInfo | PlainMessage<AudioStreamInfo> | undefined): boolean {
1278
+ return proto2.util.equals(AudioStreamInfo, a, b);
1279
+ }
1280
+ }
630
1281
 
631
1282
  /**
632
1283
  * @generated from message livekit.proto.OwnedAudioStream
633
1284
  */
634
- export type OwnedAudioStream = Message<"livekit.proto.OwnedAudioStream"> & {
1285
+ export class OwnedAudioStream extends Message<OwnedAudioStream> {
635
1286
  /**
636
1287
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
637
1288
  */
@@ -641,23 +1292,44 @@ export type OwnedAudioStream = Message<"livekit.proto.OwnedAudioStream"> & {
641
1292
  * @generated from field: required livekit.proto.AudioStreamInfo info = 2;
642
1293
  */
643
1294
  info?: AudioStreamInfo;
644
- };
645
1295
 
646
- /**
647
- * Describes the message livekit.proto.OwnedAudioStream.
648
- * Use `create(OwnedAudioStreamSchema)` to create a new message.
649
- */
650
- export const OwnedAudioStreamSchema: GenMessage<OwnedAudioStream> = /*@__PURE__*/
651
- messageDesc(file_audio_frame, 24);
1296
+ constructor(data?: PartialMessage<OwnedAudioStream>) {
1297
+ super();
1298
+ proto2.util.initPartial(data, this);
1299
+ }
1300
+
1301
+ static readonly runtime: typeof proto2 = proto2;
1302
+ static readonly typeName = "livekit.proto.OwnedAudioStream";
1303
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1304
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1305
+ { no: 2, name: "info", kind: "message", T: AudioStreamInfo, req: true },
1306
+ ]);
1307
+
1308
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioStream {
1309
+ return new OwnedAudioStream().fromBinary(bytes, options);
1310
+ }
1311
+
1312
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioStream {
1313
+ return new OwnedAudioStream().fromJson(jsonValue, options);
1314
+ }
1315
+
1316
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioStream {
1317
+ return new OwnedAudioStream().fromJsonString(jsonString, options);
1318
+ }
1319
+
1320
+ static equals(a: OwnedAudioStream | PlainMessage<OwnedAudioStream> | undefined, b: OwnedAudioStream | PlainMessage<OwnedAudioStream> | undefined): boolean {
1321
+ return proto2.util.equals(OwnedAudioStream, a, b);
1322
+ }
1323
+ }
652
1324
 
653
1325
  /**
654
1326
  * @generated from message livekit.proto.AudioStreamEvent
655
1327
  */
656
- export type AudioStreamEvent = Message<"livekit.proto.AudioStreamEvent"> & {
1328
+ export class AudioStreamEvent extends Message<AudioStreamEvent> {
657
1329
  /**
658
1330
  * @generated from field: required uint64 stream_handle = 1;
659
1331
  */
660
- streamHandle: bigint;
1332
+ streamHandle?: bigint;
661
1333
 
662
1334
  /**
663
1335
  * @generated from oneof livekit.proto.AudioStreamEvent.message
@@ -674,328 +1346,380 @@ export type AudioStreamEvent = Message<"livekit.proto.AudioStreamEvent"> & {
674
1346
  */
675
1347
  value: AudioStreamEOS;
676
1348
  case: "eos";
677
- } | { case: undefined; value?: undefined };
678
- };
679
-
680
- /**
681
- * Describes the message livekit.proto.AudioStreamEvent.
682
- * Use `create(AudioStreamEventSchema)` to create a new message.
683
- */
684
- export const AudioStreamEventSchema: GenMessage<AudioStreamEvent> = /*@__PURE__*/
685
- messageDesc(file_audio_frame, 25);
1349
+ } | { case: undefined; value?: undefined } = { case: undefined };
1350
+
1351
+ constructor(data?: PartialMessage<AudioStreamEvent>) {
1352
+ super();
1353
+ proto2.util.initPartial(data, this);
1354
+ }
1355
+
1356
+ static readonly runtime: typeof proto2 = proto2;
1357
+ static readonly typeName = "livekit.proto.AudioStreamEvent";
1358
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1359
+ { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
1360
+ { no: 2, name: "frame_received", kind: "message", T: AudioFrameReceived, oneof: "message" },
1361
+ { no: 3, name: "eos", kind: "message", T: AudioStreamEOS, oneof: "message" },
1362
+ ]);
1363
+
1364
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamEvent {
1365
+ return new AudioStreamEvent().fromBinary(bytes, options);
1366
+ }
1367
+
1368
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamEvent {
1369
+ return new AudioStreamEvent().fromJson(jsonValue, options);
1370
+ }
1371
+
1372
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamEvent {
1373
+ return new AudioStreamEvent().fromJsonString(jsonString, options);
1374
+ }
1375
+
1376
+ static equals(a: AudioStreamEvent | PlainMessage<AudioStreamEvent> | undefined, b: AudioStreamEvent | PlainMessage<AudioStreamEvent> | undefined): boolean {
1377
+ return proto2.util.equals(AudioStreamEvent, a, b);
1378
+ }
1379
+ }
686
1380
 
687
1381
  /**
688
1382
  * @generated from message livekit.proto.AudioFrameReceived
689
1383
  */
690
- export type AudioFrameReceived = Message<"livekit.proto.AudioFrameReceived"> & {
1384
+ export class AudioFrameReceived extends Message<AudioFrameReceived> {
691
1385
  /**
692
1386
  * @generated from field: required livekit.proto.OwnedAudioFrameBuffer frame = 1;
693
1387
  */
694
1388
  frame?: OwnedAudioFrameBuffer;
695
- };
696
1389
 
697
- /**
698
- * Describes the message livekit.proto.AudioFrameReceived.
699
- * Use `create(AudioFrameReceivedSchema)` to create a new message.
700
- */
701
- export const AudioFrameReceivedSchema: GenMessage<AudioFrameReceived> = /*@__PURE__*/
702
- messageDesc(file_audio_frame, 26);
1390
+ constructor(data?: PartialMessage<AudioFrameReceived>) {
1391
+ super();
1392
+ proto2.util.initPartial(data, this);
1393
+ }
1394
+
1395
+ static readonly runtime: typeof proto2 = proto2;
1396
+ static readonly typeName = "livekit.proto.AudioFrameReceived";
1397
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1398
+ { no: 1, name: "frame", kind: "message", T: OwnedAudioFrameBuffer, req: true },
1399
+ ]);
1400
+
1401
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioFrameReceived {
1402
+ return new AudioFrameReceived().fromBinary(bytes, options);
1403
+ }
1404
+
1405
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioFrameReceived {
1406
+ return new AudioFrameReceived().fromJson(jsonValue, options);
1407
+ }
1408
+
1409
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioFrameReceived {
1410
+ return new AudioFrameReceived().fromJsonString(jsonString, options);
1411
+ }
1412
+
1413
+ static equals(a: AudioFrameReceived | PlainMessage<AudioFrameReceived> | undefined, b: AudioFrameReceived | PlainMessage<AudioFrameReceived> | undefined): boolean {
1414
+ return proto2.util.equals(AudioFrameReceived, a, b);
1415
+ }
1416
+ }
703
1417
 
704
1418
  /**
705
1419
  * @generated from message livekit.proto.AudioStreamEOS
706
1420
  */
707
- export type AudioStreamEOS = Message<"livekit.proto.AudioStreamEOS"> & {
708
- };
1421
+ export class AudioStreamEOS extends Message<AudioStreamEOS> {
1422
+ constructor(data?: PartialMessage<AudioStreamEOS>) {
1423
+ super();
1424
+ proto2.util.initPartial(data, this);
1425
+ }
709
1426
 
710
- /**
711
- * Describes the message livekit.proto.AudioStreamEOS.
712
- * Use `create(AudioStreamEOSSchema)` to create a new message.
713
- */
714
- export const AudioStreamEOSSchema: GenMessage<AudioStreamEOS> = /*@__PURE__*/
715
- messageDesc(file_audio_frame, 27);
1427
+ static readonly runtime: typeof proto2 = proto2;
1428
+ static readonly typeName = "livekit.proto.AudioStreamEOS";
1429
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1430
+ ]);
1431
+
1432
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamEOS {
1433
+ return new AudioStreamEOS().fromBinary(bytes, options);
1434
+ }
1435
+
1436
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamEOS {
1437
+ return new AudioStreamEOS().fromJson(jsonValue, options);
1438
+ }
1439
+
1440
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamEOS {
1441
+ return new AudioStreamEOS().fromJsonString(jsonString, options);
1442
+ }
1443
+
1444
+ static equals(a: AudioStreamEOS | PlainMessage<AudioStreamEOS> | undefined, b: AudioStreamEOS | PlainMessage<AudioStreamEOS> | undefined): boolean {
1445
+ return proto2.util.equals(AudioStreamEOS, a, b);
1446
+ }
1447
+ }
716
1448
 
717
1449
  /**
718
1450
  * @generated from message livekit.proto.AudioSourceOptions
719
1451
  */
720
- export type AudioSourceOptions = Message<"livekit.proto.AudioSourceOptions"> & {
1452
+ export class AudioSourceOptions extends Message<AudioSourceOptions> {
721
1453
  /**
722
1454
  * @generated from field: required bool echo_cancellation = 1;
723
1455
  */
724
- echoCancellation: boolean;
1456
+ echoCancellation?: boolean;
725
1457
 
726
1458
  /**
727
1459
  * @generated from field: required bool noise_suppression = 2;
728
1460
  */
729
- noiseSuppression: boolean;
1461
+ noiseSuppression?: boolean;
730
1462
 
731
1463
  /**
732
1464
  * @generated from field: required bool auto_gain_control = 3;
733
1465
  */
734
- autoGainControl: boolean;
735
- };
1466
+ autoGainControl?: boolean;
736
1467
 
737
- /**
738
- * Describes the message livekit.proto.AudioSourceOptions.
739
- * Use `create(AudioSourceOptionsSchema)` to create a new message.
740
- */
741
- export const AudioSourceOptionsSchema: GenMessage<AudioSourceOptions> = /*@__PURE__*/
742
- messageDesc(file_audio_frame, 28);
1468
+ constructor(data?: PartialMessage<AudioSourceOptions>) {
1469
+ super();
1470
+ proto2.util.initPartial(data, this);
1471
+ }
1472
+
1473
+ static readonly runtime: typeof proto2 = proto2;
1474
+ static readonly typeName = "livekit.proto.AudioSourceOptions";
1475
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1476
+ { no: 1, name: "echo_cancellation", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
1477
+ { no: 2, name: "noise_suppression", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
1478
+ { no: 3, name: "auto_gain_control", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
1479
+ ]);
1480
+
1481
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceOptions {
1482
+ return new AudioSourceOptions().fromBinary(bytes, options);
1483
+ }
1484
+
1485
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceOptions {
1486
+ return new AudioSourceOptions().fromJson(jsonValue, options);
1487
+ }
1488
+
1489
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceOptions {
1490
+ return new AudioSourceOptions().fromJsonString(jsonString, options);
1491
+ }
1492
+
1493
+ static equals(a: AudioSourceOptions | PlainMessage<AudioSourceOptions> | undefined, b: AudioSourceOptions | PlainMessage<AudioSourceOptions> | undefined): boolean {
1494
+ return proto2.util.equals(AudioSourceOptions, a, b);
1495
+ }
1496
+ }
743
1497
 
744
1498
  /**
745
1499
  * @generated from message livekit.proto.AudioSourceInfo
746
1500
  */
747
- export type AudioSourceInfo = Message<"livekit.proto.AudioSourceInfo"> & {
1501
+ export class AudioSourceInfo extends Message<AudioSourceInfo> {
748
1502
  /**
749
1503
  * @generated from field: required livekit.proto.AudioSourceType type = 2;
750
1504
  */
751
- type: AudioSourceType;
752
- };
1505
+ type?: AudioSourceType;
753
1506
 
754
- /**
755
- * Describes the message livekit.proto.AudioSourceInfo.
756
- * Use `create(AudioSourceInfoSchema)` to create a new message.
757
- */
758
- export const AudioSourceInfoSchema: GenMessage<AudioSourceInfo> = /*@__PURE__*/
759
- messageDesc(file_audio_frame, 29);
1507
+ constructor(data?: PartialMessage<AudioSourceInfo>) {
1508
+ super();
1509
+ proto2.util.initPartial(data, this);
1510
+ }
760
1511
 
761
- /**
762
- * @generated from message livekit.proto.OwnedAudioSource
763
- */
764
- export type OwnedAudioSource = Message<"livekit.proto.OwnedAudioSource"> & {
765
- /**
766
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
767
- */
768
- handle?: FfiOwnedHandle;
1512
+ static readonly runtime: typeof proto2 = proto2;
1513
+ static readonly typeName = "livekit.proto.AudioSourceInfo";
1514
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1515
+ { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType), req: true },
1516
+ ]);
769
1517
 
770
- /**
771
- * @generated from field: required livekit.proto.AudioSourceInfo info = 2;
772
- */
773
- info?: AudioSourceInfo;
774
- };
1518
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceInfo {
1519
+ return new AudioSourceInfo().fromBinary(bytes, options);
1520
+ }
775
1521
 
776
- /**
777
- * Describes the message livekit.proto.OwnedAudioSource.
778
- * Use `create(OwnedAudioSourceSchema)` to create a new message.
779
- */
780
- export const OwnedAudioSourceSchema: GenMessage<OwnedAudioSource> = /*@__PURE__*/
781
- messageDesc(file_audio_frame, 30);
1522
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceInfo {
1523
+ return new AudioSourceInfo().fromJson(jsonValue, options);
1524
+ }
782
1525
 
783
- /**
784
- * @generated from message livekit.proto.AudioResamplerInfo
785
- */
786
- export type AudioResamplerInfo = Message<"livekit.proto.AudioResamplerInfo"> & {
787
- };
1526
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceInfo {
1527
+ return new AudioSourceInfo().fromJsonString(jsonString, options);
1528
+ }
788
1529
 
789
- /**
790
- * Describes the message livekit.proto.AudioResamplerInfo.
791
- * Use `create(AudioResamplerInfoSchema)` to create a new message.
792
- */
793
- export const AudioResamplerInfoSchema: GenMessage<AudioResamplerInfo> = /*@__PURE__*/
794
- messageDesc(file_audio_frame, 31);
1530
+ static equals(a: AudioSourceInfo | PlainMessage<AudioSourceInfo> | undefined, b: AudioSourceInfo | PlainMessage<AudioSourceInfo> | undefined): boolean {
1531
+ return proto2.util.equals(AudioSourceInfo, a, b);
1532
+ }
1533
+ }
795
1534
 
796
1535
  /**
797
- * @generated from message livekit.proto.OwnedAudioResampler
1536
+ * @generated from message livekit.proto.OwnedAudioSource
798
1537
  */
799
- export type OwnedAudioResampler = Message<"livekit.proto.OwnedAudioResampler"> & {
1538
+ export class OwnedAudioSource extends Message<OwnedAudioSource> {
800
1539
  /**
801
1540
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
802
1541
  */
803
1542
  handle?: FfiOwnedHandle;
804
1543
 
805
1544
  /**
806
- * @generated from field: required livekit.proto.AudioResamplerInfo info = 2;
1545
+ * @generated from field: required livekit.proto.AudioSourceInfo info = 2;
807
1546
  */
808
- info?: AudioResamplerInfo;
809
- };
1547
+ info?: AudioSourceInfo;
810
1548
 
811
- /**
812
- * Describes the message livekit.proto.OwnedAudioResampler.
813
- * Use `create(OwnedAudioResamplerSchema)` to create a new message.
814
- */
815
- export const OwnedAudioResamplerSchema: GenMessage<OwnedAudioResampler> = /*@__PURE__*/
816
- messageDesc(file_audio_frame, 32);
1549
+ constructor(data?: PartialMessage<OwnedAudioSource>) {
1550
+ super();
1551
+ proto2.util.initPartial(data, this);
1552
+ }
1553
+
1554
+ static readonly runtime: typeof proto2 = proto2;
1555
+ static readonly typeName = "livekit.proto.OwnedAudioSource";
1556
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1557
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1558
+ { no: 2, name: "info", kind: "message", T: AudioSourceInfo, req: true },
1559
+ ]);
1560
+
1561
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioSource {
1562
+ return new OwnedAudioSource().fromBinary(bytes, options);
1563
+ }
1564
+
1565
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioSource {
1566
+ return new OwnedAudioSource().fromJson(jsonValue, options);
1567
+ }
1568
+
1569
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioSource {
1570
+ return new OwnedAudioSource().fromJsonString(jsonString, options);
1571
+ }
1572
+
1573
+ static equals(a: OwnedAudioSource | PlainMessage<OwnedAudioSource> | undefined, b: OwnedAudioSource | PlainMessage<OwnedAudioSource> | undefined): boolean {
1574
+ return proto2.util.equals(OwnedAudioSource, a, b);
1575
+ }
1576
+ }
817
1577
 
818
1578
  /**
819
- * @generated from message livekit.proto.SoxResamplerInfo
1579
+ * @generated from message livekit.proto.AudioResamplerInfo
820
1580
  */
821
- export type SoxResamplerInfo = Message<"livekit.proto.SoxResamplerInfo"> & {
822
- };
1581
+ export class AudioResamplerInfo extends Message<AudioResamplerInfo> {
1582
+ constructor(data?: PartialMessage<AudioResamplerInfo>) {
1583
+ super();
1584
+ proto2.util.initPartial(data, this);
1585
+ }
823
1586
 
824
- /**
825
- * Describes the message livekit.proto.SoxResamplerInfo.
826
- * Use `create(SoxResamplerInfoSchema)` to create a new message.
827
- */
828
- export const SoxResamplerInfoSchema: GenMessage<SoxResamplerInfo> = /*@__PURE__*/
829
- messageDesc(file_audio_frame, 33);
1587
+ static readonly runtime: typeof proto2 = proto2;
1588
+ static readonly typeName = "livekit.proto.AudioResamplerInfo";
1589
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1590
+ ]);
830
1591
 
831
- /**
832
- * @generated from message livekit.proto.OwnedSoxResampler
833
- */
834
- export type OwnedSoxResampler = Message<"livekit.proto.OwnedSoxResampler"> & {
835
- /**
836
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
837
- */
838
- handle?: FfiOwnedHandle;
1592
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioResamplerInfo {
1593
+ return new AudioResamplerInfo().fromBinary(bytes, options);
1594
+ }
839
1595
 
840
- /**
841
- * @generated from field: required livekit.proto.SoxResamplerInfo info = 2;
842
- */
843
- info?: SoxResamplerInfo;
844
- };
1596
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioResamplerInfo {
1597
+ return new AudioResamplerInfo().fromJson(jsonValue, options);
1598
+ }
845
1599
 
846
- /**
847
- * Describes the message livekit.proto.OwnedSoxResampler.
848
- * Use `create(OwnedSoxResamplerSchema)` to create a new message.
849
- */
850
- export const OwnedSoxResamplerSchema: GenMessage<OwnedSoxResampler> = /*@__PURE__*/
851
- messageDesc(file_audio_frame, 34);
1600
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioResamplerInfo {
1601
+ return new AudioResamplerInfo().fromJsonString(jsonString, options);
1602
+ }
852
1603
 
853
- /**
854
- * @generated from enum livekit.proto.SoxResamplerDataType
855
- */
856
- export enum SoxResamplerDataType {
857
- /**
858
- * TODO(theomonnom): support other datatypes (shouldn't really be needed)
859
- *
860
- * @generated from enum value: SOXR_DATATYPE_INT16I = 0;
861
- */
862
- SOXR_DATATYPE_INT16I = 0,
863
-
864
- /**
865
- * @generated from enum value: SOXR_DATATYPE_INT16S = 1;
866
- */
867
- SOXR_DATATYPE_INT16S = 1,
1604
+ static equals(a: AudioResamplerInfo | PlainMessage<AudioResamplerInfo> | undefined, b: AudioResamplerInfo | PlainMessage<AudioResamplerInfo> | undefined): boolean {
1605
+ return proto2.util.equals(AudioResamplerInfo, a, b);
1606
+ }
868
1607
  }
869
1608
 
870
1609
  /**
871
- * Describes the enum livekit.proto.SoxResamplerDataType.
872
- */
873
- export const SoxResamplerDataTypeSchema: GenEnum<SoxResamplerDataType> = /*@__PURE__*/
874
- enumDesc(file_audio_frame, 0);
875
-
876
- /**
877
- * @generated from enum livekit.proto.SoxQualityRecipe
1610
+ * @generated from message livekit.proto.OwnedAudioResampler
878
1611
  */
879
- export enum SoxQualityRecipe {
880
- /**
881
- * @generated from enum value: SOXR_QUALITY_QUICK = 0;
882
- */
883
- SOXR_QUALITY_QUICK = 0,
884
-
1612
+ export class OwnedAudioResampler extends Message<OwnedAudioResampler> {
885
1613
  /**
886
- * @generated from enum value: SOXR_QUALITY_LOW = 1;
887
- */
888
- SOXR_QUALITY_LOW = 1,
889
-
890
- /**
891
- * @generated from enum value: SOXR_QUALITY_MEDIUM = 2;
1614
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
892
1615
  */
893
- SOXR_QUALITY_MEDIUM = 2,
1616
+ handle?: FfiOwnedHandle;
894
1617
 
895
1618
  /**
896
- * @generated from enum value: SOXR_QUALITY_HIGH = 3;
1619
+ * @generated from field: required livekit.proto.AudioResamplerInfo info = 2;
897
1620
  */
898
- SOXR_QUALITY_HIGH = 3,
1621
+ info?: AudioResamplerInfo;
899
1622
 
900
- /**
901
- * @generated from enum value: SOXR_QUALITY_VERYHIGH = 4;
902
- */
903
- SOXR_QUALITY_VERYHIGH = 4,
1623
+ constructor(data?: PartialMessage<OwnedAudioResampler>) {
1624
+ super();
1625
+ proto2.util.initPartial(data, this);
1626
+ }
1627
+
1628
+ static readonly runtime: typeof proto2 = proto2;
1629
+ static readonly typeName = "livekit.proto.OwnedAudioResampler";
1630
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1631
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1632
+ { no: 2, name: "info", kind: "message", T: AudioResamplerInfo, req: true },
1633
+ ]);
1634
+
1635
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioResampler {
1636
+ return new OwnedAudioResampler().fromBinary(bytes, options);
1637
+ }
1638
+
1639
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioResampler {
1640
+ return new OwnedAudioResampler().fromJson(jsonValue, options);
1641
+ }
1642
+
1643
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioResampler {
1644
+ return new OwnedAudioResampler().fromJsonString(jsonString, options);
1645
+ }
1646
+
1647
+ static equals(a: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined, b: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined): boolean {
1648
+ return proto2.util.equals(OwnedAudioResampler, a, b);
1649
+ }
904
1650
  }
905
1651
 
906
1652
  /**
907
- * Describes the enum livekit.proto.SoxQualityRecipe.
908
- */
909
- export const SoxQualityRecipeSchema: GenEnum<SoxQualityRecipe> = /*@__PURE__*/
910
- enumDesc(file_audio_frame, 1);
911
-
912
- /**
913
- * @generated from enum livekit.proto.SoxFlagBits
1653
+ * @generated from message livekit.proto.SoxResamplerInfo
914
1654
  */
915
- export enum SoxFlagBits {
916
- /**
917
- * 1 << 0
918
- *
919
- * @generated from enum value: SOXR_ROLLOFF_SMALL = 0;
920
- */
921
- SOXR_ROLLOFF_SMALL = 0,
1655
+ export class SoxResamplerInfo extends Message<SoxResamplerInfo> {
1656
+ constructor(data?: PartialMessage<SoxResamplerInfo>) {
1657
+ super();
1658
+ proto2.util.initPartial(data, this);
1659
+ }
922
1660
 
923
- /**
924
- * 1 << 1
925
- *
926
- * @generated from enum value: SOXR_ROLLOFF_MEDIUM = 1;
927
- */
928
- SOXR_ROLLOFF_MEDIUM = 1,
1661
+ static readonly runtime: typeof proto2 = proto2;
1662
+ static readonly typeName = "livekit.proto.SoxResamplerInfo";
1663
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1664
+ ]);
929
1665
 
930
- /**
931
- * 1 << 2
932
- *
933
- * @generated from enum value: SOXR_ROLLOFF_NONE = 2;
934
- */
935
- SOXR_ROLLOFF_NONE = 2,
1666
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SoxResamplerInfo {
1667
+ return new SoxResamplerInfo().fromBinary(bytes, options);
1668
+ }
936
1669
 
937
- /**
938
- * 1 << 3
939
- *
940
- * @generated from enum value: SOXR_HIGH_PREC_CLOCK = 3;
941
- */
942
- SOXR_HIGH_PREC_CLOCK = 3,
1670
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SoxResamplerInfo {
1671
+ return new SoxResamplerInfo().fromJson(jsonValue, options);
1672
+ }
943
1673
 
944
- /**
945
- * 1 << 4
946
- *
947
- * @generated from enum value: SOXR_DOUBLE_PRECISION = 4;
948
- */
949
- SOXR_DOUBLE_PRECISION = 4,
1674
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SoxResamplerInfo {
1675
+ return new SoxResamplerInfo().fromJsonString(jsonString, options);
1676
+ }
950
1677
 
951
- /**
952
- * 1 << 5
953
- *
954
- * @generated from enum value: SOXR_VR = 5;
955
- */
956
- SOXR_VR = 5,
1678
+ static equals(a: SoxResamplerInfo | PlainMessage<SoxResamplerInfo> | undefined, b: SoxResamplerInfo | PlainMessage<SoxResamplerInfo> | undefined): boolean {
1679
+ return proto2.util.equals(SoxResamplerInfo, a, b);
1680
+ }
957
1681
  }
958
1682
 
959
1683
  /**
960
- * Describes the enum livekit.proto.SoxFlagBits.
961
- */
962
- export const SoxFlagBitsSchema: GenEnum<SoxFlagBits> = /*@__PURE__*/
963
- enumDesc(file_audio_frame, 2);
964
-
965
- /**
966
- * @generated from enum livekit.proto.AudioStreamType
1684
+ * @generated from message livekit.proto.OwnedSoxResampler
967
1685
  */
968
- export enum AudioStreamType {
1686
+ export class OwnedSoxResampler extends Message<OwnedSoxResampler> {
969
1687
  /**
970
- * @generated from enum value: AUDIO_STREAM_NATIVE = 0;
1688
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
971
1689
  */
972
- AUDIO_STREAM_NATIVE = 0,
1690
+ handle?: FfiOwnedHandle;
973
1691
 
974
1692
  /**
975
- * @generated from enum value: AUDIO_STREAM_HTML = 1;
1693
+ * @generated from field: required livekit.proto.SoxResamplerInfo info = 2;
976
1694
  */
977
- AUDIO_STREAM_HTML = 1,
978
- }
979
-
980
- /**
981
- * Describes the enum livekit.proto.AudioStreamType.
982
- */
983
- export const AudioStreamTypeSchema: GenEnum<AudioStreamType> = /*@__PURE__*/
984
- enumDesc(file_audio_frame, 3);
1695
+ info?: SoxResamplerInfo;
985
1696
 
986
- /**
987
- * @generated from enum livekit.proto.AudioSourceType
988
- */
989
- export enum AudioSourceType {
990
- /**
991
- * @generated from enum value: AUDIO_SOURCE_NATIVE = 0;
992
- */
993
- AUDIO_SOURCE_NATIVE = 0,
1697
+ constructor(data?: PartialMessage<OwnedSoxResampler>) {
1698
+ super();
1699
+ proto2.util.initPartial(data, this);
1700
+ }
1701
+
1702
+ static readonly runtime: typeof proto2 = proto2;
1703
+ static readonly typeName = "livekit.proto.OwnedSoxResampler";
1704
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1705
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1706
+ { no: 2, name: "info", kind: "message", T: SoxResamplerInfo, req: true },
1707
+ ]);
1708
+
1709
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedSoxResampler {
1710
+ return new OwnedSoxResampler().fromBinary(bytes, options);
1711
+ }
1712
+
1713
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedSoxResampler {
1714
+ return new OwnedSoxResampler().fromJson(jsonValue, options);
1715
+ }
1716
+
1717
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedSoxResampler {
1718
+ return new OwnedSoxResampler().fromJsonString(jsonString, options);
1719
+ }
1720
+
1721
+ static equals(a: OwnedSoxResampler | PlainMessage<OwnedSoxResampler> | undefined, b: OwnedSoxResampler | PlainMessage<OwnedSoxResampler> | undefined): boolean {
1722
+ return proto2.util.equals(OwnedSoxResampler, a, b);
1723
+ }
994
1724
  }
995
1725
 
996
- /**
997
- * Describes the enum livekit.proto.AudioSourceType.
998
- */
999
- export const AudioSourceTypeSchema: GenEnum<AudioSourceType> = /*@__PURE__*/
1000
- enumDesc(file_audio_frame, 4);
1001
-