@livekit/rtc-node 0.0.2 → 0.0.4
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/Cargo.toml +21 -0
- package/build.rs +5 -0
- package/dist/audio_frame.d.ts +14 -0
- package/dist/audio_frame.d.ts.map +1 -0
- package/dist/audio_frame.js +36 -0
- package/dist/audio_frame.js.map +1 -0
- package/dist/audio_source.d.ts +14 -0
- package/dist/audio_source.d.ts.map +1 -0
- package/dist/audio_source.js +42 -0
- package/dist/audio_source.js.map +1 -0
- package/dist/audio_stream.d.ts +24 -0
- package/dist/audio_stream.d.ts.map +1 -0
- package/dist/audio_stream.js +54 -0
- package/dist/audio_stream.js.map +1 -0
- package/dist/e2ee.d.ts +44 -0
- package/dist/e2ee.d.ts.map +1 -0
- package/dist/e2ee.js +232 -0
- package/dist/e2ee.js.map +1 -0
- package/dist/ffi_client.d.ts +23 -0
- package/dist/ffi_client.d.ts.map +1 -0
- package/dist/ffi_client.js +57 -0
- package/dist/ffi_client.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +71 -0
- package/dist/index.js.map +1 -0
- package/dist/native.d.ts +14 -0
- package/dist/native.d.ts.map +1 -0
- package/dist/native.js +297 -0
- package/dist/native.js.map +1 -0
- package/dist/participant.d.ts +30 -0
- package/dist/participant.d.ts.map +1 -0
- package/dist/participant.js +120 -0
- package/dist/participant.js.map +1 -0
- package/dist/proto/audio_frame_pb.d.ts +556 -0
- package/dist/proto/audio_frame_pb.d.ts.map +1 -0
- package/dist/proto/audio_frame_pb.js +861 -0
- package/dist/proto/audio_frame_pb.js.map +1 -0
- package/dist/proto/e2ee_pb.d.ts +652 -0
- package/dist/proto/e2ee_pb.d.ts.map +1 -0
- package/dist/proto/e2ee_pb.js +906 -0
- package/dist/proto/e2ee_pb.js.map +1 -0
- package/dist/proto/ffi_pb.d.ts +672 -0
- package/dist/proto/ffi_pb.d.ts.map +1 -0
- package/dist/proto/ffi_pb.js +459 -0
- package/dist/proto/ffi_pb.js.map +1 -0
- package/dist/proto/handle_pb.d.ts +30 -0
- package/dist/proto/handle_pb.d.ts.map +1 -0
- package/dist/proto/handle_pb.js +59 -0
- package/dist/proto/handle_pb.js.map +1 -0
- package/dist/proto/participant_pb.d.ts +54 -0
- package/dist/proto/participant_pb.d.ts.map +1 -0
- package/dist/proto/participant_pb.js +93 -0
- package/dist/proto/participant_pb.js.map +1 -0
- package/dist/proto/room_pb.d.ts +1480 -0
- package/dist/proto/room_pb.d.ts.map +1 -0
- package/dist/proto/room_pb.js +2172 -0
- package/dist/proto/room_pb.js.map +1 -0
- package/dist/proto/stats_pb.d.ts +1713 -0
- package/dist/proto/stats_pb.d.ts.map +1 -0
- package/dist/proto/stats_pb.js +2238 -0
- package/dist/proto/stats_pb.js.map +1 -0
- package/dist/proto/track_pb.d.ts +353 -0
- package/dist/proto/track_pb.d.ts.map +1 -0
- package/dist/proto/track_pb.js +550 -0
- package/dist/proto/track_pb.js.map +1 -0
- package/dist/proto/video_frame_pb.d.ts +855 -0
- package/dist/proto/video_frame_pb.d.ts.map +1 -0
- package/dist/proto/video_frame_pb.js +1214 -0
- package/dist/proto/video_frame_pb.js.map +1 -0
- package/dist/room.d.ts +95 -0
- package/dist/room.d.ts.map +1 -0
- package/dist/room.js +285 -0
- package/dist/room.js.map +1 -0
- package/dist/track.d.ts +35 -0
- package/dist/track.d.ts.map +1 -0
- package/dist/track.js +72 -0
- package/dist/track.js.map +1 -0
- package/dist/track_publication.d.ts +31 -0
- package/dist/track_publication.d.ts.map +1 -0
- package/dist/track_publication.js +66 -0
- package/dist/track_publication.js.map +1 -0
- package/dist/video_frame.d.ts +111 -0
- package/dist/video_frame.d.ts.map +1 -0
- package/dist/video_frame.js +364 -0
- package/dist/video_frame.js.map +1 -0
- package/dist/video_source.d.ts +14 -0
- package/dist/video_source.d.ts.map +1 -0
- package/dist/video_source.js +44 -0
- package/dist/video_source.js.map +1 -0
- package/dist/video_stream.d.ts +24 -0
- package/dist/video_stream.d.ts.map +1 -0
- package/dist/video_stream.js +56 -0
- package/dist/video_stream.js.map +1 -0
- package/package.json +19 -14
- package/src/audio_frame.ts +45 -0
- package/src/audio_source.ts +64 -0
- package/src/audio_stream.ts +74 -0
- package/src/e2ee.ts +311 -0
- package/src/ffi_client.ts +68 -0
- package/src/index.ts +52 -0
- package/src/lib.rs +5 -0
- package/src/native.d.ts +14 -0
- package/src/native.js +269 -0
- package/src/nodejs.rs +115 -0
- package/src/participant.ts +171 -0
- package/src/proto/audio_frame_pb.ts +1121 -0
- package/src/proto/e2ee_pb.ts +1231 -0
- package/src/proto/ffi_pb.ts +969 -0
- package/src/proto/handle_pb.ts +69 -0
- package/src/proto/participant_pb.ts +121 -0
- package/src/proto/room_pb.ts +2843 -0
- package/src/proto/stats_pb.ts +2955 -0
- package/src/proto/track_pb.ts +683 -0
- package/src/proto/video_frame_pb.ts +1568 -0
- package/src/room.ts +370 -0
- package/src/track.ts +101 -0
- package/src/track_publication.ts +90 -0
- package/src/video_frame.ts +620 -0
- package/src/video_source.ts +61 -0
- package/src/video_stream.ts +76 -0
|
@@ -0,0 +1,861 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2023 LiveKit, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OwnedAudioResampler = exports.AudioResamplerInfo = exports.OwnedAudioSource = exports.AudioSourceInfo = exports.AudioSourceOptions = exports.AudioStreamEOS = exports.AudioFrameReceived = exports.AudioStreamEvent = exports.OwnedAudioStream = exports.AudioStreamInfo = exports.OwnedAudioFrameBuffer = exports.AudioFrameBufferInfo = exports.RemixAndResampleResponse = exports.RemixAndResampleRequest = exports.NewAudioResamplerResponse = exports.NewAudioResamplerRequest = exports.CaptureAudioFrameCallback = exports.CaptureAudioFrameResponse = exports.CaptureAudioFrameRequest = exports.NewAudioSourceResponse = exports.NewAudioSourceRequest = exports.NewAudioStreamResponse = exports.NewAudioStreamRequest = exports.AllocAudioBufferResponse = exports.AllocAudioBufferRequest = exports.AudioSourceType = exports.AudioStreamType = void 0;
|
|
17
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
18
|
+
const handle_pb_js_1 = require("./handle_pb.js");
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum livekit.proto.AudioStreamType
|
|
21
|
+
*/
|
|
22
|
+
var AudioStreamType;
|
|
23
|
+
(function (AudioStreamType) {
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: AUDIO_STREAM_NATIVE = 0;
|
|
26
|
+
*/
|
|
27
|
+
AudioStreamType[AudioStreamType["AUDIO_STREAM_NATIVE"] = 0] = "AUDIO_STREAM_NATIVE";
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: AUDIO_STREAM_HTML = 1;
|
|
30
|
+
*/
|
|
31
|
+
AudioStreamType[AudioStreamType["AUDIO_STREAM_HTML"] = 1] = "AUDIO_STREAM_HTML";
|
|
32
|
+
})(AudioStreamType || (exports.AudioStreamType = AudioStreamType = {}));
|
|
33
|
+
// Retrieve enum metadata with: proto3.getEnumType(AudioStreamType)
|
|
34
|
+
protobuf_1.proto3.util.setEnumType(AudioStreamType, "livekit.proto.AudioStreamType", [
|
|
35
|
+
{ no: 0, name: "AUDIO_STREAM_NATIVE" },
|
|
36
|
+
{ no: 1, name: "AUDIO_STREAM_HTML" },
|
|
37
|
+
]);
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum livekit.proto.AudioSourceType
|
|
40
|
+
*/
|
|
41
|
+
var AudioSourceType;
|
|
42
|
+
(function (AudioSourceType) {
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: AUDIO_SOURCE_NATIVE = 0;
|
|
45
|
+
*/
|
|
46
|
+
AudioSourceType[AudioSourceType["AUDIO_SOURCE_NATIVE"] = 0] = "AUDIO_SOURCE_NATIVE";
|
|
47
|
+
})(AudioSourceType || (exports.AudioSourceType = AudioSourceType = {}));
|
|
48
|
+
// Retrieve enum metadata with: proto3.getEnumType(AudioSourceType)
|
|
49
|
+
protobuf_1.proto3.util.setEnumType(AudioSourceType, "livekit.proto.AudioSourceType", [
|
|
50
|
+
{ no: 0, name: "AUDIO_SOURCE_NATIVE" },
|
|
51
|
+
]);
|
|
52
|
+
/**
|
|
53
|
+
* Allocate a new AudioFrameBuffer
|
|
54
|
+
* This is not necessary required because the data structure is fairly simple
|
|
55
|
+
* But keep the API consistent with VideoFrame
|
|
56
|
+
*
|
|
57
|
+
* @generated from message livekit.proto.AllocAudioBufferRequest
|
|
58
|
+
*/
|
|
59
|
+
class AllocAudioBufferRequest extends protobuf_1.Message {
|
|
60
|
+
constructor(data) {
|
|
61
|
+
super();
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: uint32 sample_rate = 1;
|
|
64
|
+
*/
|
|
65
|
+
this.sampleRate = 0;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: uint32 num_channels = 2;
|
|
68
|
+
*/
|
|
69
|
+
this.numChannels = 0;
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: uint32 samples_per_channel = 3;
|
|
72
|
+
*/
|
|
73
|
+
this.samplesPerChannel = 0;
|
|
74
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
75
|
+
}
|
|
76
|
+
static fromBinary(bytes, options) {
|
|
77
|
+
return new AllocAudioBufferRequest().fromBinary(bytes, options);
|
|
78
|
+
}
|
|
79
|
+
static fromJson(jsonValue, options) {
|
|
80
|
+
return new AllocAudioBufferRequest().fromJson(jsonValue, options);
|
|
81
|
+
}
|
|
82
|
+
static fromJsonString(jsonString, options) {
|
|
83
|
+
return new AllocAudioBufferRequest().fromJsonString(jsonString, options);
|
|
84
|
+
}
|
|
85
|
+
static equals(a, b) {
|
|
86
|
+
return protobuf_1.proto3.util.equals(AllocAudioBufferRequest, a, b);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.AllocAudioBufferRequest = AllocAudioBufferRequest;
|
|
90
|
+
AllocAudioBufferRequest.runtime = protobuf_1.proto3;
|
|
91
|
+
AllocAudioBufferRequest.typeName = "livekit.proto.AllocAudioBufferRequest";
|
|
92
|
+
AllocAudioBufferRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
93
|
+
{ no: 1, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
94
|
+
{ no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
95
|
+
{ no: 3, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
96
|
+
]);
|
|
97
|
+
/**
|
|
98
|
+
* @generated from message livekit.proto.AllocAudioBufferResponse
|
|
99
|
+
*/
|
|
100
|
+
class AllocAudioBufferResponse extends protobuf_1.Message {
|
|
101
|
+
constructor(data) {
|
|
102
|
+
super();
|
|
103
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
104
|
+
}
|
|
105
|
+
static fromBinary(bytes, options) {
|
|
106
|
+
return new AllocAudioBufferResponse().fromBinary(bytes, options);
|
|
107
|
+
}
|
|
108
|
+
static fromJson(jsonValue, options) {
|
|
109
|
+
return new AllocAudioBufferResponse().fromJson(jsonValue, options);
|
|
110
|
+
}
|
|
111
|
+
static fromJsonString(jsonString, options) {
|
|
112
|
+
return new AllocAudioBufferResponse().fromJsonString(jsonString, options);
|
|
113
|
+
}
|
|
114
|
+
static equals(a, b) {
|
|
115
|
+
return protobuf_1.proto3.util.equals(AllocAudioBufferResponse, a, b);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.AllocAudioBufferResponse = AllocAudioBufferResponse;
|
|
119
|
+
AllocAudioBufferResponse.runtime = protobuf_1.proto3;
|
|
120
|
+
AllocAudioBufferResponse.typeName = "livekit.proto.AllocAudioBufferResponse";
|
|
121
|
+
AllocAudioBufferResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
122
|
+
{ no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer },
|
|
123
|
+
]);
|
|
124
|
+
/**
|
|
125
|
+
* Create a new AudioStream
|
|
126
|
+
* AudioStream is used to receive audio frames from a track
|
|
127
|
+
*
|
|
128
|
+
* @generated from message livekit.proto.NewAudioStreamRequest
|
|
129
|
+
*/
|
|
130
|
+
class NewAudioStreamRequest extends protobuf_1.Message {
|
|
131
|
+
constructor(data) {
|
|
132
|
+
super();
|
|
133
|
+
/**
|
|
134
|
+
* @generated from field: uint64 track_handle = 1;
|
|
135
|
+
*/
|
|
136
|
+
this.trackHandle = protobuf_1.protoInt64.zero;
|
|
137
|
+
/**
|
|
138
|
+
* @generated from field: livekit.proto.AudioStreamType type = 2;
|
|
139
|
+
*/
|
|
140
|
+
this.type = AudioStreamType.AUDIO_STREAM_NATIVE;
|
|
141
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
142
|
+
}
|
|
143
|
+
static fromBinary(bytes, options) {
|
|
144
|
+
return new NewAudioStreamRequest().fromBinary(bytes, options);
|
|
145
|
+
}
|
|
146
|
+
static fromJson(jsonValue, options) {
|
|
147
|
+
return new NewAudioStreamRequest().fromJson(jsonValue, options);
|
|
148
|
+
}
|
|
149
|
+
static fromJsonString(jsonString, options) {
|
|
150
|
+
return new NewAudioStreamRequest().fromJsonString(jsonString, options);
|
|
151
|
+
}
|
|
152
|
+
static equals(a, b) {
|
|
153
|
+
return protobuf_1.proto3.util.equals(NewAudioStreamRequest, a, b);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.NewAudioStreamRequest = NewAudioStreamRequest;
|
|
157
|
+
NewAudioStreamRequest.runtime = protobuf_1.proto3;
|
|
158
|
+
NewAudioStreamRequest.typeName = "livekit.proto.NewAudioStreamRequest";
|
|
159
|
+
NewAudioStreamRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
160
|
+
{ no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
161
|
+
{ no: 2, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(AudioStreamType) },
|
|
162
|
+
]);
|
|
163
|
+
/**
|
|
164
|
+
* @generated from message livekit.proto.NewAudioStreamResponse
|
|
165
|
+
*/
|
|
166
|
+
class NewAudioStreamResponse extends protobuf_1.Message {
|
|
167
|
+
constructor(data) {
|
|
168
|
+
super();
|
|
169
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
170
|
+
}
|
|
171
|
+
static fromBinary(bytes, options) {
|
|
172
|
+
return new NewAudioStreamResponse().fromBinary(bytes, options);
|
|
173
|
+
}
|
|
174
|
+
static fromJson(jsonValue, options) {
|
|
175
|
+
return new NewAudioStreamResponse().fromJson(jsonValue, options);
|
|
176
|
+
}
|
|
177
|
+
static fromJsonString(jsonString, options) {
|
|
178
|
+
return new NewAudioStreamResponse().fromJsonString(jsonString, options);
|
|
179
|
+
}
|
|
180
|
+
static equals(a, b) {
|
|
181
|
+
return protobuf_1.proto3.util.equals(NewAudioStreamResponse, a, b);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
exports.NewAudioStreamResponse = NewAudioStreamResponse;
|
|
185
|
+
NewAudioStreamResponse.runtime = protobuf_1.proto3;
|
|
186
|
+
NewAudioStreamResponse.typeName = "livekit.proto.NewAudioStreamResponse";
|
|
187
|
+
NewAudioStreamResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
188
|
+
{ no: 1, name: "stream", kind: "message", T: OwnedAudioStream },
|
|
189
|
+
]);
|
|
190
|
+
/**
|
|
191
|
+
* Create a new AudioSource
|
|
192
|
+
*
|
|
193
|
+
* @generated from message livekit.proto.NewAudioSourceRequest
|
|
194
|
+
*/
|
|
195
|
+
class NewAudioSourceRequest extends protobuf_1.Message {
|
|
196
|
+
constructor(data) {
|
|
197
|
+
super();
|
|
198
|
+
/**
|
|
199
|
+
* @generated from field: livekit.proto.AudioSourceType type = 1;
|
|
200
|
+
*/
|
|
201
|
+
this.type = AudioSourceType.AUDIO_SOURCE_NATIVE;
|
|
202
|
+
/**
|
|
203
|
+
* @generated from field: uint32 sample_rate = 3;
|
|
204
|
+
*/
|
|
205
|
+
this.sampleRate = 0;
|
|
206
|
+
/**
|
|
207
|
+
* @generated from field: uint32 num_channels = 4;
|
|
208
|
+
*/
|
|
209
|
+
this.numChannels = 0;
|
|
210
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
211
|
+
}
|
|
212
|
+
static fromBinary(bytes, options) {
|
|
213
|
+
return new NewAudioSourceRequest().fromBinary(bytes, options);
|
|
214
|
+
}
|
|
215
|
+
static fromJson(jsonValue, options) {
|
|
216
|
+
return new NewAudioSourceRequest().fromJson(jsonValue, options);
|
|
217
|
+
}
|
|
218
|
+
static fromJsonString(jsonString, options) {
|
|
219
|
+
return new NewAudioSourceRequest().fromJsonString(jsonString, options);
|
|
220
|
+
}
|
|
221
|
+
static equals(a, b) {
|
|
222
|
+
return protobuf_1.proto3.util.equals(NewAudioSourceRequest, a, b);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.NewAudioSourceRequest = NewAudioSourceRequest;
|
|
226
|
+
NewAudioSourceRequest.runtime = protobuf_1.proto3;
|
|
227
|
+
NewAudioSourceRequest.typeName = "livekit.proto.NewAudioSourceRequest";
|
|
228
|
+
NewAudioSourceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
229
|
+
{ no: 1, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(AudioSourceType) },
|
|
230
|
+
{ no: 2, name: "options", kind: "message", T: AudioSourceOptions, opt: true },
|
|
231
|
+
{ no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
232
|
+
{ no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
233
|
+
]);
|
|
234
|
+
/**
|
|
235
|
+
* @generated from message livekit.proto.NewAudioSourceResponse
|
|
236
|
+
*/
|
|
237
|
+
class NewAudioSourceResponse extends protobuf_1.Message {
|
|
238
|
+
constructor(data) {
|
|
239
|
+
super();
|
|
240
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
241
|
+
}
|
|
242
|
+
static fromBinary(bytes, options) {
|
|
243
|
+
return new NewAudioSourceResponse().fromBinary(bytes, options);
|
|
244
|
+
}
|
|
245
|
+
static fromJson(jsonValue, options) {
|
|
246
|
+
return new NewAudioSourceResponse().fromJson(jsonValue, options);
|
|
247
|
+
}
|
|
248
|
+
static fromJsonString(jsonString, options) {
|
|
249
|
+
return new NewAudioSourceResponse().fromJsonString(jsonString, options);
|
|
250
|
+
}
|
|
251
|
+
static equals(a, b) {
|
|
252
|
+
return protobuf_1.proto3.util.equals(NewAudioSourceResponse, a, b);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
exports.NewAudioSourceResponse = NewAudioSourceResponse;
|
|
256
|
+
NewAudioSourceResponse.runtime = protobuf_1.proto3;
|
|
257
|
+
NewAudioSourceResponse.typeName = "livekit.proto.NewAudioSourceResponse";
|
|
258
|
+
NewAudioSourceResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
259
|
+
{ no: 1, name: "source", kind: "message", T: OwnedAudioSource },
|
|
260
|
+
]);
|
|
261
|
+
/**
|
|
262
|
+
* Push a frame to an AudioSource
|
|
263
|
+
* The data provided must be available as long as the client receive the callback.
|
|
264
|
+
*
|
|
265
|
+
* @generated from message livekit.proto.CaptureAudioFrameRequest
|
|
266
|
+
*/
|
|
267
|
+
class CaptureAudioFrameRequest extends protobuf_1.Message {
|
|
268
|
+
constructor(data) {
|
|
269
|
+
super();
|
|
270
|
+
/**
|
|
271
|
+
* @generated from field: uint64 source_handle = 1;
|
|
272
|
+
*/
|
|
273
|
+
this.sourceHandle = protobuf_1.protoInt64.zero;
|
|
274
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
275
|
+
}
|
|
276
|
+
static fromBinary(bytes, options) {
|
|
277
|
+
return new CaptureAudioFrameRequest().fromBinary(bytes, options);
|
|
278
|
+
}
|
|
279
|
+
static fromJson(jsonValue, options) {
|
|
280
|
+
return new CaptureAudioFrameRequest().fromJson(jsonValue, options);
|
|
281
|
+
}
|
|
282
|
+
static fromJsonString(jsonString, options) {
|
|
283
|
+
return new CaptureAudioFrameRequest().fromJsonString(jsonString, options);
|
|
284
|
+
}
|
|
285
|
+
static equals(a, b) {
|
|
286
|
+
return protobuf_1.proto3.util.equals(CaptureAudioFrameRequest, a, b);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
exports.CaptureAudioFrameRequest = CaptureAudioFrameRequest;
|
|
290
|
+
CaptureAudioFrameRequest.runtime = protobuf_1.proto3;
|
|
291
|
+
CaptureAudioFrameRequest.typeName = "livekit.proto.CaptureAudioFrameRequest";
|
|
292
|
+
CaptureAudioFrameRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
293
|
+
{ no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
294
|
+
{ no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo },
|
|
295
|
+
]);
|
|
296
|
+
/**
|
|
297
|
+
* @generated from message livekit.proto.CaptureAudioFrameResponse
|
|
298
|
+
*/
|
|
299
|
+
class CaptureAudioFrameResponse extends protobuf_1.Message {
|
|
300
|
+
constructor(data) {
|
|
301
|
+
super();
|
|
302
|
+
/**
|
|
303
|
+
* @generated from field: uint64 async_id = 1;
|
|
304
|
+
*/
|
|
305
|
+
this.asyncId = protobuf_1.protoInt64.zero;
|
|
306
|
+
protobuf_1.proto3.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 protobuf_1.proto3.util.equals(CaptureAudioFrameResponse, a, b);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
exports.CaptureAudioFrameResponse = CaptureAudioFrameResponse;
|
|
322
|
+
CaptureAudioFrameResponse.runtime = protobuf_1.proto3;
|
|
323
|
+
CaptureAudioFrameResponse.typeName = "livekit.proto.CaptureAudioFrameResponse";
|
|
324
|
+
CaptureAudioFrameResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
325
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
326
|
+
]);
|
|
327
|
+
/**
|
|
328
|
+
* @generated from message livekit.proto.CaptureAudioFrameCallback
|
|
329
|
+
*/
|
|
330
|
+
class CaptureAudioFrameCallback extends protobuf_1.Message {
|
|
331
|
+
constructor(data) {
|
|
332
|
+
super();
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: uint64 async_id = 1;
|
|
335
|
+
*/
|
|
336
|
+
this.asyncId = protobuf_1.protoInt64.zero;
|
|
337
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
338
|
+
}
|
|
339
|
+
static fromBinary(bytes, options) {
|
|
340
|
+
return new CaptureAudioFrameCallback().fromBinary(bytes, options);
|
|
341
|
+
}
|
|
342
|
+
static fromJson(jsonValue, options) {
|
|
343
|
+
return new CaptureAudioFrameCallback().fromJson(jsonValue, options);
|
|
344
|
+
}
|
|
345
|
+
static fromJsonString(jsonString, options) {
|
|
346
|
+
return new CaptureAudioFrameCallback().fromJsonString(jsonString, options);
|
|
347
|
+
}
|
|
348
|
+
static equals(a, b) {
|
|
349
|
+
return protobuf_1.proto3.util.equals(CaptureAudioFrameCallback, a, b);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
exports.CaptureAudioFrameCallback = CaptureAudioFrameCallback;
|
|
353
|
+
CaptureAudioFrameCallback.runtime = protobuf_1.proto3;
|
|
354
|
+
CaptureAudioFrameCallback.typeName = "livekit.proto.CaptureAudioFrameCallback";
|
|
355
|
+
CaptureAudioFrameCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
356
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
357
|
+
{ no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
358
|
+
]);
|
|
359
|
+
/**
|
|
360
|
+
* Create a new AudioResampler
|
|
361
|
+
*
|
|
362
|
+
* @generated from message livekit.proto.NewAudioResamplerRequest
|
|
363
|
+
*/
|
|
364
|
+
class NewAudioResamplerRequest extends protobuf_1.Message {
|
|
365
|
+
constructor(data) {
|
|
366
|
+
super();
|
|
367
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
368
|
+
}
|
|
369
|
+
static fromBinary(bytes, options) {
|
|
370
|
+
return new NewAudioResamplerRequest().fromBinary(bytes, options);
|
|
371
|
+
}
|
|
372
|
+
static fromJson(jsonValue, options) {
|
|
373
|
+
return new NewAudioResamplerRequest().fromJson(jsonValue, options);
|
|
374
|
+
}
|
|
375
|
+
static fromJsonString(jsonString, options) {
|
|
376
|
+
return new NewAudioResamplerRequest().fromJsonString(jsonString, options);
|
|
377
|
+
}
|
|
378
|
+
static equals(a, b) {
|
|
379
|
+
return protobuf_1.proto3.util.equals(NewAudioResamplerRequest, a, b);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
exports.NewAudioResamplerRequest = NewAudioResamplerRequest;
|
|
383
|
+
NewAudioResamplerRequest.runtime = protobuf_1.proto3;
|
|
384
|
+
NewAudioResamplerRequest.typeName = "livekit.proto.NewAudioResamplerRequest";
|
|
385
|
+
NewAudioResamplerRequest.fields = protobuf_1.proto3.util.newFieldList(() => []);
|
|
386
|
+
/**
|
|
387
|
+
* @generated from message livekit.proto.NewAudioResamplerResponse
|
|
388
|
+
*/
|
|
389
|
+
class NewAudioResamplerResponse extends protobuf_1.Message {
|
|
390
|
+
constructor(data) {
|
|
391
|
+
super();
|
|
392
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
393
|
+
}
|
|
394
|
+
static fromBinary(bytes, options) {
|
|
395
|
+
return new NewAudioResamplerResponse().fromBinary(bytes, options);
|
|
396
|
+
}
|
|
397
|
+
static fromJson(jsonValue, options) {
|
|
398
|
+
return new NewAudioResamplerResponse().fromJson(jsonValue, options);
|
|
399
|
+
}
|
|
400
|
+
static fromJsonString(jsonString, options) {
|
|
401
|
+
return new NewAudioResamplerResponse().fromJsonString(jsonString, options);
|
|
402
|
+
}
|
|
403
|
+
static equals(a, b) {
|
|
404
|
+
return protobuf_1.proto3.util.equals(NewAudioResamplerResponse, a, b);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
exports.NewAudioResamplerResponse = NewAudioResamplerResponse;
|
|
408
|
+
NewAudioResamplerResponse.runtime = protobuf_1.proto3;
|
|
409
|
+
NewAudioResamplerResponse.typeName = "livekit.proto.NewAudioResamplerResponse";
|
|
410
|
+
NewAudioResamplerResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
411
|
+
{ no: 1, name: "resampler", kind: "message", T: OwnedAudioResampler },
|
|
412
|
+
]);
|
|
413
|
+
/**
|
|
414
|
+
* Remix and resample an audio frame
|
|
415
|
+
*
|
|
416
|
+
* @generated from message livekit.proto.RemixAndResampleRequest
|
|
417
|
+
*/
|
|
418
|
+
class RemixAndResampleRequest extends protobuf_1.Message {
|
|
419
|
+
constructor(data) {
|
|
420
|
+
super();
|
|
421
|
+
/**
|
|
422
|
+
* @generated from field: uint64 resampler_handle = 1;
|
|
423
|
+
*/
|
|
424
|
+
this.resamplerHandle = protobuf_1.protoInt64.zero;
|
|
425
|
+
/**
|
|
426
|
+
* @generated from field: uint32 num_channels = 3;
|
|
427
|
+
*/
|
|
428
|
+
this.numChannels = 0;
|
|
429
|
+
/**
|
|
430
|
+
* @generated from field: uint32 sample_rate = 4;
|
|
431
|
+
*/
|
|
432
|
+
this.sampleRate = 0;
|
|
433
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
434
|
+
}
|
|
435
|
+
static fromBinary(bytes, options) {
|
|
436
|
+
return new RemixAndResampleRequest().fromBinary(bytes, options);
|
|
437
|
+
}
|
|
438
|
+
static fromJson(jsonValue, options) {
|
|
439
|
+
return new RemixAndResampleRequest().fromJson(jsonValue, options);
|
|
440
|
+
}
|
|
441
|
+
static fromJsonString(jsonString, options) {
|
|
442
|
+
return new RemixAndResampleRequest().fromJsonString(jsonString, options);
|
|
443
|
+
}
|
|
444
|
+
static equals(a, b) {
|
|
445
|
+
return protobuf_1.proto3.util.equals(RemixAndResampleRequest, a, b);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
exports.RemixAndResampleRequest = RemixAndResampleRequest;
|
|
449
|
+
RemixAndResampleRequest.runtime = protobuf_1.proto3;
|
|
450
|
+
RemixAndResampleRequest.typeName = "livekit.proto.RemixAndResampleRequest";
|
|
451
|
+
RemixAndResampleRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
452
|
+
{ no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
453
|
+
{ no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo },
|
|
454
|
+
{ no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
455
|
+
{ no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
456
|
+
]);
|
|
457
|
+
/**
|
|
458
|
+
* @generated from message livekit.proto.RemixAndResampleResponse
|
|
459
|
+
*/
|
|
460
|
+
class RemixAndResampleResponse extends protobuf_1.Message {
|
|
461
|
+
constructor(data) {
|
|
462
|
+
super();
|
|
463
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
464
|
+
}
|
|
465
|
+
static fromBinary(bytes, options) {
|
|
466
|
+
return new RemixAndResampleResponse().fromBinary(bytes, options);
|
|
467
|
+
}
|
|
468
|
+
static fromJson(jsonValue, options) {
|
|
469
|
+
return new RemixAndResampleResponse().fromJson(jsonValue, options);
|
|
470
|
+
}
|
|
471
|
+
static fromJsonString(jsonString, options) {
|
|
472
|
+
return new RemixAndResampleResponse().fromJsonString(jsonString, options);
|
|
473
|
+
}
|
|
474
|
+
static equals(a, b) {
|
|
475
|
+
return protobuf_1.proto3.util.equals(RemixAndResampleResponse, a, b);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
exports.RemixAndResampleResponse = RemixAndResampleResponse;
|
|
479
|
+
RemixAndResampleResponse.runtime = protobuf_1.proto3;
|
|
480
|
+
RemixAndResampleResponse.typeName = "livekit.proto.RemixAndResampleResponse";
|
|
481
|
+
RemixAndResampleResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
482
|
+
{ no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer },
|
|
483
|
+
]);
|
|
484
|
+
/**
|
|
485
|
+
* @generated from message livekit.proto.AudioFrameBufferInfo
|
|
486
|
+
*/
|
|
487
|
+
class AudioFrameBufferInfo extends protobuf_1.Message {
|
|
488
|
+
constructor(data) {
|
|
489
|
+
super();
|
|
490
|
+
/**
|
|
491
|
+
* *const i16
|
|
492
|
+
*
|
|
493
|
+
* @generated from field: uint64 data_ptr = 1;
|
|
494
|
+
*/
|
|
495
|
+
this.dataPtr = protobuf_1.protoInt64.zero;
|
|
496
|
+
/**
|
|
497
|
+
* @generated from field: uint32 num_channels = 2;
|
|
498
|
+
*/
|
|
499
|
+
this.numChannels = 0;
|
|
500
|
+
/**
|
|
501
|
+
* @generated from field: uint32 sample_rate = 3;
|
|
502
|
+
*/
|
|
503
|
+
this.sampleRate = 0;
|
|
504
|
+
/**
|
|
505
|
+
* @generated from field: uint32 samples_per_channel = 4;
|
|
506
|
+
*/
|
|
507
|
+
this.samplesPerChannel = 0;
|
|
508
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
509
|
+
}
|
|
510
|
+
static fromBinary(bytes, options) {
|
|
511
|
+
return new AudioFrameBufferInfo().fromBinary(bytes, options);
|
|
512
|
+
}
|
|
513
|
+
static fromJson(jsonValue, options) {
|
|
514
|
+
return new AudioFrameBufferInfo().fromJson(jsonValue, options);
|
|
515
|
+
}
|
|
516
|
+
static fromJsonString(jsonString, options) {
|
|
517
|
+
return new AudioFrameBufferInfo().fromJsonString(jsonString, options);
|
|
518
|
+
}
|
|
519
|
+
static equals(a, b) {
|
|
520
|
+
return protobuf_1.proto3.util.equals(AudioFrameBufferInfo, a, b);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
exports.AudioFrameBufferInfo = AudioFrameBufferInfo;
|
|
524
|
+
AudioFrameBufferInfo.runtime = protobuf_1.proto3;
|
|
525
|
+
AudioFrameBufferInfo.typeName = "livekit.proto.AudioFrameBufferInfo";
|
|
526
|
+
AudioFrameBufferInfo.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
527
|
+
{ no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
528
|
+
{ no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
529
|
+
{ no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
530
|
+
{ no: 4, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
531
|
+
]);
|
|
532
|
+
/**
|
|
533
|
+
* @generated from message livekit.proto.OwnedAudioFrameBuffer
|
|
534
|
+
*/
|
|
535
|
+
class OwnedAudioFrameBuffer extends protobuf_1.Message {
|
|
536
|
+
constructor(data) {
|
|
537
|
+
super();
|
|
538
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
539
|
+
}
|
|
540
|
+
static fromBinary(bytes, options) {
|
|
541
|
+
return new OwnedAudioFrameBuffer().fromBinary(bytes, options);
|
|
542
|
+
}
|
|
543
|
+
static fromJson(jsonValue, options) {
|
|
544
|
+
return new OwnedAudioFrameBuffer().fromJson(jsonValue, options);
|
|
545
|
+
}
|
|
546
|
+
static fromJsonString(jsonString, options) {
|
|
547
|
+
return new OwnedAudioFrameBuffer().fromJsonString(jsonString, options);
|
|
548
|
+
}
|
|
549
|
+
static equals(a, b) {
|
|
550
|
+
return protobuf_1.proto3.util.equals(OwnedAudioFrameBuffer, a, b);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
exports.OwnedAudioFrameBuffer = OwnedAudioFrameBuffer;
|
|
554
|
+
OwnedAudioFrameBuffer.runtime = protobuf_1.proto3;
|
|
555
|
+
OwnedAudioFrameBuffer.typeName = "livekit.proto.OwnedAudioFrameBuffer";
|
|
556
|
+
OwnedAudioFrameBuffer.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
557
|
+
{ no: 1, name: "handle", kind: "message", T: handle_pb_js_1.FfiOwnedHandle },
|
|
558
|
+
{ no: 2, name: "info", kind: "message", T: AudioFrameBufferInfo },
|
|
559
|
+
]);
|
|
560
|
+
/**
|
|
561
|
+
* @generated from message livekit.proto.AudioStreamInfo
|
|
562
|
+
*/
|
|
563
|
+
class AudioStreamInfo extends protobuf_1.Message {
|
|
564
|
+
constructor(data) {
|
|
565
|
+
super();
|
|
566
|
+
/**
|
|
567
|
+
* @generated from field: livekit.proto.AudioStreamType type = 1;
|
|
568
|
+
*/
|
|
569
|
+
this.type = AudioStreamType.AUDIO_STREAM_NATIVE;
|
|
570
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
571
|
+
}
|
|
572
|
+
static fromBinary(bytes, options) {
|
|
573
|
+
return new AudioStreamInfo().fromBinary(bytes, options);
|
|
574
|
+
}
|
|
575
|
+
static fromJson(jsonValue, options) {
|
|
576
|
+
return new AudioStreamInfo().fromJson(jsonValue, options);
|
|
577
|
+
}
|
|
578
|
+
static fromJsonString(jsonString, options) {
|
|
579
|
+
return new AudioStreamInfo().fromJsonString(jsonString, options);
|
|
580
|
+
}
|
|
581
|
+
static equals(a, b) {
|
|
582
|
+
return protobuf_1.proto3.util.equals(AudioStreamInfo, a, b);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
exports.AudioStreamInfo = AudioStreamInfo;
|
|
586
|
+
AudioStreamInfo.runtime = protobuf_1.proto3;
|
|
587
|
+
AudioStreamInfo.typeName = "livekit.proto.AudioStreamInfo";
|
|
588
|
+
AudioStreamInfo.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
589
|
+
{ no: 1, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(AudioStreamType) },
|
|
590
|
+
]);
|
|
591
|
+
/**
|
|
592
|
+
* @generated from message livekit.proto.OwnedAudioStream
|
|
593
|
+
*/
|
|
594
|
+
class OwnedAudioStream extends protobuf_1.Message {
|
|
595
|
+
constructor(data) {
|
|
596
|
+
super();
|
|
597
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
598
|
+
}
|
|
599
|
+
static fromBinary(bytes, options) {
|
|
600
|
+
return new OwnedAudioStream().fromBinary(bytes, options);
|
|
601
|
+
}
|
|
602
|
+
static fromJson(jsonValue, options) {
|
|
603
|
+
return new OwnedAudioStream().fromJson(jsonValue, options);
|
|
604
|
+
}
|
|
605
|
+
static fromJsonString(jsonString, options) {
|
|
606
|
+
return new OwnedAudioStream().fromJsonString(jsonString, options);
|
|
607
|
+
}
|
|
608
|
+
static equals(a, b) {
|
|
609
|
+
return protobuf_1.proto3.util.equals(OwnedAudioStream, a, b);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
exports.OwnedAudioStream = OwnedAudioStream;
|
|
613
|
+
OwnedAudioStream.runtime = protobuf_1.proto3;
|
|
614
|
+
OwnedAudioStream.typeName = "livekit.proto.OwnedAudioStream";
|
|
615
|
+
OwnedAudioStream.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
616
|
+
{ no: 1, name: "handle", kind: "message", T: handle_pb_js_1.FfiOwnedHandle },
|
|
617
|
+
{ no: 2, name: "info", kind: "message", T: AudioStreamInfo },
|
|
618
|
+
]);
|
|
619
|
+
/**
|
|
620
|
+
* @generated from message livekit.proto.AudioStreamEvent
|
|
621
|
+
*/
|
|
622
|
+
class AudioStreamEvent extends protobuf_1.Message {
|
|
623
|
+
constructor(data) {
|
|
624
|
+
super();
|
|
625
|
+
/**
|
|
626
|
+
* @generated from field: uint64 stream_handle = 1;
|
|
627
|
+
*/
|
|
628
|
+
this.streamHandle = protobuf_1.protoInt64.zero;
|
|
629
|
+
/**
|
|
630
|
+
* @generated from oneof livekit.proto.AudioStreamEvent.message
|
|
631
|
+
*/
|
|
632
|
+
this.message = { case: undefined };
|
|
633
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
634
|
+
}
|
|
635
|
+
static fromBinary(bytes, options) {
|
|
636
|
+
return new AudioStreamEvent().fromBinary(bytes, options);
|
|
637
|
+
}
|
|
638
|
+
static fromJson(jsonValue, options) {
|
|
639
|
+
return new AudioStreamEvent().fromJson(jsonValue, options);
|
|
640
|
+
}
|
|
641
|
+
static fromJsonString(jsonString, options) {
|
|
642
|
+
return new AudioStreamEvent().fromJsonString(jsonString, options);
|
|
643
|
+
}
|
|
644
|
+
static equals(a, b) {
|
|
645
|
+
return protobuf_1.proto3.util.equals(AudioStreamEvent, a, b);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
exports.AudioStreamEvent = AudioStreamEvent;
|
|
649
|
+
AudioStreamEvent.runtime = protobuf_1.proto3;
|
|
650
|
+
AudioStreamEvent.typeName = "livekit.proto.AudioStreamEvent";
|
|
651
|
+
AudioStreamEvent.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
652
|
+
{ no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
653
|
+
{ no: 2, name: "frame_received", kind: "message", T: AudioFrameReceived, oneof: "message" },
|
|
654
|
+
{ no: 3, name: "eos", kind: "message", T: AudioStreamEOS, oneof: "message" },
|
|
655
|
+
]);
|
|
656
|
+
/**
|
|
657
|
+
* @generated from message livekit.proto.AudioFrameReceived
|
|
658
|
+
*/
|
|
659
|
+
class AudioFrameReceived extends protobuf_1.Message {
|
|
660
|
+
constructor(data) {
|
|
661
|
+
super();
|
|
662
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
663
|
+
}
|
|
664
|
+
static fromBinary(bytes, options) {
|
|
665
|
+
return new AudioFrameReceived().fromBinary(bytes, options);
|
|
666
|
+
}
|
|
667
|
+
static fromJson(jsonValue, options) {
|
|
668
|
+
return new AudioFrameReceived().fromJson(jsonValue, options);
|
|
669
|
+
}
|
|
670
|
+
static fromJsonString(jsonString, options) {
|
|
671
|
+
return new AudioFrameReceived().fromJsonString(jsonString, options);
|
|
672
|
+
}
|
|
673
|
+
static equals(a, b) {
|
|
674
|
+
return protobuf_1.proto3.util.equals(AudioFrameReceived, a, b);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
exports.AudioFrameReceived = AudioFrameReceived;
|
|
678
|
+
AudioFrameReceived.runtime = protobuf_1.proto3;
|
|
679
|
+
AudioFrameReceived.typeName = "livekit.proto.AudioFrameReceived";
|
|
680
|
+
AudioFrameReceived.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
681
|
+
{ no: 1, name: "frame", kind: "message", T: OwnedAudioFrameBuffer },
|
|
682
|
+
]);
|
|
683
|
+
/**
|
|
684
|
+
* @generated from message livekit.proto.AudioStreamEOS
|
|
685
|
+
*/
|
|
686
|
+
class AudioStreamEOS extends protobuf_1.Message {
|
|
687
|
+
constructor(data) {
|
|
688
|
+
super();
|
|
689
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
690
|
+
}
|
|
691
|
+
static fromBinary(bytes, options) {
|
|
692
|
+
return new AudioStreamEOS().fromBinary(bytes, options);
|
|
693
|
+
}
|
|
694
|
+
static fromJson(jsonValue, options) {
|
|
695
|
+
return new AudioStreamEOS().fromJson(jsonValue, options);
|
|
696
|
+
}
|
|
697
|
+
static fromJsonString(jsonString, options) {
|
|
698
|
+
return new AudioStreamEOS().fromJsonString(jsonString, options);
|
|
699
|
+
}
|
|
700
|
+
static equals(a, b) {
|
|
701
|
+
return protobuf_1.proto3.util.equals(AudioStreamEOS, a, b);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
exports.AudioStreamEOS = AudioStreamEOS;
|
|
705
|
+
AudioStreamEOS.runtime = protobuf_1.proto3;
|
|
706
|
+
AudioStreamEOS.typeName = "livekit.proto.AudioStreamEOS";
|
|
707
|
+
AudioStreamEOS.fields = protobuf_1.proto3.util.newFieldList(() => []);
|
|
708
|
+
/**
|
|
709
|
+
* @generated from message livekit.proto.AudioSourceOptions
|
|
710
|
+
*/
|
|
711
|
+
class AudioSourceOptions extends protobuf_1.Message {
|
|
712
|
+
constructor(data) {
|
|
713
|
+
super();
|
|
714
|
+
/**
|
|
715
|
+
* @generated from field: bool echo_cancellation = 1;
|
|
716
|
+
*/
|
|
717
|
+
this.echoCancellation = false;
|
|
718
|
+
/**
|
|
719
|
+
* @generated from field: bool noise_suppression = 2;
|
|
720
|
+
*/
|
|
721
|
+
this.noiseSuppression = false;
|
|
722
|
+
/**
|
|
723
|
+
* @generated from field: bool auto_gain_control = 3;
|
|
724
|
+
*/
|
|
725
|
+
this.autoGainControl = false;
|
|
726
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
727
|
+
}
|
|
728
|
+
static fromBinary(bytes, options) {
|
|
729
|
+
return new AudioSourceOptions().fromBinary(bytes, options);
|
|
730
|
+
}
|
|
731
|
+
static fromJson(jsonValue, options) {
|
|
732
|
+
return new AudioSourceOptions().fromJson(jsonValue, options);
|
|
733
|
+
}
|
|
734
|
+
static fromJsonString(jsonString, options) {
|
|
735
|
+
return new AudioSourceOptions().fromJsonString(jsonString, options);
|
|
736
|
+
}
|
|
737
|
+
static equals(a, b) {
|
|
738
|
+
return protobuf_1.proto3.util.equals(AudioSourceOptions, a, b);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
exports.AudioSourceOptions = AudioSourceOptions;
|
|
742
|
+
AudioSourceOptions.runtime = protobuf_1.proto3;
|
|
743
|
+
AudioSourceOptions.typeName = "livekit.proto.AudioSourceOptions";
|
|
744
|
+
AudioSourceOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
745
|
+
{ no: 1, name: "echo_cancellation", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
746
|
+
{ no: 2, name: "noise_suppression", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
747
|
+
{ no: 3, name: "auto_gain_control", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
748
|
+
]);
|
|
749
|
+
/**
|
|
750
|
+
* @generated from message livekit.proto.AudioSourceInfo
|
|
751
|
+
*/
|
|
752
|
+
class AudioSourceInfo extends protobuf_1.Message {
|
|
753
|
+
constructor(data) {
|
|
754
|
+
super();
|
|
755
|
+
/**
|
|
756
|
+
* @generated from field: livekit.proto.AudioSourceType type = 2;
|
|
757
|
+
*/
|
|
758
|
+
this.type = AudioSourceType.AUDIO_SOURCE_NATIVE;
|
|
759
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
760
|
+
}
|
|
761
|
+
static fromBinary(bytes, options) {
|
|
762
|
+
return new AudioSourceInfo().fromBinary(bytes, options);
|
|
763
|
+
}
|
|
764
|
+
static fromJson(jsonValue, options) {
|
|
765
|
+
return new AudioSourceInfo().fromJson(jsonValue, options);
|
|
766
|
+
}
|
|
767
|
+
static fromJsonString(jsonString, options) {
|
|
768
|
+
return new AudioSourceInfo().fromJsonString(jsonString, options);
|
|
769
|
+
}
|
|
770
|
+
static equals(a, b) {
|
|
771
|
+
return protobuf_1.proto3.util.equals(AudioSourceInfo, a, b);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
exports.AudioSourceInfo = AudioSourceInfo;
|
|
775
|
+
AudioSourceInfo.runtime = protobuf_1.proto3;
|
|
776
|
+
AudioSourceInfo.typeName = "livekit.proto.AudioSourceInfo";
|
|
777
|
+
AudioSourceInfo.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
778
|
+
{ no: 2, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(AudioSourceType) },
|
|
779
|
+
]);
|
|
780
|
+
/**
|
|
781
|
+
* @generated from message livekit.proto.OwnedAudioSource
|
|
782
|
+
*/
|
|
783
|
+
class OwnedAudioSource extends protobuf_1.Message {
|
|
784
|
+
constructor(data) {
|
|
785
|
+
super();
|
|
786
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
787
|
+
}
|
|
788
|
+
static fromBinary(bytes, options) {
|
|
789
|
+
return new OwnedAudioSource().fromBinary(bytes, options);
|
|
790
|
+
}
|
|
791
|
+
static fromJson(jsonValue, options) {
|
|
792
|
+
return new OwnedAudioSource().fromJson(jsonValue, options);
|
|
793
|
+
}
|
|
794
|
+
static fromJsonString(jsonString, options) {
|
|
795
|
+
return new OwnedAudioSource().fromJsonString(jsonString, options);
|
|
796
|
+
}
|
|
797
|
+
static equals(a, b) {
|
|
798
|
+
return protobuf_1.proto3.util.equals(OwnedAudioSource, a, b);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
exports.OwnedAudioSource = OwnedAudioSource;
|
|
802
|
+
OwnedAudioSource.runtime = protobuf_1.proto3;
|
|
803
|
+
OwnedAudioSource.typeName = "livekit.proto.OwnedAudioSource";
|
|
804
|
+
OwnedAudioSource.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
805
|
+
{ no: 1, name: "handle", kind: "message", T: handle_pb_js_1.FfiOwnedHandle },
|
|
806
|
+
{ no: 2, name: "info", kind: "message", T: AudioSourceInfo },
|
|
807
|
+
]);
|
|
808
|
+
/**
|
|
809
|
+
* @generated from message livekit.proto.AudioResamplerInfo
|
|
810
|
+
*/
|
|
811
|
+
class AudioResamplerInfo extends protobuf_1.Message {
|
|
812
|
+
constructor(data) {
|
|
813
|
+
super();
|
|
814
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
815
|
+
}
|
|
816
|
+
static fromBinary(bytes, options) {
|
|
817
|
+
return new AudioResamplerInfo().fromBinary(bytes, options);
|
|
818
|
+
}
|
|
819
|
+
static fromJson(jsonValue, options) {
|
|
820
|
+
return new AudioResamplerInfo().fromJson(jsonValue, options);
|
|
821
|
+
}
|
|
822
|
+
static fromJsonString(jsonString, options) {
|
|
823
|
+
return new AudioResamplerInfo().fromJsonString(jsonString, options);
|
|
824
|
+
}
|
|
825
|
+
static equals(a, b) {
|
|
826
|
+
return protobuf_1.proto3.util.equals(AudioResamplerInfo, a, b);
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
exports.AudioResamplerInfo = AudioResamplerInfo;
|
|
830
|
+
AudioResamplerInfo.runtime = protobuf_1.proto3;
|
|
831
|
+
AudioResamplerInfo.typeName = "livekit.proto.AudioResamplerInfo";
|
|
832
|
+
AudioResamplerInfo.fields = protobuf_1.proto3.util.newFieldList(() => []);
|
|
833
|
+
/**
|
|
834
|
+
* @generated from message livekit.proto.OwnedAudioResampler
|
|
835
|
+
*/
|
|
836
|
+
class OwnedAudioResampler extends protobuf_1.Message {
|
|
837
|
+
constructor(data) {
|
|
838
|
+
super();
|
|
839
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
840
|
+
}
|
|
841
|
+
static fromBinary(bytes, options) {
|
|
842
|
+
return new OwnedAudioResampler().fromBinary(bytes, options);
|
|
843
|
+
}
|
|
844
|
+
static fromJson(jsonValue, options) {
|
|
845
|
+
return new OwnedAudioResampler().fromJson(jsonValue, options);
|
|
846
|
+
}
|
|
847
|
+
static fromJsonString(jsonString, options) {
|
|
848
|
+
return new OwnedAudioResampler().fromJsonString(jsonString, options);
|
|
849
|
+
}
|
|
850
|
+
static equals(a, b) {
|
|
851
|
+
return protobuf_1.proto3.util.equals(OwnedAudioResampler, a, b);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
exports.OwnedAudioResampler = OwnedAudioResampler;
|
|
855
|
+
OwnedAudioResampler.runtime = protobuf_1.proto3;
|
|
856
|
+
OwnedAudioResampler.typeName = "livekit.proto.OwnedAudioResampler";
|
|
857
|
+
OwnedAudioResampler.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
858
|
+
{ no: 1, name: "handle", kind: "message", T: handle_pb_js_1.FfiOwnedHandle },
|
|
859
|
+
{ no: 2, name: "info", kind: "message", T: AudioResamplerInfo },
|
|
860
|
+
]);
|
|
861
|
+
//# sourceMappingURL=audio_frame_pb.js.map
|