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