@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.
- package/dist/audio_frame.cjs +2 -2
- package/dist/audio_frame.cjs.map +1 -1
- package/dist/audio_frame.d.cts +2 -3
- package/dist/audio_frame.d.ts +2 -3
- package/dist/audio_frame.d.ts.map +1 -1
- package/dist/audio_frame.js +3 -3
- package/dist/audio_frame.js.map +1 -1
- package/dist/audio_resampler.cjs +10 -7
- package/dist/audio_resampler.cjs.map +1 -1
- package/dist/audio_resampler.d.cts +2 -3
- package/dist/audio_resampler.d.ts +2 -3
- package/dist/audio_resampler.d.ts.map +1 -1
- package/dist/audio_resampler.js +13 -10
- package/dist/audio_resampler.js.map +1 -1
- package/dist/audio_source.cjs +6 -4
- package/dist/audio_source.cjs.map +1 -1
- package/dist/audio_source.d.cts +3 -3
- package/dist/audio_source.d.ts +3 -3
- package/dist/audio_source.d.ts.map +1 -1
- package/dist/audio_source.js +9 -7
- package/dist/audio_source.js.map +1 -1
- package/dist/audio_stream.cjs +1 -2
- package/dist/audio_stream.cjs.map +1 -1
- package/dist/audio_stream.d.cts +2 -3
- package/dist/audio_stream.d.ts +2 -3
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +2 -3
- package/dist/audio_stream.js.map +1 -1
- package/dist/e2ee.cjs +19 -20
- package/dist/e2ee.cjs.map +1 -1
- package/dist/e2ee.d.cts +5 -6
- package/dist/e2ee.d.ts +5 -6
- package/dist/e2ee.d.ts.map +1 -1
- package/dist/e2ee.js +29 -30
- package/dist/e2ee.js.map +1 -1
- package/dist/ffi_client.cjs +6 -5
- package/dist/ffi_client.cjs.map +1 -1
- package/dist/ffi_client.d.cts +10 -10
- package/dist/ffi_client.d.ts +10 -10
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +6 -10
- package/dist/ffi_client.js.map +1 -1
- package/dist/index.cjs +16 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -35
- package/dist/index.d.ts +6 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -46
- package/dist/index.js.map +1 -1
- package/dist/napi/native.d.cjs.map +1 -1
- package/dist/napi/native.d.ts +5 -5
- package/dist/native.d.ts +5 -5
- package/dist/participant.cjs +60 -36
- package/dist/participant.cjs.map +1 -1
- package/dist/participant.d.cts +11 -11
- package/dist/participant.d.ts +11 -11
- package/dist/participant.d.ts.map +1 -1
- package/dist/participant.js +78 -52
- package/dist/participant.js.map +1 -1
- package/dist/proto/audio_frame_pb.cjs +977 -125
- package/dist/proto/audio_frame_pb.cjs.map +1 -1
- package/dist/proto/audio_frame_pb.d.cts +502 -417
- package/dist/proto/audio_frame_pb.d.ts +502 -417
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +943 -85
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/e2ee_pb.cjs +700 -85
- package/dist/proto/e2ee_pb.cjs.map +1 -1
- package/dist/proto/e2ee_pb.d.cts +331 -263
- package/dist/proto/e2ee_pb.d.ts +331 -263
- package/dist/proto/e2ee_pb.d.ts.map +1 -1
- package/dist/proto/e2ee_pb.js +675 -57
- package/dist/proto/e2ee_pb.js.map +1 -1
- package/dist/proto/ffi_pb.cjs +369 -36
- package/dist/proto/ffi_pb.cjs.map +1 -1
- package/dist/proto/ffi_pb.d.cts +156 -109
- package/dist/proto/ffi_pb.d.ts +156 -109
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +364 -29
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/handle_pb.cjs +27 -7
- package/dist/proto/handle_pb.cjs.map +1 -1
- package/dist/proto/handle_pb.d.cts +13 -15
- package/dist/proto/handle_pb.d.ts +13 -15
- package/dist/proto/handle_pb.d.ts.map +1 -1
- package/dist/proto/handle_pb.js +26 -5
- package/dist/proto/handle_pb.js.map +1 -1
- package/dist/proto/participant_pb.cjs +112 -15
- package/dist/proto/participant_pb.cjs.map +1 -1
- package/dist/proto/participant_pb.d.cts +140 -52
- package/dist/proto/participant_pb.d.ts +140 -52
- package/dist/proto/participant_pb.d.ts.map +1 -1
- package/dist/proto/participant_pb.js +109 -11
- package/dist/proto/participant_pb.js.map +1 -1
- package/dist/proto/room_pb.cjs +2693 -302
- package/dist/proto/room_pb.cjs.map +1 -1
- package/dist/proto/room_pb.d.cts +1265 -862
- package/dist/proto/room_pb.d.ts +1265 -862
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +2603 -210
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/rpc_pb.cjs +302 -37
- package/dist/proto/rpc_pb.cjs.map +1 -1
- package/dist/proto/rpc_pb.d.cts +138 -108
- package/dist/proto/rpc_pb.d.ts +138 -108
- package/dist/proto/rpc_pb.d.ts.map +1 -1
- package/dist/proto/rpc_pb.js +291 -25
- package/dist/proto/rpc_pb.js.map +1 -1
- package/dist/proto/stats_pb.cjs +1253 -139
- package/dist/proto/stats_pb.cjs.map +1 -1
- package/dist/proto/stats_pb.d.cts +803 -692
- package/dist/proto/stats_pb.d.ts +803 -692
- package/dist/proto/stats_pb.d.ts.map +1 -1
- package/dist/proto/stats_pb.js +1216 -93
- package/dist/proto/stats_pb.js.map +1 -1
- package/dist/proto/track_pb.cjs +462 -64
- package/dist/proto/track_pb.cjs.map +1 -1
- package/dist/proto/track_pb.d.cts +250 -218
- package/dist/proto/track_pb.d.ts +250 -218
- package/dist/proto/track_pb.d.ts.map +1 -1
- package/dist/proto/track_pb.js +447 -45
- package/dist/proto/track_pb.js.map +1 -1
- package/dist/proto/track_publication_pb.cjs +130 -0
- package/dist/proto/track_publication_pb.cjs.map +1 -0
- package/dist/proto/track_publication_pb.d.cts +80 -0
- package/dist/proto/track_publication_pb.d.ts +80 -0
- package/dist/proto/track_publication_pb.d.ts.map +1 -0
- package/dist/proto/track_publication_pb.js +103 -0
- package/dist/proto/track_publication_pb.js.map +1 -0
- package/dist/proto/video_frame_pb.cjs +648 -88
- package/dist/proto/video_frame_pb.cjs.map +1 -1
- package/dist/proto/video_frame_pb.d.cts +371 -328
- package/dist/proto/video_frame_pb.d.ts +371 -328
- package/dist/proto/video_frame_pb.d.ts.map +1 -1
- package/dist/proto/video_frame_pb.js +626 -60
- package/dist/proto/video_frame_pb.js.map +1 -1
- package/dist/room.cjs +85 -125
- package/dist/room.cjs.map +1 -1
- package/dist/room.d.cts +6 -17
- package/dist/room.d.ts +6 -17
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +85 -123
- package/dist/room.js.map +1 -1
- package/dist/rpc.cjs.map +1 -1
- package/dist/rpc.d.cts +0 -1
- package/dist/rpc.d.ts +0 -1
- package/dist/rpc.js.map +1 -1
- package/dist/track.cjs +12 -8
- package/dist/track.cjs.map +1 -1
- package/dist/track.d.cts +8 -9
- package/dist/track.d.ts +8 -9
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +13 -9
- package/dist/track.js.map +1 -1
- package/dist/track_publication.cjs +21 -12
- package/dist/track_publication.cjs.map +1 -1
- package/dist/track_publication.d.cts +12 -13
- package/dist/track_publication.d.ts +12 -13
- package/dist/track_publication.d.ts.map +1 -1
- package/dist/track_publication.js +22 -13
- package/dist/track_publication.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/video_frame.cjs +26 -45
- package/dist/video_frame.cjs.map +1 -1
- package/dist/video_frame.d.cts +2 -3
- package/dist/video_frame.d.ts +2 -3
- package/dist/video_frame.d.ts.map +1 -1
- package/dist/video_frame.js +29 -48
- package/dist/video_frame.js.map +1 -1
- package/dist/video_source.cjs +7 -4
- package/dist/video_source.cjs.map +1 -1
- package/dist/video_source.d.cts +4 -4
- package/dist/video_source.d.ts +4 -4
- package/dist/video_source.d.ts.map +1 -1
- package/dist/video_source.js +9 -6
- package/dist/video_source.js.map +1 -1
- package/dist/video_stream.cjs +16 -5
- package/dist/video_stream.cjs.map +1 -1
- package/dist/video_stream.d.cts +3 -4
- package/dist/video_stream.d.ts +3 -4
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +17 -6
- package/dist/video_stream.js.map +1 -1
- package/package.json +9 -9
- package/src/audio_frame.ts +10 -10
- package/src/audio_resampler.ts +15 -13
- package/src/audio_source.ts +11 -8
- package/src/audio_stream.ts +3 -4
- package/src/e2ee.ts +41 -42
- package/src/ffi_client.ts +8 -16
- package/src/index.ts +5 -68
- package/src/napi/native.d.ts +5 -5
- package/src/participant.ts +102 -73
- package/src/proto/audio_frame_pb.ts +1220 -496
- package/src/proto/e2ee_pb.ts +858 -337
- package/src/proto/ffi_pb.ts +442 -135
- package/src/proto/handle_pb.ts +33 -19
- package/src/proto/participant_pb.ts +225 -60
- package/src/proto/room_pb.ts +3149 -1013
- package/src/proto/rpc_pb.ts +358 -129
- package/src/proto/stats_pb.ts +1891 -877
- package/src/proto/track_pb.ts +587 -253
- package/src/proto/track_publication_pb.ts +180 -0
- package/src/proto/video_frame_pb.ts +861 -394
- package/src/room.ts +137 -189
- package/src/rpc.ts +1 -1
- package/src/track.ts +16 -17
- package/src/track_publication.ts +25 -26
- package/src/version.ts +1 -1
- package/src/video_frame.ts +48 -72
- package/src/video_source.ts +11 -8
- package/src/video_stream.ts +18 -8
|
@@ -18,99 +18,60 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var audio_frame_pb_exports = {};
|
|
20
20
|
__export(audio_frame_pb_exports, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
AudioFrameBufferInfo: () => AudioFrameBufferInfo,
|
|
22
|
+
AudioFrameReceived: () => AudioFrameReceived,
|
|
23
|
+
AudioResamplerInfo: () => AudioResamplerInfo,
|
|
24
|
+
AudioSourceInfo: () => AudioSourceInfo,
|
|
25
|
+
AudioSourceOptions: () => AudioSourceOptions,
|
|
26
26
|
AudioSourceType: () => AudioSourceType,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
AudioStreamInfoSchema: () => AudioStreamInfoSchema,
|
|
27
|
+
AudioStreamEOS: () => AudioStreamEOS,
|
|
28
|
+
AudioStreamEvent: () => AudioStreamEvent,
|
|
29
|
+
AudioStreamFromParticipantRequest: () => AudioStreamFromParticipantRequest,
|
|
30
|
+
AudioStreamFromParticipantResponse: () => AudioStreamFromParticipantResponse,
|
|
31
|
+
AudioStreamInfo: () => AudioStreamInfo,
|
|
33
32
|
AudioStreamType: () => AudioStreamType,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
RemixAndResampleResponseSchema: () => RemixAndResampleResponseSchema,
|
|
33
|
+
CaptureAudioFrameCallback: () => CaptureAudioFrameCallback,
|
|
34
|
+
CaptureAudioFrameRequest: () => CaptureAudioFrameRequest,
|
|
35
|
+
CaptureAudioFrameResponse: () => CaptureAudioFrameResponse,
|
|
36
|
+
ClearAudioBufferRequest: () => ClearAudioBufferRequest,
|
|
37
|
+
ClearAudioBufferResponse: () => ClearAudioBufferResponse,
|
|
38
|
+
FlushSoxResamplerRequest: () => FlushSoxResamplerRequest,
|
|
39
|
+
FlushSoxResamplerResponse: () => FlushSoxResamplerResponse,
|
|
40
|
+
NewAudioResamplerRequest: () => NewAudioResamplerRequest,
|
|
41
|
+
NewAudioResamplerResponse: () => NewAudioResamplerResponse,
|
|
42
|
+
NewAudioSourceRequest: () => NewAudioSourceRequest,
|
|
43
|
+
NewAudioSourceResponse: () => NewAudioSourceResponse,
|
|
44
|
+
NewAudioStreamRequest: () => NewAudioStreamRequest,
|
|
45
|
+
NewAudioStreamResponse: () => NewAudioStreamResponse,
|
|
46
|
+
NewSoxResamplerRequest: () => NewSoxResamplerRequest,
|
|
47
|
+
NewSoxResamplerResponse: () => NewSoxResamplerResponse,
|
|
48
|
+
OwnedAudioFrameBuffer: () => OwnedAudioFrameBuffer,
|
|
49
|
+
OwnedAudioResampler: () => OwnedAudioResampler,
|
|
50
|
+
OwnedAudioSource: () => OwnedAudioSource,
|
|
51
|
+
OwnedAudioStream: () => OwnedAudioStream,
|
|
52
|
+
OwnedSoxResampler: () => OwnedSoxResampler,
|
|
53
|
+
PushSoxResamplerRequest: () => PushSoxResamplerRequest,
|
|
54
|
+
PushSoxResamplerResponse: () => PushSoxResamplerResponse,
|
|
55
|
+
RemixAndResampleRequest: () => RemixAndResampleRequest,
|
|
56
|
+
RemixAndResampleResponse: () => RemixAndResampleResponse,
|
|
59
57
|
SoxFlagBits: () => SoxFlagBits,
|
|
60
|
-
SoxFlagBitsSchema: () => SoxFlagBitsSchema,
|
|
61
58
|
SoxQualityRecipe: () => SoxQualityRecipe,
|
|
62
|
-
SoxQualityRecipeSchema: () => SoxQualityRecipeSchema,
|
|
63
59
|
SoxResamplerDataType: () => SoxResamplerDataType,
|
|
64
|
-
|
|
65
|
-
SoxResamplerInfoSchema: () => SoxResamplerInfoSchema,
|
|
66
|
-
file_audio_frame: () => file_audio_frame
|
|
60
|
+
SoxResamplerInfo: () => SoxResamplerInfo
|
|
67
61
|
});
|
|
68
62
|
module.exports = __toCommonJS(audio_frame_pb_exports);
|
|
69
|
-
var
|
|
70
|
-
var import_handle_pb = require("./handle_pb.cjs");
|
|
63
|
+
var import_protobuf = require("@bufbuild/protobuf");
|
|
71
64
|
var import_track_pb = require("./track_pb.cjs");
|
|
72
|
-
|
|
73
|
-
const NewAudioStreamRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 0);
|
|
74
|
-
const NewAudioStreamResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 1);
|
|
75
|
-
const AudioStreamFromParticipantRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 2);
|
|
76
|
-
const AudioStreamFromParticipantResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 3);
|
|
77
|
-
const NewAudioSourceRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 4);
|
|
78
|
-
const NewAudioSourceResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 5);
|
|
79
|
-
const CaptureAudioFrameRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 6);
|
|
80
|
-
const CaptureAudioFrameResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 7);
|
|
81
|
-
const CaptureAudioFrameCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 8);
|
|
82
|
-
const ClearAudioBufferRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 9);
|
|
83
|
-
const ClearAudioBufferResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 10);
|
|
84
|
-
const NewAudioResamplerRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 11);
|
|
85
|
-
const NewAudioResamplerResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 12);
|
|
86
|
-
const RemixAndResampleRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 13);
|
|
87
|
-
const RemixAndResampleResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 14);
|
|
88
|
-
const NewSoxResamplerRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 15);
|
|
89
|
-
const NewSoxResamplerResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 16);
|
|
90
|
-
const PushSoxResamplerRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 17);
|
|
91
|
-
const PushSoxResamplerResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 18);
|
|
92
|
-
const FlushSoxResamplerRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 19);
|
|
93
|
-
const FlushSoxResamplerResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 20);
|
|
94
|
-
const AudioFrameBufferInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 21);
|
|
95
|
-
const OwnedAudioFrameBufferSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 22);
|
|
96
|
-
const AudioStreamInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 23);
|
|
97
|
-
const OwnedAudioStreamSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 24);
|
|
98
|
-
const AudioStreamEventSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 25);
|
|
99
|
-
const AudioFrameReceivedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 26);
|
|
100
|
-
const AudioStreamEOSSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 27);
|
|
101
|
-
const AudioSourceOptionsSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 28);
|
|
102
|
-
const AudioSourceInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 29);
|
|
103
|
-
const OwnedAudioSourceSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 30);
|
|
104
|
-
const AudioResamplerInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 31);
|
|
105
|
-
const OwnedAudioResamplerSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 32);
|
|
106
|
-
const SoxResamplerInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 33);
|
|
107
|
-
const OwnedSoxResamplerSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 34);
|
|
65
|
+
var import_handle_pb = require("./handle_pb.cjs");
|
|
108
66
|
var SoxResamplerDataType = /* @__PURE__ */ ((SoxResamplerDataType2) => {
|
|
109
67
|
SoxResamplerDataType2[SoxResamplerDataType2["SOXR_DATATYPE_INT16I"] = 0] = "SOXR_DATATYPE_INT16I";
|
|
110
68
|
SoxResamplerDataType2[SoxResamplerDataType2["SOXR_DATATYPE_INT16S"] = 1] = "SOXR_DATATYPE_INT16S";
|
|
111
69
|
return SoxResamplerDataType2;
|
|
112
70
|
})(SoxResamplerDataType || {});
|
|
113
|
-
|
|
71
|
+
import_protobuf.proto2.util.setEnumType(SoxResamplerDataType, "livekit.proto.SoxResamplerDataType", [
|
|
72
|
+
{ no: 0, name: "SOXR_DATATYPE_INT16I" },
|
|
73
|
+
{ no: 1, name: "SOXR_DATATYPE_INT16S" }
|
|
74
|
+
]);
|
|
114
75
|
var SoxQualityRecipe = /* @__PURE__ */ ((SoxQualityRecipe2) => {
|
|
115
76
|
SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_QUICK"] = 0] = "SOXR_QUALITY_QUICK";
|
|
116
77
|
SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_LOW"] = 1] = "SOXR_QUALITY_LOW";
|
|
@@ -119,7 +80,13 @@ var SoxQualityRecipe = /* @__PURE__ */ ((SoxQualityRecipe2) => {
|
|
|
119
80
|
SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_VERYHIGH"] = 4] = "SOXR_QUALITY_VERYHIGH";
|
|
120
81
|
return SoxQualityRecipe2;
|
|
121
82
|
})(SoxQualityRecipe || {});
|
|
122
|
-
|
|
83
|
+
import_protobuf.proto2.util.setEnumType(SoxQualityRecipe, "livekit.proto.SoxQualityRecipe", [
|
|
84
|
+
{ no: 0, name: "SOXR_QUALITY_QUICK" },
|
|
85
|
+
{ no: 1, name: "SOXR_QUALITY_LOW" },
|
|
86
|
+
{ no: 2, name: "SOXR_QUALITY_MEDIUM" },
|
|
87
|
+
{ no: 3, name: "SOXR_QUALITY_HIGH" },
|
|
88
|
+
{ no: 4, name: "SOXR_QUALITY_VERYHIGH" }
|
|
89
|
+
]);
|
|
123
90
|
var SoxFlagBits = /* @__PURE__ */ ((SoxFlagBits2) => {
|
|
124
91
|
SoxFlagBits2[SoxFlagBits2["SOXR_ROLLOFF_SMALL"] = 0] = "SOXR_ROLLOFF_SMALL";
|
|
125
92
|
SoxFlagBits2[SoxFlagBits2["SOXR_ROLLOFF_MEDIUM"] = 1] = "SOXR_ROLLOFF_MEDIUM";
|
|
@@ -129,65 +96,950 @@ var SoxFlagBits = /* @__PURE__ */ ((SoxFlagBits2) => {
|
|
|
129
96
|
SoxFlagBits2[SoxFlagBits2["SOXR_VR"] = 5] = "SOXR_VR";
|
|
130
97
|
return SoxFlagBits2;
|
|
131
98
|
})(SoxFlagBits || {});
|
|
132
|
-
|
|
99
|
+
import_protobuf.proto2.util.setEnumType(SoxFlagBits, "livekit.proto.SoxFlagBits", [
|
|
100
|
+
{ no: 0, name: "SOXR_ROLLOFF_SMALL" },
|
|
101
|
+
{ no: 1, name: "SOXR_ROLLOFF_MEDIUM" },
|
|
102
|
+
{ no: 2, name: "SOXR_ROLLOFF_NONE" },
|
|
103
|
+
{ no: 3, name: "SOXR_HIGH_PREC_CLOCK" },
|
|
104
|
+
{ no: 4, name: "SOXR_DOUBLE_PRECISION" },
|
|
105
|
+
{ no: 5, name: "SOXR_VR" }
|
|
106
|
+
]);
|
|
133
107
|
var AudioStreamType = /* @__PURE__ */ ((AudioStreamType2) => {
|
|
134
108
|
AudioStreamType2[AudioStreamType2["AUDIO_STREAM_NATIVE"] = 0] = "AUDIO_STREAM_NATIVE";
|
|
135
109
|
AudioStreamType2[AudioStreamType2["AUDIO_STREAM_HTML"] = 1] = "AUDIO_STREAM_HTML";
|
|
136
110
|
return AudioStreamType2;
|
|
137
111
|
})(AudioStreamType || {});
|
|
138
|
-
|
|
112
|
+
import_protobuf.proto2.util.setEnumType(AudioStreamType, "livekit.proto.AudioStreamType", [
|
|
113
|
+
{ no: 0, name: "AUDIO_STREAM_NATIVE" },
|
|
114
|
+
{ no: 1, name: "AUDIO_STREAM_HTML" }
|
|
115
|
+
]);
|
|
139
116
|
var AudioSourceType = /* @__PURE__ */ ((AudioSourceType2) => {
|
|
140
117
|
AudioSourceType2[AudioSourceType2["AUDIO_SOURCE_NATIVE"] = 0] = "AUDIO_SOURCE_NATIVE";
|
|
141
118
|
return AudioSourceType2;
|
|
142
119
|
})(AudioSourceType || {});
|
|
143
|
-
|
|
120
|
+
import_protobuf.proto2.util.setEnumType(AudioSourceType, "livekit.proto.AudioSourceType", [
|
|
121
|
+
{ no: 0, name: "AUDIO_SOURCE_NATIVE" }
|
|
122
|
+
]);
|
|
123
|
+
const _NewAudioStreamRequest = class _NewAudioStreamRequest extends import_protobuf.Message {
|
|
124
|
+
constructor(data) {
|
|
125
|
+
super();
|
|
126
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
127
|
+
}
|
|
128
|
+
static fromBinary(bytes, options) {
|
|
129
|
+
return new _NewAudioStreamRequest().fromBinary(bytes, options);
|
|
130
|
+
}
|
|
131
|
+
static fromJson(jsonValue, options) {
|
|
132
|
+
return new _NewAudioStreamRequest().fromJson(jsonValue, options);
|
|
133
|
+
}
|
|
134
|
+
static fromJsonString(jsonString, options) {
|
|
135
|
+
return new _NewAudioStreamRequest().fromJsonString(jsonString, options);
|
|
136
|
+
}
|
|
137
|
+
static equals(a, b) {
|
|
138
|
+
return import_protobuf.proto2.util.equals(_NewAudioStreamRequest, a, b);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
_NewAudioStreamRequest.runtime = import_protobuf.proto2;
|
|
142
|
+
_NewAudioStreamRequest.typeName = "livekit.proto.NewAudioStreamRequest";
|
|
143
|
+
_NewAudioStreamRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
144
|
+
{ no: 1, name: "track_handle", kind: "scalar", T: 4, req: true },
|
|
145
|
+
{ no: 2, name: "type", kind: "enum", T: import_protobuf.proto2.getEnumType(AudioStreamType), req: true },
|
|
146
|
+
{ no: 3, name: "sample_rate", kind: "scalar", T: 13, opt: true },
|
|
147
|
+
{ no: 4, name: "num_channels", kind: "scalar", T: 13, opt: true }
|
|
148
|
+
]);
|
|
149
|
+
let NewAudioStreamRequest = _NewAudioStreamRequest;
|
|
150
|
+
const _NewAudioStreamResponse = class _NewAudioStreamResponse extends import_protobuf.Message {
|
|
151
|
+
constructor(data) {
|
|
152
|
+
super();
|
|
153
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
154
|
+
}
|
|
155
|
+
static fromBinary(bytes, options) {
|
|
156
|
+
return new _NewAudioStreamResponse().fromBinary(bytes, options);
|
|
157
|
+
}
|
|
158
|
+
static fromJson(jsonValue, options) {
|
|
159
|
+
return new _NewAudioStreamResponse().fromJson(jsonValue, options);
|
|
160
|
+
}
|
|
161
|
+
static fromJsonString(jsonString, options) {
|
|
162
|
+
return new _NewAudioStreamResponse().fromJsonString(jsonString, options);
|
|
163
|
+
}
|
|
164
|
+
static equals(a, b) {
|
|
165
|
+
return import_protobuf.proto2.util.equals(_NewAudioStreamResponse, a, b);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
_NewAudioStreamResponse.runtime = import_protobuf.proto2;
|
|
169
|
+
_NewAudioStreamResponse.typeName = "livekit.proto.NewAudioStreamResponse";
|
|
170
|
+
_NewAudioStreamResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
171
|
+
{ no: 1, name: "stream", kind: "message", T: OwnedAudioStream, req: true }
|
|
172
|
+
]);
|
|
173
|
+
let NewAudioStreamResponse = _NewAudioStreamResponse;
|
|
174
|
+
const _AudioStreamFromParticipantRequest = class _AudioStreamFromParticipantRequest extends import_protobuf.Message {
|
|
175
|
+
constructor(data) {
|
|
176
|
+
super();
|
|
177
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
178
|
+
}
|
|
179
|
+
static fromBinary(bytes, options) {
|
|
180
|
+
return new _AudioStreamFromParticipantRequest().fromBinary(bytes, options);
|
|
181
|
+
}
|
|
182
|
+
static fromJson(jsonValue, options) {
|
|
183
|
+
return new _AudioStreamFromParticipantRequest().fromJson(jsonValue, options);
|
|
184
|
+
}
|
|
185
|
+
static fromJsonString(jsonString, options) {
|
|
186
|
+
return new _AudioStreamFromParticipantRequest().fromJsonString(jsonString, options);
|
|
187
|
+
}
|
|
188
|
+
static equals(a, b) {
|
|
189
|
+
return import_protobuf.proto2.util.equals(_AudioStreamFromParticipantRequest, a, b);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
_AudioStreamFromParticipantRequest.runtime = import_protobuf.proto2;
|
|
193
|
+
_AudioStreamFromParticipantRequest.typeName = "livekit.proto.AudioStreamFromParticipantRequest";
|
|
194
|
+
_AudioStreamFromParticipantRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
195
|
+
{ no: 1, name: "participant_handle", kind: "scalar", T: 4, req: true },
|
|
196
|
+
{ no: 2, name: "type", kind: "enum", T: import_protobuf.proto2.getEnumType(AudioStreamType), req: true },
|
|
197
|
+
{ no: 3, name: "track_source", kind: "enum", T: import_protobuf.proto2.getEnumType(import_track_pb.TrackSource), opt: true },
|
|
198
|
+
{ no: 5, name: "sample_rate", kind: "scalar", T: 13, opt: true },
|
|
199
|
+
{ no: 6, name: "num_channels", kind: "scalar", T: 13, opt: true }
|
|
200
|
+
]);
|
|
201
|
+
let AudioStreamFromParticipantRequest = _AudioStreamFromParticipantRequest;
|
|
202
|
+
const _AudioStreamFromParticipantResponse = class _AudioStreamFromParticipantResponse extends import_protobuf.Message {
|
|
203
|
+
constructor(data) {
|
|
204
|
+
super();
|
|
205
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
206
|
+
}
|
|
207
|
+
static fromBinary(bytes, options) {
|
|
208
|
+
return new _AudioStreamFromParticipantResponse().fromBinary(bytes, options);
|
|
209
|
+
}
|
|
210
|
+
static fromJson(jsonValue, options) {
|
|
211
|
+
return new _AudioStreamFromParticipantResponse().fromJson(jsonValue, options);
|
|
212
|
+
}
|
|
213
|
+
static fromJsonString(jsonString, options) {
|
|
214
|
+
return new _AudioStreamFromParticipantResponse().fromJsonString(jsonString, options);
|
|
215
|
+
}
|
|
216
|
+
static equals(a, b) {
|
|
217
|
+
return import_protobuf.proto2.util.equals(_AudioStreamFromParticipantResponse, a, b);
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
_AudioStreamFromParticipantResponse.runtime = import_protobuf.proto2;
|
|
221
|
+
_AudioStreamFromParticipantResponse.typeName = "livekit.proto.AudioStreamFromParticipantResponse";
|
|
222
|
+
_AudioStreamFromParticipantResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
223
|
+
{ no: 1, name: "stream", kind: "message", T: OwnedAudioStream, req: true }
|
|
224
|
+
]);
|
|
225
|
+
let AudioStreamFromParticipantResponse = _AudioStreamFromParticipantResponse;
|
|
226
|
+
const _NewAudioSourceRequest = class _NewAudioSourceRequest extends import_protobuf.Message {
|
|
227
|
+
constructor(data) {
|
|
228
|
+
super();
|
|
229
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
230
|
+
}
|
|
231
|
+
static fromBinary(bytes, options) {
|
|
232
|
+
return new _NewAudioSourceRequest().fromBinary(bytes, options);
|
|
233
|
+
}
|
|
234
|
+
static fromJson(jsonValue, options) {
|
|
235
|
+
return new _NewAudioSourceRequest().fromJson(jsonValue, options);
|
|
236
|
+
}
|
|
237
|
+
static fromJsonString(jsonString, options) {
|
|
238
|
+
return new _NewAudioSourceRequest().fromJsonString(jsonString, options);
|
|
239
|
+
}
|
|
240
|
+
static equals(a, b) {
|
|
241
|
+
return import_protobuf.proto2.util.equals(_NewAudioSourceRequest, a, b);
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
_NewAudioSourceRequest.runtime = import_protobuf.proto2;
|
|
245
|
+
_NewAudioSourceRequest.typeName = "livekit.proto.NewAudioSourceRequest";
|
|
246
|
+
_NewAudioSourceRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
247
|
+
{ no: 1, name: "type", kind: "enum", T: import_protobuf.proto2.getEnumType(AudioSourceType), req: true },
|
|
248
|
+
{ no: 2, name: "options", kind: "message", T: AudioSourceOptions, opt: true },
|
|
249
|
+
{ no: 3, name: "sample_rate", kind: "scalar", T: 13, req: true },
|
|
250
|
+
{ no: 4, name: "num_channels", kind: "scalar", T: 13, req: true },
|
|
251
|
+
{ no: 5, name: "queue_size_ms", kind: "scalar", T: 13, opt: true }
|
|
252
|
+
]);
|
|
253
|
+
let NewAudioSourceRequest = _NewAudioSourceRequest;
|
|
254
|
+
const _NewAudioSourceResponse = class _NewAudioSourceResponse extends import_protobuf.Message {
|
|
255
|
+
constructor(data) {
|
|
256
|
+
super();
|
|
257
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
258
|
+
}
|
|
259
|
+
static fromBinary(bytes, options) {
|
|
260
|
+
return new _NewAudioSourceResponse().fromBinary(bytes, options);
|
|
261
|
+
}
|
|
262
|
+
static fromJson(jsonValue, options) {
|
|
263
|
+
return new _NewAudioSourceResponse().fromJson(jsonValue, options);
|
|
264
|
+
}
|
|
265
|
+
static fromJsonString(jsonString, options) {
|
|
266
|
+
return new _NewAudioSourceResponse().fromJsonString(jsonString, options);
|
|
267
|
+
}
|
|
268
|
+
static equals(a, b) {
|
|
269
|
+
return import_protobuf.proto2.util.equals(_NewAudioSourceResponse, a, b);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
_NewAudioSourceResponse.runtime = import_protobuf.proto2;
|
|
273
|
+
_NewAudioSourceResponse.typeName = "livekit.proto.NewAudioSourceResponse";
|
|
274
|
+
_NewAudioSourceResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
275
|
+
{ no: 1, name: "source", kind: "message", T: OwnedAudioSource, req: true }
|
|
276
|
+
]);
|
|
277
|
+
let NewAudioSourceResponse = _NewAudioSourceResponse;
|
|
278
|
+
const _CaptureAudioFrameRequest = class _CaptureAudioFrameRequest extends import_protobuf.Message {
|
|
279
|
+
constructor(data) {
|
|
280
|
+
super();
|
|
281
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
282
|
+
}
|
|
283
|
+
static fromBinary(bytes, options) {
|
|
284
|
+
return new _CaptureAudioFrameRequest().fromBinary(bytes, options);
|
|
285
|
+
}
|
|
286
|
+
static fromJson(jsonValue, options) {
|
|
287
|
+
return new _CaptureAudioFrameRequest().fromJson(jsonValue, options);
|
|
288
|
+
}
|
|
289
|
+
static fromJsonString(jsonString, options) {
|
|
290
|
+
return new _CaptureAudioFrameRequest().fromJsonString(jsonString, options);
|
|
291
|
+
}
|
|
292
|
+
static equals(a, b) {
|
|
293
|
+
return import_protobuf.proto2.util.equals(_CaptureAudioFrameRequest, a, b);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
_CaptureAudioFrameRequest.runtime = import_protobuf.proto2;
|
|
297
|
+
_CaptureAudioFrameRequest.typeName = "livekit.proto.CaptureAudioFrameRequest";
|
|
298
|
+
_CaptureAudioFrameRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
299
|
+
{ no: 1, name: "source_handle", kind: "scalar", T: 4, req: true },
|
|
300
|
+
{ no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo, req: true }
|
|
301
|
+
]);
|
|
302
|
+
let CaptureAudioFrameRequest = _CaptureAudioFrameRequest;
|
|
303
|
+
const _CaptureAudioFrameResponse = class _CaptureAudioFrameResponse extends import_protobuf.Message {
|
|
304
|
+
constructor(data) {
|
|
305
|
+
super();
|
|
306
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
307
|
+
}
|
|
308
|
+
static fromBinary(bytes, options) {
|
|
309
|
+
return new _CaptureAudioFrameResponse().fromBinary(bytes, options);
|
|
310
|
+
}
|
|
311
|
+
static fromJson(jsonValue, options) {
|
|
312
|
+
return new _CaptureAudioFrameResponse().fromJson(jsonValue, options);
|
|
313
|
+
}
|
|
314
|
+
static fromJsonString(jsonString, options) {
|
|
315
|
+
return new _CaptureAudioFrameResponse().fromJsonString(jsonString, options);
|
|
316
|
+
}
|
|
317
|
+
static equals(a, b) {
|
|
318
|
+
return import_protobuf.proto2.util.equals(_CaptureAudioFrameResponse, a, b);
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
_CaptureAudioFrameResponse.runtime = import_protobuf.proto2;
|
|
322
|
+
_CaptureAudioFrameResponse.typeName = "livekit.proto.CaptureAudioFrameResponse";
|
|
323
|
+
_CaptureAudioFrameResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
324
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
|
|
325
|
+
]);
|
|
326
|
+
let CaptureAudioFrameResponse = _CaptureAudioFrameResponse;
|
|
327
|
+
const _CaptureAudioFrameCallback = class _CaptureAudioFrameCallback extends import_protobuf.Message {
|
|
328
|
+
constructor(data) {
|
|
329
|
+
super();
|
|
330
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
331
|
+
}
|
|
332
|
+
static fromBinary(bytes, options) {
|
|
333
|
+
return new _CaptureAudioFrameCallback().fromBinary(bytes, options);
|
|
334
|
+
}
|
|
335
|
+
static fromJson(jsonValue, options) {
|
|
336
|
+
return new _CaptureAudioFrameCallback().fromJson(jsonValue, options);
|
|
337
|
+
}
|
|
338
|
+
static fromJsonString(jsonString, options) {
|
|
339
|
+
return new _CaptureAudioFrameCallback().fromJsonString(jsonString, options);
|
|
340
|
+
}
|
|
341
|
+
static equals(a, b) {
|
|
342
|
+
return import_protobuf.proto2.util.equals(_CaptureAudioFrameCallback, a, b);
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
_CaptureAudioFrameCallback.runtime = import_protobuf.proto2;
|
|
346
|
+
_CaptureAudioFrameCallback.typeName = "livekit.proto.CaptureAudioFrameCallback";
|
|
347
|
+
_CaptureAudioFrameCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
348
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
|
|
349
|
+
{ no: 2, name: "error", kind: "scalar", T: 9, opt: true }
|
|
350
|
+
]);
|
|
351
|
+
let CaptureAudioFrameCallback = _CaptureAudioFrameCallback;
|
|
352
|
+
const _ClearAudioBufferRequest = class _ClearAudioBufferRequest extends import_protobuf.Message {
|
|
353
|
+
constructor(data) {
|
|
354
|
+
super();
|
|
355
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
356
|
+
}
|
|
357
|
+
static fromBinary(bytes, options) {
|
|
358
|
+
return new _ClearAudioBufferRequest().fromBinary(bytes, options);
|
|
359
|
+
}
|
|
360
|
+
static fromJson(jsonValue, options) {
|
|
361
|
+
return new _ClearAudioBufferRequest().fromJson(jsonValue, options);
|
|
362
|
+
}
|
|
363
|
+
static fromJsonString(jsonString, options) {
|
|
364
|
+
return new _ClearAudioBufferRequest().fromJsonString(jsonString, options);
|
|
365
|
+
}
|
|
366
|
+
static equals(a, b) {
|
|
367
|
+
return import_protobuf.proto2.util.equals(_ClearAudioBufferRequest, a, b);
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
_ClearAudioBufferRequest.runtime = import_protobuf.proto2;
|
|
371
|
+
_ClearAudioBufferRequest.typeName = "livekit.proto.ClearAudioBufferRequest";
|
|
372
|
+
_ClearAudioBufferRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
373
|
+
{ no: 1, name: "source_handle", kind: "scalar", T: 4, req: true }
|
|
374
|
+
]);
|
|
375
|
+
let ClearAudioBufferRequest = _ClearAudioBufferRequest;
|
|
376
|
+
const _ClearAudioBufferResponse = class _ClearAudioBufferResponse extends import_protobuf.Message {
|
|
377
|
+
constructor(data) {
|
|
378
|
+
super();
|
|
379
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
380
|
+
}
|
|
381
|
+
static fromBinary(bytes, options) {
|
|
382
|
+
return new _ClearAudioBufferResponse().fromBinary(bytes, options);
|
|
383
|
+
}
|
|
384
|
+
static fromJson(jsonValue, options) {
|
|
385
|
+
return new _ClearAudioBufferResponse().fromJson(jsonValue, options);
|
|
386
|
+
}
|
|
387
|
+
static fromJsonString(jsonString, options) {
|
|
388
|
+
return new _ClearAudioBufferResponse().fromJsonString(jsonString, options);
|
|
389
|
+
}
|
|
390
|
+
static equals(a, b) {
|
|
391
|
+
return import_protobuf.proto2.util.equals(_ClearAudioBufferResponse, a, b);
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
_ClearAudioBufferResponse.runtime = import_protobuf.proto2;
|
|
395
|
+
_ClearAudioBufferResponse.typeName = "livekit.proto.ClearAudioBufferResponse";
|
|
396
|
+
_ClearAudioBufferResponse.fields = import_protobuf.proto2.util.newFieldList(() => []);
|
|
397
|
+
let ClearAudioBufferResponse = _ClearAudioBufferResponse;
|
|
398
|
+
const _NewAudioResamplerRequest = class _NewAudioResamplerRequest extends import_protobuf.Message {
|
|
399
|
+
constructor(data) {
|
|
400
|
+
super();
|
|
401
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
402
|
+
}
|
|
403
|
+
static fromBinary(bytes, options) {
|
|
404
|
+
return new _NewAudioResamplerRequest().fromBinary(bytes, options);
|
|
405
|
+
}
|
|
406
|
+
static fromJson(jsonValue, options) {
|
|
407
|
+
return new _NewAudioResamplerRequest().fromJson(jsonValue, options);
|
|
408
|
+
}
|
|
409
|
+
static fromJsonString(jsonString, options) {
|
|
410
|
+
return new _NewAudioResamplerRequest().fromJsonString(jsonString, options);
|
|
411
|
+
}
|
|
412
|
+
static equals(a, b) {
|
|
413
|
+
return import_protobuf.proto2.util.equals(_NewAudioResamplerRequest, a, b);
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
_NewAudioResamplerRequest.runtime = import_protobuf.proto2;
|
|
417
|
+
_NewAudioResamplerRequest.typeName = "livekit.proto.NewAudioResamplerRequest";
|
|
418
|
+
_NewAudioResamplerRequest.fields = import_protobuf.proto2.util.newFieldList(() => []);
|
|
419
|
+
let NewAudioResamplerRequest = _NewAudioResamplerRequest;
|
|
420
|
+
const _NewAudioResamplerResponse = class _NewAudioResamplerResponse extends import_protobuf.Message {
|
|
421
|
+
constructor(data) {
|
|
422
|
+
super();
|
|
423
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
424
|
+
}
|
|
425
|
+
static fromBinary(bytes, options) {
|
|
426
|
+
return new _NewAudioResamplerResponse().fromBinary(bytes, options);
|
|
427
|
+
}
|
|
428
|
+
static fromJson(jsonValue, options) {
|
|
429
|
+
return new _NewAudioResamplerResponse().fromJson(jsonValue, options);
|
|
430
|
+
}
|
|
431
|
+
static fromJsonString(jsonString, options) {
|
|
432
|
+
return new _NewAudioResamplerResponse().fromJsonString(jsonString, options);
|
|
433
|
+
}
|
|
434
|
+
static equals(a, b) {
|
|
435
|
+
return import_protobuf.proto2.util.equals(_NewAudioResamplerResponse, a, b);
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
_NewAudioResamplerResponse.runtime = import_protobuf.proto2;
|
|
439
|
+
_NewAudioResamplerResponse.typeName = "livekit.proto.NewAudioResamplerResponse";
|
|
440
|
+
_NewAudioResamplerResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
441
|
+
{ no: 1, name: "resampler", kind: "message", T: OwnedAudioResampler, req: true }
|
|
442
|
+
]);
|
|
443
|
+
let NewAudioResamplerResponse = _NewAudioResamplerResponse;
|
|
444
|
+
const _RemixAndResampleRequest = class _RemixAndResampleRequest extends import_protobuf.Message {
|
|
445
|
+
constructor(data) {
|
|
446
|
+
super();
|
|
447
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
448
|
+
}
|
|
449
|
+
static fromBinary(bytes, options) {
|
|
450
|
+
return new _RemixAndResampleRequest().fromBinary(bytes, options);
|
|
451
|
+
}
|
|
452
|
+
static fromJson(jsonValue, options) {
|
|
453
|
+
return new _RemixAndResampleRequest().fromJson(jsonValue, options);
|
|
454
|
+
}
|
|
455
|
+
static fromJsonString(jsonString, options) {
|
|
456
|
+
return new _RemixAndResampleRequest().fromJsonString(jsonString, options);
|
|
457
|
+
}
|
|
458
|
+
static equals(a, b) {
|
|
459
|
+
return import_protobuf.proto2.util.equals(_RemixAndResampleRequest, a, b);
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
_RemixAndResampleRequest.runtime = import_protobuf.proto2;
|
|
463
|
+
_RemixAndResampleRequest.typeName = "livekit.proto.RemixAndResampleRequest";
|
|
464
|
+
_RemixAndResampleRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
465
|
+
{ no: 1, name: "resampler_handle", kind: "scalar", T: 4, req: true },
|
|
466
|
+
{ no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo, req: true },
|
|
467
|
+
{ no: 3, name: "num_channels", kind: "scalar", T: 13, req: true },
|
|
468
|
+
{ no: 4, name: "sample_rate", kind: "scalar", T: 13, req: true }
|
|
469
|
+
]);
|
|
470
|
+
let RemixAndResampleRequest = _RemixAndResampleRequest;
|
|
471
|
+
const _RemixAndResampleResponse = class _RemixAndResampleResponse extends import_protobuf.Message {
|
|
472
|
+
constructor(data) {
|
|
473
|
+
super();
|
|
474
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
475
|
+
}
|
|
476
|
+
static fromBinary(bytes, options) {
|
|
477
|
+
return new _RemixAndResampleResponse().fromBinary(bytes, options);
|
|
478
|
+
}
|
|
479
|
+
static fromJson(jsonValue, options) {
|
|
480
|
+
return new _RemixAndResampleResponse().fromJson(jsonValue, options);
|
|
481
|
+
}
|
|
482
|
+
static fromJsonString(jsonString, options) {
|
|
483
|
+
return new _RemixAndResampleResponse().fromJsonString(jsonString, options);
|
|
484
|
+
}
|
|
485
|
+
static equals(a, b) {
|
|
486
|
+
return import_protobuf.proto2.util.equals(_RemixAndResampleResponse, a, b);
|
|
487
|
+
}
|
|
488
|
+
};
|
|
489
|
+
_RemixAndResampleResponse.runtime = import_protobuf.proto2;
|
|
490
|
+
_RemixAndResampleResponse.typeName = "livekit.proto.RemixAndResampleResponse";
|
|
491
|
+
_RemixAndResampleResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
492
|
+
{ no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer, req: true }
|
|
493
|
+
]);
|
|
494
|
+
let RemixAndResampleResponse = _RemixAndResampleResponse;
|
|
495
|
+
const _NewSoxResamplerRequest = class _NewSoxResamplerRequest extends import_protobuf.Message {
|
|
496
|
+
constructor(data) {
|
|
497
|
+
super();
|
|
498
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
499
|
+
}
|
|
500
|
+
static fromBinary(bytes, options) {
|
|
501
|
+
return new _NewSoxResamplerRequest().fromBinary(bytes, options);
|
|
502
|
+
}
|
|
503
|
+
static fromJson(jsonValue, options) {
|
|
504
|
+
return new _NewSoxResamplerRequest().fromJson(jsonValue, options);
|
|
505
|
+
}
|
|
506
|
+
static fromJsonString(jsonString, options) {
|
|
507
|
+
return new _NewSoxResamplerRequest().fromJsonString(jsonString, options);
|
|
508
|
+
}
|
|
509
|
+
static equals(a, b) {
|
|
510
|
+
return import_protobuf.proto2.util.equals(_NewSoxResamplerRequest, a, b);
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
_NewSoxResamplerRequest.runtime = import_protobuf.proto2;
|
|
514
|
+
_NewSoxResamplerRequest.typeName = "livekit.proto.NewSoxResamplerRequest";
|
|
515
|
+
_NewSoxResamplerRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
516
|
+
{ no: 1, name: "input_rate", kind: "scalar", T: 1, req: true },
|
|
517
|
+
{ no: 2, name: "output_rate", kind: "scalar", T: 1, req: true },
|
|
518
|
+
{ no: 3, name: "num_channels", kind: "scalar", T: 13, req: true },
|
|
519
|
+
{ no: 4, name: "input_data_type", kind: "enum", T: import_protobuf.proto2.getEnumType(SoxResamplerDataType), req: true },
|
|
520
|
+
{ no: 5, name: "output_data_type", kind: "enum", T: import_protobuf.proto2.getEnumType(SoxResamplerDataType), req: true },
|
|
521
|
+
{ no: 6, name: "quality_recipe", kind: "enum", T: import_protobuf.proto2.getEnumType(SoxQualityRecipe), req: true },
|
|
522
|
+
{ no: 7, name: "flags", kind: "scalar", T: 13, opt: true }
|
|
523
|
+
]);
|
|
524
|
+
let NewSoxResamplerRequest = _NewSoxResamplerRequest;
|
|
525
|
+
const _NewSoxResamplerResponse = class _NewSoxResamplerResponse extends import_protobuf.Message {
|
|
526
|
+
constructor(data) {
|
|
527
|
+
super();
|
|
528
|
+
/**
|
|
529
|
+
* @generated from oneof livekit.proto.NewSoxResamplerResponse.message
|
|
530
|
+
*/
|
|
531
|
+
this.message = { case: void 0 };
|
|
532
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
533
|
+
}
|
|
534
|
+
static fromBinary(bytes, options) {
|
|
535
|
+
return new _NewSoxResamplerResponse().fromBinary(bytes, options);
|
|
536
|
+
}
|
|
537
|
+
static fromJson(jsonValue, options) {
|
|
538
|
+
return new _NewSoxResamplerResponse().fromJson(jsonValue, options);
|
|
539
|
+
}
|
|
540
|
+
static fromJsonString(jsonString, options) {
|
|
541
|
+
return new _NewSoxResamplerResponse().fromJsonString(jsonString, options);
|
|
542
|
+
}
|
|
543
|
+
static equals(a, b) {
|
|
544
|
+
return import_protobuf.proto2.util.equals(_NewSoxResamplerResponse, a, b);
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
_NewSoxResamplerResponse.runtime = import_protobuf.proto2;
|
|
548
|
+
_NewSoxResamplerResponse.typeName = "livekit.proto.NewSoxResamplerResponse";
|
|
549
|
+
_NewSoxResamplerResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
550
|
+
{ no: 1, name: "resampler", kind: "message", T: OwnedSoxResampler, oneof: "message" },
|
|
551
|
+
{ no: 2, name: "error", kind: "scalar", T: 9, oneof: "message" }
|
|
552
|
+
]);
|
|
553
|
+
let NewSoxResamplerResponse = _NewSoxResamplerResponse;
|
|
554
|
+
const _PushSoxResamplerRequest = class _PushSoxResamplerRequest extends import_protobuf.Message {
|
|
555
|
+
constructor(data) {
|
|
556
|
+
super();
|
|
557
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
558
|
+
}
|
|
559
|
+
static fromBinary(bytes, options) {
|
|
560
|
+
return new _PushSoxResamplerRequest().fromBinary(bytes, options);
|
|
561
|
+
}
|
|
562
|
+
static fromJson(jsonValue, options) {
|
|
563
|
+
return new _PushSoxResamplerRequest().fromJson(jsonValue, options);
|
|
564
|
+
}
|
|
565
|
+
static fromJsonString(jsonString, options) {
|
|
566
|
+
return new _PushSoxResamplerRequest().fromJsonString(jsonString, options);
|
|
567
|
+
}
|
|
568
|
+
static equals(a, b) {
|
|
569
|
+
return import_protobuf.proto2.util.equals(_PushSoxResamplerRequest, a, b);
|
|
570
|
+
}
|
|
571
|
+
};
|
|
572
|
+
_PushSoxResamplerRequest.runtime = import_protobuf.proto2;
|
|
573
|
+
_PushSoxResamplerRequest.typeName = "livekit.proto.PushSoxResamplerRequest";
|
|
574
|
+
_PushSoxResamplerRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
575
|
+
{ no: 1, name: "resampler_handle", kind: "scalar", T: 4, req: true },
|
|
576
|
+
{ no: 2, name: "data_ptr", kind: "scalar", T: 4, req: true },
|
|
577
|
+
{ no: 3, name: "size", kind: "scalar", T: 13, req: true }
|
|
578
|
+
]);
|
|
579
|
+
let PushSoxResamplerRequest = _PushSoxResamplerRequest;
|
|
580
|
+
const _PushSoxResamplerResponse = class _PushSoxResamplerResponse extends import_protobuf.Message {
|
|
581
|
+
constructor(data) {
|
|
582
|
+
super();
|
|
583
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
584
|
+
}
|
|
585
|
+
static fromBinary(bytes, options) {
|
|
586
|
+
return new _PushSoxResamplerResponse().fromBinary(bytes, options);
|
|
587
|
+
}
|
|
588
|
+
static fromJson(jsonValue, options) {
|
|
589
|
+
return new _PushSoxResamplerResponse().fromJson(jsonValue, options);
|
|
590
|
+
}
|
|
591
|
+
static fromJsonString(jsonString, options) {
|
|
592
|
+
return new _PushSoxResamplerResponse().fromJsonString(jsonString, options);
|
|
593
|
+
}
|
|
594
|
+
static equals(a, b) {
|
|
595
|
+
return import_protobuf.proto2.util.equals(_PushSoxResamplerResponse, a, b);
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
_PushSoxResamplerResponse.runtime = import_protobuf.proto2;
|
|
599
|
+
_PushSoxResamplerResponse.typeName = "livekit.proto.PushSoxResamplerResponse";
|
|
600
|
+
_PushSoxResamplerResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
601
|
+
{ no: 1, name: "output_ptr", kind: "scalar", T: 4, req: true },
|
|
602
|
+
{ no: 2, name: "size", kind: "scalar", T: 13, req: true },
|
|
603
|
+
{ no: 3, name: "error", kind: "scalar", T: 9, opt: true }
|
|
604
|
+
]);
|
|
605
|
+
let PushSoxResamplerResponse = _PushSoxResamplerResponse;
|
|
606
|
+
const _FlushSoxResamplerRequest = class _FlushSoxResamplerRequest extends import_protobuf.Message {
|
|
607
|
+
constructor(data) {
|
|
608
|
+
super();
|
|
609
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
610
|
+
}
|
|
611
|
+
static fromBinary(bytes, options) {
|
|
612
|
+
return new _FlushSoxResamplerRequest().fromBinary(bytes, options);
|
|
613
|
+
}
|
|
614
|
+
static fromJson(jsonValue, options) {
|
|
615
|
+
return new _FlushSoxResamplerRequest().fromJson(jsonValue, options);
|
|
616
|
+
}
|
|
617
|
+
static fromJsonString(jsonString, options) {
|
|
618
|
+
return new _FlushSoxResamplerRequest().fromJsonString(jsonString, options);
|
|
619
|
+
}
|
|
620
|
+
static equals(a, b) {
|
|
621
|
+
return import_protobuf.proto2.util.equals(_FlushSoxResamplerRequest, a, b);
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
_FlushSoxResamplerRequest.runtime = import_protobuf.proto2;
|
|
625
|
+
_FlushSoxResamplerRequest.typeName = "livekit.proto.FlushSoxResamplerRequest";
|
|
626
|
+
_FlushSoxResamplerRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
627
|
+
{ no: 1, name: "resampler_handle", kind: "scalar", T: 4, req: true }
|
|
628
|
+
]);
|
|
629
|
+
let FlushSoxResamplerRequest = _FlushSoxResamplerRequest;
|
|
630
|
+
const _FlushSoxResamplerResponse = class _FlushSoxResamplerResponse extends import_protobuf.Message {
|
|
631
|
+
constructor(data) {
|
|
632
|
+
super();
|
|
633
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
634
|
+
}
|
|
635
|
+
static fromBinary(bytes, options) {
|
|
636
|
+
return new _FlushSoxResamplerResponse().fromBinary(bytes, options);
|
|
637
|
+
}
|
|
638
|
+
static fromJson(jsonValue, options) {
|
|
639
|
+
return new _FlushSoxResamplerResponse().fromJson(jsonValue, options);
|
|
640
|
+
}
|
|
641
|
+
static fromJsonString(jsonString, options) {
|
|
642
|
+
return new _FlushSoxResamplerResponse().fromJsonString(jsonString, options);
|
|
643
|
+
}
|
|
644
|
+
static equals(a, b) {
|
|
645
|
+
return import_protobuf.proto2.util.equals(_FlushSoxResamplerResponse, a, b);
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
_FlushSoxResamplerResponse.runtime = import_protobuf.proto2;
|
|
649
|
+
_FlushSoxResamplerResponse.typeName = "livekit.proto.FlushSoxResamplerResponse";
|
|
650
|
+
_FlushSoxResamplerResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
651
|
+
{ no: 1, name: "output_ptr", kind: "scalar", T: 4, req: true },
|
|
652
|
+
{ no: 2, name: "size", kind: "scalar", T: 13, req: true },
|
|
653
|
+
{ no: 3, name: "error", kind: "scalar", T: 9, opt: true }
|
|
654
|
+
]);
|
|
655
|
+
let FlushSoxResamplerResponse = _FlushSoxResamplerResponse;
|
|
656
|
+
const _AudioFrameBufferInfo = class _AudioFrameBufferInfo extends import_protobuf.Message {
|
|
657
|
+
constructor(data) {
|
|
658
|
+
super();
|
|
659
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
660
|
+
}
|
|
661
|
+
static fromBinary(bytes, options) {
|
|
662
|
+
return new _AudioFrameBufferInfo().fromBinary(bytes, options);
|
|
663
|
+
}
|
|
664
|
+
static fromJson(jsonValue, options) {
|
|
665
|
+
return new _AudioFrameBufferInfo().fromJson(jsonValue, options);
|
|
666
|
+
}
|
|
667
|
+
static fromJsonString(jsonString, options) {
|
|
668
|
+
return new _AudioFrameBufferInfo().fromJsonString(jsonString, options);
|
|
669
|
+
}
|
|
670
|
+
static equals(a, b) {
|
|
671
|
+
return import_protobuf.proto2.util.equals(_AudioFrameBufferInfo, a, b);
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
_AudioFrameBufferInfo.runtime = import_protobuf.proto2;
|
|
675
|
+
_AudioFrameBufferInfo.typeName = "livekit.proto.AudioFrameBufferInfo";
|
|
676
|
+
_AudioFrameBufferInfo.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
677
|
+
{ no: 1, name: "data_ptr", kind: "scalar", T: 4, req: true },
|
|
678
|
+
{ no: 2, name: "num_channels", kind: "scalar", T: 13, req: true },
|
|
679
|
+
{ no: 3, name: "sample_rate", kind: "scalar", T: 13, req: true },
|
|
680
|
+
{ no: 4, name: "samples_per_channel", kind: "scalar", T: 13, req: true }
|
|
681
|
+
]);
|
|
682
|
+
let AudioFrameBufferInfo = _AudioFrameBufferInfo;
|
|
683
|
+
const _OwnedAudioFrameBuffer = class _OwnedAudioFrameBuffer extends import_protobuf.Message {
|
|
684
|
+
constructor(data) {
|
|
685
|
+
super();
|
|
686
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
687
|
+
}
|
|
688
|
+
static fromBinary(bytes, options) {
|
|
689
|
+
return new _OwnedAudioFrameBuffer().fromBinary(bytes, options);
|
|
690
|
+
}
|
|
691
|
+
static fromJson(jsonValue, options) {
|
|
692
|
+
return new _OwnedAudioFrameBuffer().fromJson(jsonValue, options);
|
|
693
|
+
}
|
|
694
|
+
static fromJsonString(jsonString, options) {
|
|
695
|
+
return new _OwnedAudioFrameBuffer().fromJsonString(jsonString, options);
|
|
696
|
+
}
|
|
697
|
+
static equals(a, b) {
|
|
698
|
+
return import_protobuf.proto2.util.equals(_OwnedAudioFrameBuffer, a, b);
|
|
699
|
+
}
|
|
700
|
+
};
|
|
701
|
+
_OwnedAudioFrameBuffer.runtime = import_protobuf.proto2;
|
|
702
|
+
_OwnedAudioFrameBuffer.typeName = "livekit.proto.OwnedAudioFrameBuffer";
|
|
703
|
+
_OwnedAudioFrameBuffer.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
704
|
+
{ no: 1, name: "handle", kind: "message", T: import_handle_pb.FfiOwnedHandle, req: true },
|
|
705
|
+
{ no: 2, name: "info", kind: "message", T: AudioFrameBufferInfo, req: true }
|
|
706
|
+
]);
|
|
707
|
+
let OwnedAudioFrameBuffer = _OwnedAudioFrameBuffer;
|
|
708
|
+
const _AudioStreamInfo = class _AudioStreamInfo extends import_protobuf.Message {
|
|
709
|
+
constructor(data) {
|
|
710
|
+
super();
|
|
711
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
712
|
+
}
|
|
713
|
+
static fromBinary(bytes, options) {
|
|
714
|
+
return new _AudioStreamInfo().fromBinary(bytes, options);
|
|
715
|
+
}
|
|
716
|
+
static fromJson(jsonValue, options) {
|
|
717
|
+
return new _AudioStreamInfo().fromJson(jsonValue, options);
|
|
718
|
+
}
|
|
719
|
+
static fromJsonString(jsonString, options) {
|
|
720
|
+
return new _AudioStreamInfo().fromJsonString(jsonString, options);
|
|
721
|
+
}
|
|
722
|
+
static equals(a, b) {
|
|
723
|
+
return import_protobuf.proto2.util.equals(_AudioStreamInfo, a, b);
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
_AudioStreamInfo.runtime = import_protobuf.proto2;
|
|
727
|
+
_AudioStreamInfo.typeName = "livekit.proto.AudioStreamInfo";
|
|
728
|
+
_AudioStreamInfo.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
729
|
+
{ no: 1, name: "type", kind: "enum", T: import_protobuf.proto2.getEnumType(AudioStreamType), req: true }
|
|
730
|
+
]);
|
|
731
|
+
let AudioStreamInfo = _AudioStreamInfo;
|
|
732
|
+
const _OwnedAudioStream = class _OwnedAudioStream extends import_protobuf.Message {
|
|
733
|
+
constructor(data) {
|
|
734
|
+
super();
|
|
735
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
736
|
+
}
|
|
737
|
+
static fromBinary(bytes, options) {
|
|
738
|
+
return new _OwnedAudioStream().fromBinary(bytes, options);
|
|
739
|
+
}
|
|
740
|
+
static fromJson(jsonValue, options) {
|
|
741
|
+
return new _OwnedAudioStream().fromJson(jsonValue, options);
|
|
742
|
+
}
|
|
743
|
+
static fromJsonString(jsonString, options) {
|
|
744
|
+
return new _OwnedAudioStream().fromJsonString(jsonString, options);
|
|
745
|
+
}
|
|
746
|
+
static equals(a, b) {
|
|
747
|
+
return import_protobuf.proto2.util.equals(_OwnedAudioStream, a, b);
|
|
748
|
+
}
|
|
749
|
+
};
|
|
750
|
+
_OwnedAudioStream.runtime = import_protobuf.proto2;
|
|
751
|
+
_OwnedAudioStream.typeName = "livekit.proto.OwnedAudioStream";
|
|
752
|
+
_OwnedAudioStream.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
753
|
+
{ no: 1, name: "handle", kind: "message", T: import_handle_pb.FfiOwnedHandle, req: true },
|
|
754
|
+
{ no: 2, name: "info", kind: "message", T: AudioStreamInfo, req: true }
|
|
755
|
+
]);
|
|
756
|
+
let OwnedAudioStream = _OwnedAudioStream;
|
|
757
|
+
const _AudioStreamEvent = class _AudioStreamEvent extends import_protobuf.Message {
|
|
758
|
+
constructor(data) {
|
|
759
|
+
super();
|
|
760
|
+
/**
|
|
761
|
+
* @generated from oneof livekit.proto.AudioStreamEvent.message
|
|
762
|
+
*/
|
|
763
|
+
this.message = { case: void 0 };
|
|
764
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
765
|
+
}
|
|
766
|
+
static fromBinary(bytes, options) {
|
|
767
|
+
return new _AudioStreamEvent().fromBinary(bytes, options);
|
|
768
|
+
}
|
|
769
|
+
static fromJson(jsonValue, options) {
|
|
770
|
+
return new _AudioStreamEvent().fromJson(jsonValue, options);
|
|
771
|
+
}
|
|
772
|
+
static fromJsonString(jsonString, options) {
|
|
773
|
+
return new _AudioStreamEvent().fromJsonString(jsonString, options);
|
|
774
|
+
}
|
|
775
|
+
static equals(a, b) {
|
|
776
|
+
return import_protobuf.proto2.util.equals(_AudioStreamEvent, a, b);
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
_AudioStreamEvent.runtime = import_protobuf.proto2;
|
|
780
|
+
_AudioStreamEvent.typeName = "livekit.proto.AudioStreamEvent";
|
|
781
|
+
_AudioStreamEvent.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
782
|
+
{ no: 1, name: "stream_handle", kind: "scalar", T: 4, req: true },
|
|
783
|
+
{ no: 2, name: "frame_received", kind: "message", T: AudioFrameReceived, oneof: "message" },
|
|
784
|
+
{ no: 3, name: "eos", kind: "message", T: AudioStreamEOS, oneof: "message" }
|
|
785
|
+
]);
|
|
786
|
+
let AudioStreamEvent = _AudioStreamEvent;
|
|
787
|
+
const _AudioFrameReceived = class _AudioFrameReceived extends import_protobuf.Message {
|
|
788
|
+
constructor(data) {
|
|
789
|
+
super();
|
|
790
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
791
|
+
}
|
|
792
|
+
static fromBinary(bytes, options) {
|
|
793
|
+
return new _AudioFrameReceived().fromBinary(bytes, options);
|
|
794
|
+
}
|
|
795
|
+
static fromJson(jsonValue, options) {
|
|
796
|
+
return new _AudioFrameReceived().fromJson(jsonValue, options);
|
|
797
|
+
}
|
|
798
|
+
static fromJsonString(jsonString, options) {
|
|
799
|
+
return new _AudioFrameReceived().fromJsonString(jsonString, options);
|
|
800
|
+
}
|
|
801
|
+
static equals(a, b) {
|
|
802
|
+
return import_protobuf.proto2.util.equals(_AudioFrameReceived, a, b);
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
_AudioFrameReceived.runtime = import_protobuf.proto2;
|
|
806
|
+
_AudioFrameReceived.typeName = "livekit.proto.AudioFrameReceived";
|
|
807
|
+
_AudioFrameReceived.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
808
|
+
{ no: 1, name: "frame", kind: "message", T: OwnedAudioFrameBuffer, req: true }
|
|
809
|
+
]);
|
|
810
|
+
let AudioFrameReceived = _AudioFrameReceived;
|
|
811
|
+
const _AudioStreamEOS = class _AudioStreamEOS extends import_protobuf.Message {
|
|
812
|
+
constructor(data) {
|
|
813
|
+
super();
|
|
814
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
815
|
+
}
|
|
816
|
+
static fromBinary(bytes, options) {
|
|
817
|
+
return new _AudioStreamEOS().fromBinary(bytes, options);
|
|
818
|
+
}
|
|
819
|
+
static fromJson(jsonValue, options) {
|
|
820
|
+
return new _AudioStreamEOS().fromJson(jsonValue, options);
|
|
821
|
+
}
|
|
822
|
+
static fromJsonString(jsonString, options) {
|
|
823
|
+
return new _AudioStreamEOS().fromJsonString(jsonString, options);
|
|
824
|
+
}
|
|
825
|
+
static equals(a, b) {
|
|
826
|
+
return import_protobuf.proto2.util.equals(_AudioStreamEOS, a, b);
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
_AudioStreamEOS.runtime = import_protobuf.proto2;
|
|
830
|
+
_AudioStreamEOS.typeName = "livekit.proto.AudioStreamEOS";
|
|
831
|
+
_AudioStreamEOS.fields = import_protobuf.proto2.util.newFieldList(() => []);
|
|
832
|
+
let AudioStreamEOS = _AudioStreamEOS;
|
|
833
|
+
const _AudioSourceOptions = class _AudioSourceOptions extends import_protobuf.Message {
|
|
834
|
+
constructor(data) {
|
|
835
|
+
super();
|
|
836
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
837
|
+
}
|
|
838
|
+
static fromBinary(bytes, options) {
|
|
839
|
+
return new _AudioSourceOptions().fromBinary(bytes, options);
|
|
840
|
+
}
|
|
841
|
+
static fromJson(jsonValue, options) {
|
|
842
|
+
return new _AudioSourceOptions().fromJson(jsonValue, options);
|
|
843
|
+
}
|
|
844
|
+
static fromJsonString(jsonString, options) {
|
|
845
|
+
return new _AudioSourceOptions().fromJsonString(jsonString, options);
|
|
846
|
+
}
|
|
847
|
+
static equals(a, b) {
|
|
848
|
+
return import_protobuf.proto2.util.equals(_AudioSourceOptions, a, b);
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
_AudioSourceOptions.runtime = import_protobuf.proto2;
|
|
852
|
+
_AudioSourceOptions.typeName = "livekit.proto.AudioSourceOptions";
|
|
853
|
+
_AudioSourceOptions.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
854
|
+
{ no: 1, name: "echo_cancellation", kind: "scalar", T: 8, req: true },
|
|
855
|
+
{ no: 2, name: "noise_suppression", kind: "scalar", T: 8, req: true },
|
|
856
|
+
{ no: 3, name: "auto_gain_control", kind: "scalar", T: 8, req: true }
|
|
857
|
+
]);
|
|
858
|
+
let AudioSourceOptions = _AudioSourceOptions;
|
|
859
|
+
const _AudioSourceInfo = class _AudioSourceInfo extends import_protobuf.Message {
|
|
860
|
+
constructor(data) {
|
|
861
|
+
super();
|
|
862
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
863
|
+
}
|
|
864
|
+
static fromBinary(bytes, options) {
|
|
865
|
+
return new _AudioSourceInfo().fromBinary(bytes, options);
|
|
866
|
+
}
|
|
867
|
+
static fromJson(jsonValue, options) {
|
|
868
|
+
return new _AudioSourceInfo().fromJson(jsonValue, options);
|
|
869
|
+
}
|
|
870
|
+
static fromJsonString(jsonString, options) {
|
|
871
|
+
return new _AudioSourceInfo().fromJsonString(jsonString, options);
|
|
872
|
+
}
|
|
873
|
+
static equals(a, b) {
|
|
874
|
+
return import_protobuf.proto2.util.equals(_AudioSourceInfo, a, b);
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
_AudioSourceInfo.runtime = import_protobuf.proto2;
|
|
878
|
+
_AudioSourceInfo.typeName = "livekit.proto.AudioSourceInfo";
|
|
879
|
+
_AudioSourceInfo.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
880
|
+
{ no: 2, name: "type", kind: "enum", T: import_protobuf.proto2.getEnumType(AudioSourceType), req: true }
|
|
881
|
+
]);
|
|
882
|
+
let AudioSourceInfo = _AudioSourceInfo;
|
|
883
|
+
const _OwnedAudioSource = class _OwnedAudioSource extends import_protobuf.Message {
|
|
884
|
+
constructor(data) {
|
|
885
|
+
super();
|
|
886
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
887
|
+
}
|
|
888
|
+
static fromBinary(bytes, options) {
|
|
889
|
+
return new _OwnedAudioSource().fromBinary(bytes, options);
|
|
890
|
+
}
|
|
891
|
+
static fromJson(jsonValue, options) {
|
|
892
|
+
return new _OwnedAudioSource().fromJson(jsonValue, options);
|
|
893
|
+
}
|
|
894
|
+
static fromJsonString(jsonString, options) {
|
|
895
|
+
return new _OwnedAudioSource().fromJsonString(jsonString, options);
|
|
896
|
+
}
|
|
897
|
+
static equals(a, b) {
|
|
898
|
+
return import_protobuf.proto2.util.equals(_OwnedAudioSource, a, b);
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
_OwnedAudioSource.runtime = import_protobuf.proto2;
|
|
902
|
+
_OwnedAudioSource.typeName = "livekit.proto.OwnedAudioSource";
|
|
903
|
+
_OwnedAudioSource.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
904
|
+
{ no: 1, name: "handle", kind: "message", T: import_handle_pb.FfiOwnedHandle, req: true },
|
|
905
|
+
{ no: 2, name: "info", kind: "message", T: AudioSourceInfo, req: true }
|
|
906
|
+
]);
|
|
907
|
+
let OwnedAudioSource = _OwnedAudioSource;
|
|
908
|
+
const _AudioResamplerInfo = class _AudioResamplerInfo extends import_protobuf.Message {
|
|
909
|
+
constructor(data) {
|
|
910
|
+
super();
|
|
911
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
912
|
+
}
|
|
913
|
+
static fromBinary(bytes, options) {
|
|
914
|
+
return new _AudioResamplerInfo().fromBinary(bytes, options);
|
|
915
|
+
}
|
|
916
|
+
static fromJson(jsonValue, options) {
|
|
917
|
+
return new _AudioResamplerInfo().fromJson(jsonValue, options);
|
|
918
|
+
}
|
|
919
|
+
static fromJsonString(jsonString, options) {
|
|
920
|
+
return new _AudioResamplerInfo().fromJsonString(jsonString, options);
|
|
921
|
+
}
|
|
922
|
+
static equals(a, b) {
|
|
923
|
+
return import_protobuf.proto2.util.equals(_AudioResamplerInfo, a, b);
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
_AudioResamplerInfo.runtime = import_protobuf.proto2;
|
|
927
|
+
_AudioResamplerInfo.typeName = "livekit.proto.AudioResamplerInfo";
|
|
928
|
+
_AudioResamplerInfo.fields = import_protobuf.proto2.util.newFieldList(() => []);
|
|
929
|
+
let AudioResamplerInfo = _AudioResamplerInfo;
|
|
930
|
+
const _OwnedAudioResampler = class _OwnedAudioResampler extends import_protobuf.Message {
|
|
931
|
+
constructor(data) {
|
|
932
|
+
super();
|
|
933
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
934
|
+
}
|
|
935
|
+
static fromBinary(bytes, options) {
|
|
936
|
+
return new _OwnedAudioResampler().fromBinary(bytes, options);
|
|
937
|
+
}
|
|
938
|
+
static fromJson(jsonValue, options) {
|
|
939
|
+
return new _OwnedAudioResampler().fromJson(jsonValue, options);
|
|
940
|
+
}
|
|
941
|
+
static fromJsonString(jsonString, options) {
|
|
942
|
+
return new _OwnedAudioResampler().fromJsonString(jsonString, options);
|
|
943
|
+
}
|
|
944
|
+
static equals(a, b) {
|
|
945
|
+
return import_protobuf.proto2.util.equals(_OwnedAudioResampler, a, b);
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
_OwnedAudioResampler.runtime = import_protobuf.proto2;
|
|
949
|
+
_OwnedAudioResampler.typeName = "livekit.proto.OwnedAudioResampler";
|
|
950
|
+
_OwnedAudioResampler.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
951
|
+
{ no: 1, name: "handle", kind: "message", T: import_handle_pb.FfiOwnedHandle, req: true },
|
|
952
|
+
{ no: 2, name: "info", kind: "message", T: AudioResamplerInfo, req: true }
|
|
953
|
+
]);
|
|
954
|
+
let OwnedAudioResampler = _OwnedAudioResampler;
|
|
955
|
+
const _SoxResamplerInfo = class _SoxResamplerInfo extends import_protobuf.Message {
|
|
956
|
+
constructor(data) {
|
|
957
|
+
super();
|
|
958
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
959
|
+
}
|
|
960
|
+
static fromBinary(bytes, options) {
|
|
961
|
+
return new _SoxResamplerInfo().fromBinary(bytes, options);
|
|
962
|
+
}
|
|
963
|
+
static fromJson(jsonValue, options) {
|
|
964
|
+
return new _SoxResamplerInfo().fromJson(jsonValue, options);
|
|
965
|
+
}
|
|
966
|
+
static fromJsonString(jsonString, options) {
|
|
967
|
+
return new _SoxResamplerInfo().fromJsonString(jsonString, options);
|
|
968
|
+
}
|
|
969
|
+
static equals(a, b) {
|
|
970
|
+
return import_protobuf.proto2.util.equals(_SoxResamplerInfo, a, b);
|
|
971
|
+
}
|
|
972
|
+
};
|
|
973
|
+
_SoxResamplerInfo.runtime = import_protobuf.proto2;
|
|
974
|
+
_SoxResamplerInfo.typeName = "livekit.proto.SoxResamplerInfo";
|
|
975
|
+
_SoxResamplerInfo.fields = import_protobuf.proto2.util.newFieldList(() => []);
|
|
976
|
+
let SoxResamplerInfo = _SoxResamplerInfo;
|
|
977
|
+
const _OwnedSoxResampler = class _OwnedSoxResampler extends import_protobuf.Message {
|
|
978
|
+
constructor(data) {
|
|
979
|
+
super();
|
|
980
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
981
|
+
}
|
|
982
|
+
static fromBinary(bytes, options) {
|
|
983
|
+
return new _OwnedSoxResampler().fromBinary(bytes, options);
|
|
984
|
+
}
|
|
985
|
+
static fromJson(jsonValue, options) {
|
|
986
|
+
return new _OwnedSoxResampler().fromJson(jsonValue, options);
|
|
987
|
+
}
|
|
988
|
+
static fromJsonString(jsonString, options) {
|
|
989
|
+
return new _OwnedSoxResampler().fromJsonString(jsonString, options);
|
|
990
|
+
}
|
|
991
|
+
static equals(a, b) {
|
|
992
|
+
return import_protobuf.proto2.util.equals(_OwnedSoxResampler, a, b);
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
_OwnedSoxResampler.runtime = import_protobuf.proto2;
|
|
996
|
+
_OwnedSoxResampler.typeName = "livekit.proto.OwnedSoxResampler";
|
|
997
|
+
_OwnedSoxResampler.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
998
|
+
{ no: 1, name: "handle", kind: "message", T: import_handle_pb.FfiOwnedHandle, req: true },
|
|
999
|
+
{ no: 2, name: "info", kind: "message", T: SoxResamplerInfo, req: true }
|
|
1000
|
+
]);
|
|
1001
|
+
let OwnedSoxResampler = _OwnedSoxResampler;
|
|
144
1002
|
// Annotate the CommonJS export names for ESM import in node:
|
|
145
1003
|
0 && (module.exports = {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
1004
|
+
AudioFrameBufferInfo,
|
|
1005
|
+
AudioFrameReceived,
|
|
1006
|
+
AudioResamplerInfo,
|
|
1007
|
+
AudioSourceInfo,
|
|
1008
|
+
AudioSourceOptions,
|
|
151
1009
|
AudioSourceType,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
AudioStreamInfoSchema,
|
|
1010
|
+
AudioStreamEOS,
|
|
1011
|
+
AudioStreamEvent,
|
|
1012
|
+
AudioStreamFromParticipantRequest,
|
|
1013
|
+
AudioStreamFromParticipantResponse,
|
|
1014
|
+
AudioStreamInfo,
|
|
158
1015
|
AudioStreamType,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
RemixAndResampleResponseSchema,
|
|
1016
|
+
CaptureAudioFrameCallback,
|
|
1017
|
+
CaptureAudioFrameRequest,
|
|
1018
|
+
CaptureAudioFrameResponse,
|
|
1019
|
+
ClearAudioBufferRequest,
|
|
1020
|
+
ClearAudioBufferResponse,
|
|
1021
|
+
FlushSoxResamplerRequest,
|
|
1022
|
+
FlushSoxResamplerResponse,
|
|
1023
|
+
NewAudioResamplerRequest,
|
|
1024
|
+
NewAudioResamplerResponse,
|
|
1025
|
+
NewAudioSourceRequest,
|
|
1026
|
+
NewAudioSourceResponse,
|
|
1027
|
+
NewAudioStreamRequest,
|
|
1028
|
+
NewAudioStreamResponse,
|
|
1029
|
+
NewSoxResamplerRequest,
|
|
1030
|
+
NewSoxResamplerResponse,
|
|
1031
|
+
OwnedAudioFrameBuffer,
|
|
1032
|
+
OwnedAudioResampler,
|
|
1033
|
+
OwnedAudioSource,
|
|
1034
|
+
OwnedAudioStream,
|
|
1035
|
+
OwnedSoxResampler,
|
|
1036
|
+
PushSoxResamplerRequest,
|
|
1037
|
+
PushSoxResamplerResponse,
|
|
1038
|
+
RemixAndResampleRequest,
|
|
1039
|
+
RemixAndResampleResponse,
|
|
184
1040
|
SoxFlagBits,
|
|
185
|
-
SoxFlagBitsSchema,
|
|
186
1041
|
SoxQualityRecipe,
|
|
187
|
-
SoxQualityRecipeSchema,
|
|
188
1042
|
SoxResamplerDataType,
|
|
189
|
-
|
|
190
|
-
SoxResamplerInfoSchema,
|
|
191
|
-
file_audio_frame
|
|
1043
|
+
SoxResamplerInfo
|
|
192
1044
|
});
|
|
193
1045
|
//# sourceMappingURL=audio_frame_pb.cjs.map
|