@livekit/rtc-node 0.0.2 → 0.0.3
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 +13 -0
- package/dist/audio_frame.js +36 -0
- package/dist/audio_frame.js.map +1 -0
- package/dist/audio_source.d.ts +13 -0
- package/dist/audio_source.js +42 -0
- package/dist/audio_source.js.map +1 -0
- package/dist/audio_stream.d.ts +23 -0
- package/dist/audio_stream.js +54 -0
- package/dist/audio_stream.js.map +1 -0
- package/dist/e2ee.d.ts +43 -0
- package/dist/e2ee.js +232 -0
- package/dist/e2ee.js.map +1 -0
- package/dist/ffi_client.d.ts +22 -0
- package/dist/ffi_client.js +57 -0
- package/dist/ffi_client.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +71 -0
- package/dist/index.js.map +1 -0
- package/dist/native.d.ts +5 -0
- package/dist/native.js +297 -0
- package/dist/native.js.map +1 -0
- package/dist/participant.d.ts +29 -0
- package/dist/participant.js +120 -0
- package/dist/participant.js.map +1 -0
- package/dist/proto/audio_frame_pb.d.ts +555 -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 +651 -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 +671 -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 +29 -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 +53 -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 +1479 -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 +1712 -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 +352 -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 +854 -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 +94 -0
- package/dist/room.js +285 -0
- package/dist/room.js.map +1 -0
- package/dist/track.d.ts +34 -0
- package/dist/track.js +72 -0
- package/dist/track.js.map +1 -0
- package/dist/track_publication.d.ts +30 -0
- package/dist/track_publication.js +66 -0
- package/dist/track_publication.js.map +1 -0
- package/dist/video_frame.d.ts +110 -0
- package/dist/video_frame.js +364 -0
- package/dist/video_frame.js.map +1 -0
- package/dist/video_source.d.ts +13 -0
- package/dist/video_source.js +44 -0
- package/dist/video_source.js.map +1 -0
- package/dist/video_stream.d.ts +23 -0
- package/dist/video_stream.js +56 -0
- package/dist/video_stream.js.map +1 -0
- package/package.json +15 -11
- 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,1121 @@
|
|
|
1
|
+
// Copyright 2023 LiveKit, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
// @generated by protoc-gen-es v1.4.2 with parameter "target=ts"
|
|
16
|
+
// @generated from file audio_frame.proto (package livekit.proto, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
|
+
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
22
|
+
import { FfiOwnedHandle } from "./handle_pb.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum livekit.proto.AudioStreamType
|
|
26
|
+
*/
|
|
27
|
+
export enum AudioStreamType {
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: AUDIO_STREAM_NATIVE = 0;
|
|
30
|
+
*/
|
|
31
|
+
AUDIO_STREAM_NATIVE = 0,
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @generated from enum value: AUDIO_STREAM_HTML = 1;
|
|
35
|
+
*/
|
|
36
|
+
AUDIO_STREAM_HTML = 1,
|
|
37
|
+
}
|
|
38
|
+
// Retrieve enum metadata with: proto3.getEnumType(AudioStreamType)
|
|
39
|
+
proto3.util.setEnumType(AudioStreamType, "livekit.proto.AudioStreamType", [
|
|
40
|
+
{ no: 0, name: "AUDIO_STREAM_NATIVE" },
|
|
41
|
+
{ no: 1, name: "AUDIO_STREAM_HTML" },
|
|
42
|
+
]);
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum livekit.proto.AudioSourceType
|
|
46
|
+
*/
|
|
47
|
+
export enum AudioSourceType {
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum value: AUDIO_SOURCE_NATIVE = 0;
|
|
50
|
+
*/
|
|
51
|
+
AUDIO_SOURCE_NATIVE = 0,
|
|
52
|
+
}
|
|
53
|
+
// Retrieve enum metadata with: proto3.getEnumType(AudioSourceType)
|
|
54
|
+
proto3.util.setEnumType(AudioSourceType, "livekit.proto.AudioSourceType", [
|
|
55
|
+
{ no: 0, name: "AUDIO_SOURCE_NATIVE" },
|
|
56
|
+
]);
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Allocate a new AudioFrameBuffer
|
|
60
|
+
* This is not necessary required because the data structure is fairly simple
|
|
61
|
+
* But keep the API consistent with VideoFrame
|
|
62
|
+
*
|
|
63
|
+
* @generated from message livekit.proto.AllocAudioBufferRequest
|
|
64
|
+
*/
|
|
65
|
+
export class AllocAudioBufferRequest extends Message<AllocAudioBufferRequest> {
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: uint32 sample_rate = 1;
|
|
68
|
+
*/
|
|
69
|
+
sampleRate = 0;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: uint32 num_channels = 2;
|
|
73
|
+
*/
|
|
74
|
+
numChannels = 0;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @generated from field: uint32 samples_per_channel = 3;
|
|
78
|
+
*/
|
|
79
|
+
samplesPerChannel = 0;
|
|
80
|
+
|
|
81
|
+
constructor(data?: PartialMessage<AllocAudioBufferRequest>) {
|
|
82
|
+
super();
|
|
83
|
+
proto3.util.initPartial(data, this);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
87
|
+
static readonly typeName = "livekit.proto.AllocAudioBufferRequest";
|
|
88
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
89
|
+
{ no: 1, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
90
|
+
{ no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
91
|
+
{ no: 3, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
92
|
+
]);
|
|
93
|
+
|
|
94
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllocAudioBufferRequest {
|
|
95
|
+
return new AllocAudioBufferRequest().fromBinary(bytes, options);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllocAudioBufferRequest {
|
|
99
|
+
return new AllocAudioBufferRequest().fromJson(jsonValue, options);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllocAudioBufferRequest {
|
|
103
|
+
return new AllocAudioBufferRequest().fromJsonString(jsonString, options);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static equals(a: AllocAudioBufferRequest | PlainMessage<AllocAudioBufferRequest> | undefined, b: AllocAudioBufferRequest | PlainMessage<AllocAudioBufferRequest> | undefined): boolean {
|
|
107
|
+
return proto3.util.equals(AllocAudioBufferRequest, a, b);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @generated from message livekit.proto.AllocAudioBufferResponse
|
|
113
|
+
*/
|
|
114
|
+
export class AllocAudioBufferResponse extends Message<AllocAudioBufferResponse> {
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: livekit.proto.OwnedAudioFrameBuffer buffer = 1;
|
|
117
|
+
*/
|
|
118
|
+
buffer?: OwnedAudioFrameBuffer;
|
|
119
|
+
|
|
120
|
+
constructor(data?: PartialMessage<AllocAudioBufferResponse>) {
|
|
121
|
+
super();
|
|
122
|
+
proto3.util.initPartial(data, this);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
126
|
+
static readonly typeName = "livekit.proto.AllocAudioBufferResponse";
|
|
127
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
128
|
+
{ no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer },
|
|
129
|
+
]);
|
|
130
|
+
|
|
131
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllocAudioBufferResponse {
|
|
132
|
+
return new AllocAudioBufferResponse().fromBinary(bytes, options);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllocAudioBufferResponse {
|
|
136
|
+
return new AllocAudioBufferResponse().fromJson(jsonValue, options);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllocAudioBufferResponse {
|
|
140
|
+
return new AllocAudioBufferResponse().fromJsonString(jsonString, options);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
static equals(a: AllocAudioBufferResponse | PlainMessage<AllocAudioBufferResponse> | undefined, b: AllocAudioBufferResponse | PlainMessage<AllocAudioBufferResponse> | undefined): boolean {
|
|
144
|
+
return proto3.util.equals(AllocAudioBufferResponse, a, b);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Create a new AudioStream
|
|
150
|
+
* AudioStream is used to receive audio frames from a track
|
|
151
|
+
*
|
|
152
|
+
* @generated from message livekit.proto.NewAudioStreamRequest
|
|
153
|
+
*/
|
|
154
|
+
export class NewAudioStreamRequest extends Message<NewAudioStreamRequest> {
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: uint64 track_handle = 1;
|
|
157
|
+
*/
|
|
158
|
+
trackHandle = protoInt64.zero;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: livekit.proto.AudioStreamType type = 2;
|
|
162
|
+
*/
|
|
163
|
+
type = AudioStreamType.AUDIO_STREAM_NATIVE;
|
|
164
|
+
|
|
165
|
+
constructor(data?: PartialMessage<NewAudioStreamRequest>) {
|
|
166
|
+
super();
|
|
167
|
+
proto3.util.initPartial(data, this);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
171
|
+
static readonly typeName = "livekit.proto.NewAudioStreamRequest";
|
|
172
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
173
|
+
{ no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
174
|
+
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(AudioStreamType) },
|
|
175
|
+
]);
|
|
176
|
+
|
|
177
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamRequest {
|
|
178
|
+
return new NewAudioStreamRequest().fromBinary(bytes, options);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioStreamRequest {
|
|
182
|
+
return new NewAudioStreamRequest().fromJson(jsonValue, options);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioStreamRequest {
|
|
186
|
+
return new NewAudioStreamRequest().fromJsonString(jsonString, options);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
static equals(a: NewAudioStreamRequest | PlainMessage<NewAudioStreamRequest> | undefined, b: NewAudioStreamRequest | PlainMessage<NewAudioStreamRequest> | undefined): boolean {
|
|
190
|
+
return proto3.util.equals(NewAudioStreamRequest, a, b);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @generated from message livekit.proto.NewAudioStreamResponse
|
|
196
|
+
*/
|
|
197
|
+
export class NewAudioStreamResponse extends Message<NewAudioStreamResponse> {
|
|
198
|
+
/**
|
|
199
|
+
* @generated from field: livekit.proto.OwnedAudioStream stream = 1;
|
|
200
|
+
*/
|
|
201
|
+
stream?: OwnedAudioStream;
|
|
202
|
+
|
|
203
|
+
constructor(data?: PartialMessage<NewAudioStreamResponse>) {
|
|
204
|
+
super();
|
|
205
|
+
proto3.util.initPartial(data, this);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
209
|
+
static readonly typeName = "livekit.proto.NewAudioStreamResponse";
|
|
210
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
211
|
+
{ no: 1, name: "stream", kind: "message", T: OwnedAudioStream },
|
|
212
|
+
]);
|
|
213
|
+
|
|
214
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamResponse {
|
|
215
|
+
return new NewAudioStreamResponse().fromBinary(bytes, options);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioStreamResponse {
|
|
219
|
+
return new NewAudioStreamResponse().fromJson(jsonValue, options);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioStreamResponse {
|
|
223
|
+
return new NewAudioStreamResponse().fromJsonString(jsonString, options);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
static equals(a: NewAudioStreamResponse | PlainMessage<NewAudioStreamResponse> | undefined, b: NewAudioStreamResponse | PlainMessage<NewAudioStreamResponse> | undefined): boolean {
|
|
227
|
+
return proto3.util.equals(NewAudioStreamResponse, a, b);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Create a new AudioSource
|
|
233
|
+
*
|
|
234
|
+
* @generated from message livekit.proto.NewAudioSourceRequest
|
|
235
|
+
*/
|
|
236
|
+
export class NewAudioSourceRequest extends Message<NewAudioSourceRequest> {
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: livekit.proto.AudioSourceType type = 1;
|
|
239
|
+
*/
|
|
240
|
+
type = AudioSourceType.AUDIO_SOURCE_NATIVE;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @generated from field: optional livekit.proto.AudioSourceOptions options = 2;
|
|
244
|
+
*/
|
|
245
|
+
options?: AudioSourceOptions;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @generated from field: uint32 sample_rate = 3;
|
|
249
|
+
*/
|
|
250
|
+
sampleRate = 0;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @generated from field: uint32 num_channels = 4;
|
|
254
|
+
*/
|
|
255
|
+
numChannels = 0;
|
|
256
|
+
|
|
257
|
+
constructor(data?: PartialMessage<NewAudioSourceRequest>) {
|
|
258
|
+
super();
|
|
259
|
+
proto3.util.initPartial(data, this);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
263
|
+
static readonly typeName = "livekit.proto.NewAudioSourceRequest";
|
|
264
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
265
|
+
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AudioSourceType) },
|
|
266
|
+
{ no: 2, name: "options", kind: "message", T: AudioSourceOptions, opt: true },
|
|
267
|
+
{ no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
268
|
+
{ no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
269
|
+
]);
|
|
270
|
+
|
|
271
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioSourceRequest {
|
|
272
|
+
return new NewAudioSourceRequest().fromBinary(bytes, options);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioSourceRequest {
|
|
276
|
+
return new NewAudioSourceRequest().fromJson(jsonValue, options);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioSourceRequest {
|
|
280
|
+
return new NewAudioSourceRequest().fromJsonString(jsonString, options);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
static equals(a: NewAudioSourceRequest | PlainMessage<NewAudioSourceRequest> | undefined, b: NewAudioSourceRequest | PlainMessage<NewAudioSourceRequest> | undefined): boolean {
|
|
284
|
+
return proto3.util.equals(NewAudioSourceRequest, a, b);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @generated from message livekit.proto.NewAudioSourceResponse
|
|
290
|
+
*/
|
|
291
|
+
export class NewAudioSourceResponse extends Message<NewAudioSourceResponse> {
|
|
292
|
+
/**
|
|
293
|
+
* @generated from field: livekit.proto.OwnedAudioSource source = 1;
|
|
294
|
+
*/
|
|
295
|
+
source?: OwnedAudioSource;
|
|
296
|
+
|
|
297
|
+
constructor(data?: PartialMessage<NewAudioSourceResponse>) {
|
|
298
|
+
super();
|
|
299
|
+
proto3.util.initPartial(data, this);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
303
|
+
static readonly typeName = "livekit.proto.NewAudioSourceResponse";
|
|
304
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
305
|
+
{ no: 1, name: "source", kind: "message", T: OwnedAudioSource },
|
|
306
|
+
]);
|
|
307
|
+
|
|
308
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioSourceResponse {
|
|
309
|
+
return new NewAudioSourceResponse().fromBinary(bytes, options);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioSourceResponse {
|
|
313
|
+
return new NewAudioSourceResponse().fromJson(jsonValue, options);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioSourceResponse {
|
|
317
|
+
return new NewAudioSourceResponse().fromJsonString(jsonString, options);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
static equals(a: NewAudioSourceResponse | PlainMessage<NewAudioSourceResponse> | undefined, b: NewAudioSourceResponse | PlainMessage<NewAudioSourceResponse> | undefined): boolean {
|
|
321
|
+
return proto3.util.equals(NewAudioSourceResponse, a, b);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Push a frame to an AudioSource
|
|
327
|
+
* The data provided must be available as long as the client receive the callback.
|
|
328
|
+
*
|
|
329
|
+
* @generated from message livekit.proto.CaptureAudioFrameRequest
|
|
330
|
+
*/
|
|
331
|
+
export class CaptureAudioFrameRequest extends Message<CaptureAudioFrameRequest> {
|
|
332
|
+
/**
|
|
333
|
+
* @generated from field: uint64 source_handle = 1;
|
|
334
|
+
*/
|
|
335
|
+
sourceHandle = protoInt64.zero;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: livekit.proto.AudioFrameBufferInfo buffer = 2;
|
|
339
|
+
*/
|
|
340
|
+
buffer?: AudioFrameBufferInfo;
|
|
341
|
+
|
|
342
|
+
constructor(data?: PartialMessage<CaptureAudioFrameRequest>) {
|
|
343
|
+
super();
|
|
344
|
+
proto3.util.initPartial(data, this);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
348
|
+
static readonly typeName = "livekit.proto.CaptureAudioFrameRequest";
|
|
349
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
350
|
+
{ no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
351
|
+
{ no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo },
|
|
352
|
+
]);
|
|
353
|
+
|
|
354
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameRequest {
|
|
355
|
+
return new CaptureAudioFrameRequest().fromBinary(bytes, options);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameRequest {
|
|
359
|
+
return new CaptureAudioFrameRequest().fromJson(jsonValue, options);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameRequest {
|
|
363
|
+
return new CaptureAudioFrameRequest().fromJsonString(jsonString, options);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
static equals(a: CaptureAudioFrameRequest | PlainMessage<CaptureAudioFrameRequest> | undefined, b: CaptureAudioFrameRequest | PlainMessage<CaptureAudioFrameRequest> | undefined): boolean {
|
|
367
|
+
return proto3.util.equals(CaptureAudioFrameRequest, a, b);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* @generated from message livekit.proto.CaptureAudioFrameResponse
|
|
373
|
+
*/
|
|
374
|
+
export class CaptureAudioFrameResponse extends Message<CaptureAudioFrameResponse> {
|
|
375
|
+
/**
|
|
376
|
+
* @generated from field: uint64 async_id = 1;
|
|
377
|
+
*/
|
|
378
|
+
asyncId = protoInt64.zero;
|
|
379
|
+
|
|
380
|
+
constructor(data?: PartialMessage<CaptureAudioFrameResponse>) {
|
|
381
|
+
super();
|
|
382
|
+
proto3.util.initPartial(data, this);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
386
|
+
static readonly typeName = "livekit.proto.CaptureAudioFrameResponse";
|
|
387
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
388
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
389
|
+
]);
|
|
390
|
+
|
|
391
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameResponse {
|
|
392
|
+
return new CaptureAudioFrameResponse().fromBinary(bytes, options);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameResponse {
|
|
396
|
+
return new CaptureAudioFrameResponse().fromJson(jsonValue, options);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameResponse {
|
|
400
|
+
return new CaptureAudioFrameResponse().fromJsonString(jsonString, options);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
static equals(a: CaptureAudioFrameResponse | PlainMessage<CaptureAudioFrameResponse> | undefined, b: CaptureAudioFrameResponse | PlainMessage<CaptureAudioFrameResponse> | undefined): boolean {
|
|
404
|
+
return proto3.util.equals(CaptureAudioFrameResponse, a, b);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* @generated from message livekit.proto.CaptureAudioFrameCallback
|
|
410
|
+
*/
|
|
411
|
+
export class CaptureAudioFrameCallback extends Message<CaptureAudioFrameCallback> {
|
|
412
|
+
/**
|
|
413
|
+
* @generated from field: uint64 async_id = 1;
|
|
414
|
+
*/
|
|
415
|
+
asyncId = protoInt64.zero;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @generated from field: optional string error = 2;
|
|
419
|
+
*/
|
|
420
|
+
error?: string;
|
|
421
|
+
|
|
422
|
+
constructor(data?: PartialMessage<CaptureAudioFrameCallback>) {
|
|
423
|
+
super();
|
|
424
|
+
proto3.util.initPartial(data, this);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
428
|
+
static readonly typeName = "livekit.proto.CaptureAudioFrameCallback";
|
|
429
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
430
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
431
|
+
{ no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
432
|
+
]);
|
|
433
|
+
|
|
434
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameCallback {
|
|
435
|
+
return new CaptureAudioFrameCallback().fromBinary(bytes, options);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameCallback {
|
|
439
|
+
return new CaptureAudioFrameCallback().fromJson(jsonValue, options);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameCallback {
|
|
443
|
+
return new CaptureAudioFrameCallback().fromJsonString(jsonString, options);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
static equals(a: CaptureAudioFrameCallback | PlainMessage<CaptureAudioFrameCallback> | undefined, b: CaptureAudioFrameCallback | PlainMessage<CaptureAudioFrameCallback> | undefined): boolean {
|
|
447
|
+
return proto3.util.equals(CaptureAudioFrameCallback, a, b);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Create a new AudioResampler
|
|
453
|
+
*
|
|
454
|
+
* @generated from message livekit.proto.NewAudioResamplerRequest
|
|
455
|
+
*/
|
|
456
|
+
export class NewAudioResamplerRequest extends Message<NewAudioResamplerRequest> {
|
|
457
|
+
constructor(data?: PartialMessage<NewAudioResamplerRequest>) {
|
|
458
|
+
super();
|
|
459
|
+
proto3.util.initPartial(data, this);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
463
|
+
static readonly typeName = "livekit.proto.NewAudioResamplerRequest";
|
|
464
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
465
|
+
]);
|
|
466
|
+
|
|
467
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioResamplerRequest {
|
|
468
|
+
return new NewAudioResamplerRequest().fromBinary(bytes, options);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioResamplerRequest {
|
|
472
|
+
return new NewAudioResamplerRequest().fromJson(jsonValue, options);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioResamplerRequest {
|
|
476
|
+
return new NewAudioResamplerRequest().fromJsonString(jsonString, options);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
static equals(a: NewAudioResamplerRequest | PlainMessage<NewAudioResamplerRequest> | undefined, b: NewAudioResamplerRequest | PlainMessage<NewAudioResamplerRequest> | undefined): boolean {
|
|
480
|
+
return proto3.util.equals(NewAudioResamplerRequest, a, b);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @generated from message livekit.proto.NewAudioResamplerResponse
|
|
486
|
+
*/
|
|
487
|
+
export class NewAudioResamplerResponse extends Message<NewAudioResamplerResponse> {
|
|
488
|
+
/**
|
|
489
|
+
* @generated from field: livekit.proto.OwnedAudioResampler resampler = 1;
|
|
490
|
+
*/
|
|
491
|
+
resampler?: OwnedAudioResampler;
|
|
492
|
+
|
|
493
|
+
constructor(data?: PartialMessage<NewAudioResamplerResponse>) {
|
|
494
|
+
super();
|
|
495
|
+
proto3.util.initPartial(data, this);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
499
|
+
static readonly typeName = "livekit.proto.NewAudioResamplerResponse";
|
|
500
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
501
|
+
{ no: 1, name: "resampler", kind: "message", T: OwnedAudioResampler },
|
|
502
|
+
]);
|
|
503
|
+
|
|
504
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioResamplerResponse {
|
|
505
|
+
return new NewAudioResamplerResponse().fromBinary(bytes, options);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioResamplerResponse {
|
|
509
|
+
return new NewAudioResamplerResponse().fromJson(jsonValue, options);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioResamplerResponse {
|
|
513
|
+
return new NewAudioResamplerResponse().fromJsonString(jsonString, options);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
static equals(a: NewAudioResamplerResponse | PlainMessage<NewAudioResamplerResponse> | undefined, b: NewAudioResamplerResponse | PlainMessage<NewAudioResamplerResponse> | undefined): boolean {
|
|
517
|
+
return proto3.util.equals(NewAudioResamplerResponse, a, b);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Remix and resample an audio frame
|
|
523
|
+
*
|
|
524
|
+
* @generated from message livekit.proto.RemixAndResampleRequest
|
|
525
|
+
*/
|
|
526
|
+
export class RemixAndResampleRequest extends Message<RemixAndResampleRequest> {
|
|
527
|
+
/**
|
|
528
|
+
* @generated from field: uint64 resampler_handle = 1;
|
|
529
|
+
*/
|
|
530
|
+
resamplerHandle = protoInt64.zero;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* @generated from field: livekit.proto.AudioFrameBufferInfo buffer = 2;
|
|
534
|
+
*/
|
|
535
|
+
buffer?: AudioFrameBufferInfo;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @generated from field: uint32 num_channels = 3;
|
|
539
|
+
*/
|
|
540
|
+
numChannels = 0;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* @generated from field: uint32 sample_rate = 4;
|
|
544
|
+
*/
|
|
545
|
+
sampleRate = 0;
|
|
546
|
+
|
|
547
|
+
constructor(data?: PartialMessage<RemixAndResampleRequest>) {
|
|
548
|
+
super();
|
|
549
|
+
proto3.util.initPartial(data, this);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
553
|
+
static readonly typeName = "livekit.proto.RemixAndResampleRequest";
|
|
554
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
555
|
+
{ no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
556
|
+
{ no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo },
|
|
557
|
+
{ no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
558
|
+
{ no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
559
|
+
]);
|
|
560
|
+
|
|
561
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemixAndResampleRequest {
|
|
562
|
+
return new RemixAndResampleRequest().fromBinary(bytes, options);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemixAndResampleRequest {
|
|
566
|
+
return new RemixAndResampleRequest().fromJson(jsonValue, options);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleRequest {
|
|
570
|
+
return new RemixAndResampleRequest().fromJsonString(jsonString, options);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
static equals(a: RemixAndResampleRequest | PlainMessage<RemixAndResampleRequest> | undefined, b: RemixAndResampleRequest | PlainMessage<RemixAndResampleRequest> | undefined): boolean {
|
|
574
|
+
return proto3.util.equals(RemixAndResampleRequest, a, b);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @generated from message livekit.proto.RemixAndResampleResponse
|
|
580
|
+
*/
|
|
581
|
+
export class RemixAndResampleResponse extends Message<RemixAndResampleResponse> {
|
|
582
|
+
/**
|
|
583
|
+
* @generated from field: livekit.proto.OwnedAudioFrameBuffer buffer = 1;
|
|
584
|
+
*/
|
|
585
|
+
buffer?: OwnedAudioFrameBuffer;
|
|
586
|
+
|
|
587
|
+
constructor(data?: PartialMessage<RemixAndResampleResponse>) {
|
|
588
|
+
super();
|
|
589
|
+
proto3.util.initPartial(data, this);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
593
|
+
static readonly typeName = "livekit.proto.RemixAndResampleResponse";
|
|
594
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
595
|
+
{ no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer },
|
|
596
|
+
]);
|
|
597
|
+
|
|
598
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemixAndResampleResponse {
|
|
599
|
+
return new RemixAndResampleResponse().fromBinary(bytes, options);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemixAndResampleResponse {
|
|
603
|
+
return new RemixAndResampleResponse().fromJson(jsonValue, options);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleResponse {
|
|
607
|
+
return new RemixAndResampleResponse().fromJsonString(jsonString, options);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
static equals(a: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined, b: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined): boolean {
|
|
611
|
+
return proto3.util.equals(RemixAndResampleResponse, a, b);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* @generated from message livekit.proto.AudioFrameBufferInfo
|
|
617
|
+
*/
|
|
618
|
+
export class AudioFrameBufferInfo extends Message<AudioFrameBufferInfo> {
|
|
619
|
+
/**
|
|
620
|
+
* *const i16
|
|
621
|
+
*
|
|
622
|
+
* @generated from field: uint64 data_ptr = 1;
|
|
623
|
+
*/
|
|
624
|
+
dataPtr = protoInt64.zero;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* @generated from field: uint32 num_channels = 2;
|
|
628
|
+
*/
|
|
629
|
+
numChannels = 0;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* @generated from field: uint32 sample_rate = 3;
|
|
633
|
+
*/
|
|
634
|
+
sampleRate = 0;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* @generated from field: uint32 samples_per_channel = 4;
|
|
638
|
+
*/
|
|
639
|
+
samplesPerChannel = 0;
|
|
640
|
+
|
|
641
|
+
constructor(data?: PartialMessage<AudioFrameBufferInfo>) {
|
|
642
|
+
super();
|
|
643
|
+
proto3.util.initPartial(data, this);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
647
|
+
static readonly typeName = "livekit.proto.AudioFrameBufferInfo";
|
|
648
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
649
|
+
{ no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
650
|
+
{ no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
651
|
+
{ no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
652
|
+
{ no: 4, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
653
|
+
]);
|
|
654
|
+
|
|
655
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioFrameBufferInfo {
|
|
656
|
+
return new AudioFrameBufferInfo().fromBinary(bytes, options);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioFrameBufferInfo {
|
|
660
|
+
return new AudioFrameBufferInfo().fromJson(jsonValue, options);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioFrameBufferInfo {
|
|
664
|
+
return new AudioFrameBufferInfo().fromJsonString(jsonString, options);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
static equals(a: AudioFrameBufferInfo | PlainMessage<AudioFrameBufferInfo> | undefined, b: AudioFrameBufferInfo | PlainMessage<AudioFrameBufferInfo> | undefined): boolean {
|
|
668
|
+
return proto3.util.equals(AudioFrameBufferInfo, a, b);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* @generated from message livekit.proto.OwnedAudioFrameBuffer
|
|
674
|
+
*/
|
|
675
|
+
export class OwnedAudioFrameBuffer extends Message<OwnedAudioFrameBuffer> {
|
|
676
|
+
/**
|
|
677
|
+
* @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
|
|
678
|
+
*/
|
|
679
|
+
handle?: FfiOwnedHandle;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* @generated from field: livekit.proto.AudioFrameBufferInfo info = 2;
|
|
683
|
+
*/
|
|
684
|
+
info?: AudioFrameBufferInfo;
|
|
685
|
+
|
|
686
|
+
constructor(data?: PartialMessage<OwnedAudioFrameBuffer>) {
|
|
687
|
+
super();
|
|
688
|
+
proto3.util.initPartial(data, this);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
692
|
+
static readonly typeName = "livekit.proto.OwnedAudioFrameBuffer";
|
|
693
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
694
|
+
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
695
|
+
{ no: 2, name: "info", kind: "message", T: AudioFrameBufferInfo },
|
|
696
|
+
]);
|
|
697
|
+
|
|
698
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioFrameBuffer {
|
|
699
|
+
return new OwnedAudioFrameBuffer().fromBinary(bytes, options);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioFrameBuffer {
|
|
703
|
+
return new OwnedAudioFrameBuffer().fromJson(jsonValue, options);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioFrameBuffer {
|
|
707
|
+
return new OwnedAudioFrameBuffer().fromJsonString(jsonString, options);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
static equals(a: OwnedAudioFrameBuffer | PlainMessage<OwnedAudioFrameBuffer> | undefined, b: OwnedAudioFrameBuffer | PlainMessage<OwnedAudioFrameBuffer> | undefined): boolean {
|
|
711
|
+
return proto3.util.equals(OwnedAudioFrameBuffer, a, b);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @generated from message livekit.proto.AudioStreamInfo
|
|
717
|
+
*/
|
|
718
|
+
export class AudioStreamInfo extends Message<AudioStreamInfo> {
|
|
719
|
+
/**
|
|
720
|
+
* @generated from field: livekit.proto.AudioStreamType type = 1;
|
|
721
|
+
*/
|
|
722
|
+
type = AudioStreamType.AUDIO_STREAM_NATIVE;
|
|
723
|
+
|
|
724
|
+
constructor(data?: PartialMessage<AudioStreamInfo>) {
|
|
725
|
+
super();
|
|
726
|
+
proto3.util.initPartial(data, this);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
730
|
+
static readonly typeName = "livekit.proto.AudioStreamInfo";
|
|
731
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
732
|
+
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AudioStreamType) },
|
|
733
|
+
]);
|
|
734
|
+
|
|
735
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamInfo {
|
|
736
|
+
return new AudioStreamInfo().fromBinary(bytes, options);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamInfo {
|
|
740
|
+
return new AudioStreamInfo().fromJson(jsonValue, options);
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamInfo {
|
|
744
|
+
return new AudioStreamInfo().fromJsonString(jsonString, options);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
static equals(a: AudioStreamInfo | PlainMessage<AudioStreamInfo> | undefined, b: AudioStreamInfo | PlainMessage<AudioStreamInfo> | undefined): boolean {
|
|
748
|
+
return proto3.util.equals(AudioStreamInfo, a, b);
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* @generated from message livekit.proto.OwnedAudioStream
|
|
754
|
+
*/
|
|
755
|
+
export class OwnedAudioStream extends Message<OwnedAudioStream> {
|
|
756
|
+
/**
|
|
757
|
+
* @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
|
|
758
|
+
*/
|
|
759
|
+
handle?: FfiOwnedHandle;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* @generated from field: livekit.proto.AudioStreamInfo info = 2;
|
|
763
|
+
*/
|
|
764
|
+
info?: AudioStreamInfo;
|
|
765
|
+
|
|
766
|
+
constructor(data?: PartialMessage<OwnedAudioStream>) {
|
|
767
|
+
super();
|
|
768
|
+
proto3.util.initPartial(data, this);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
772
|
+
static readonly typeName = "livekit.proto.OwnedAudioStream";
|
|
773
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
774
|
+
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
775
|
+
{ no: 2, name: "info", kind: "message", T: AudioStreamInfo },
|
|
776
|
+
]);
|
|
777
|
+
|
|
778
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioStream {
|
|
779
|
+
return new OwnedAudioStream().fromBinary(bytes, options);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioStream {
|
|
783
|
+
return new OwnedAudioStream().fromJson(jsonValue, options);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioStream {
|
|
787
|
+
return new OwnedAudioStream().fromJsonString(jsonString, options);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
static equals(a: OwnedAudioStream | PlainMessage<OwnedAudioStream> | undefined, b: OwnedAudioStream | PlainMessage<OwnedAudioStream> | undefined): boolean {
|
|
791
|
+
return proto3.util.equals(OwnedAudioStream, a, b);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* @generated from message livekit.proto.AudioStreamEvent
|
|
797
|
+
*/
|
|
798
|
+
export class AudioStreamEvent extends Message<AudioStreamEvent> {
|
|
799
|
+
/**
|
|
800
|
+
* @generated from field: uint64 stream_handle = 1;
|
|
801
|
+
*/
|
|
802
|
+
streamHandle = protoInt64.zero;
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* @generated from oneof livekit.proto.AudioStreamEvent.message
|
|
806
|
+
*/
|
|
807
|
+
message: {
|
|
808
|
+
/**
|
|
809
|
+
* @generated from field: livekit.proto.AudioFrameReceived frame_received = 2;
|
|
810
|
+
*/
|
|
811
|
+
value: AudioFrameReceived;
|
|
812
|
+
case: "frameReceived";
|
|
813
|
+
} | {
|
|
814
|
+
/**
|
|
815
|
+
* @generated from field: livekit.proto.AudioStreamEOS eos = 3;
|
|
816
|
+
*/
|
|
817
|
+
value: AudioStreamEOS;
|
|
818
|
+
case: "eos";
|
|
819
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
820
|
+
|
|
821
|
+
constructor(data?: PartialMessage<AudioStreamEvent>) {
|
|
822
|
+
super();
|
|
823
|
+
proto3.util.initPartial(data, this);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
827
|
+
static readonly typeName = "livekit.proto.AudioStreamEvent";
|
|
828
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
829
|
+
{ no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
830
|
+
{ no: 2, name: "frame_received", kind: "message", T: AudioFrameReceived, oneof: "message" },
|
|
831
|
+
{ no: 3, name: "eos", kind: "message", T: AudioStreamEOS, oneof: "message" },
|
|
832
|
+
]);
|
|
833
|
+
|
|
834
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamEvent {
|
|
835
|
+
return new AudioStreamEvent().fromBinary(bytes, options);
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamEvent {
|
|
839
|
+
return new AudioStreamEvent().fromJson(jsonValue, options);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamEvent {
|
|
843
|
+
return new AudioStreamEvent().fromJsonString(jsonString, options);
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
static equals(a: AudioStreamEvent | PlainMessage<AudioStreamEvent> | undefined, b: AudioStreamEvent | PlainMessage<AudioStreamEvent> | undefined): boolean {
|
|
847
|
+
return proto3.util.equals(AudioStreamEvent, a, b);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* @generated from message livekit.proto.AudioFrameReceived
|
|
853
|
+
*/
|
|
854
|
+
export class AudioFrameReceived extends Message<AudioFrameReceived> {
|
|
855
|
+
/**
|
|
856
|
+
* @generated from field: livekit.proto.OwnedAudioFrameBuffer frame = 1;
|
|
857
|
+
*/
|
|
858
|
+
frame?: OwnedAudioFrameBuffer;
|
|
859
|
+
|
|
860
|
+
constructor(data?: PartialMessage<AudioFrameReceived>) {
|
|
861
|
+
super();
|
|
862
|
+
proto3.util.initPartial(data, this);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
866
|
+
static readonly typeName = "livekit.proto.AudioFrameReceived";
|
|
867
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
868
|
+
{ no: 1, name: "frame", kind: "message", T: OwnedAudioFrameBuffer },
|
|
869
|
+
]);
|
|
870
|
+
|
|
871
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioFrameReceived {
|
|
872
|
+
return new AudioFrameReceived().fromBinary(bytes, options);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioFrameReceived {
|
|
876
|
+
return new AudioFrameReceived().fromJson(jsonValue, options);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioFrameReceived {
|
|
880
|
+
return new AudioFrameReceived().fromJsonString(jsonString, options);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
static equals(a: AudioFrameReceived | PlainMessage<AudioFrameReceived> | undefined, b: AudioFrameReceived | PlainMessage<AudioFrameReceived> | undefined): boolean {
|
|
884
|
+
return proto3.util.equals(AudioFrameReceived, a, b);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* @generated from message livekit.proto.AudioStreamEOS
|
|
890
|
+
*/
|
|
891
|
+
export class AudioStreamEOS extends Message<AudioStreamEOS> {
|
|
892
|
+
constructor(data?: PartialMessage<AudioStreamEOS>) {
|
|
893
|
+
super();
|
|
894
|
+
proto3.util.initPartial(data, this);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
898
|
+
static readonly typeName = "livekit.proto.AudioStreamEOS";
|
|
899
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
900
|
+
]);
|
|
901
|
+
|
|
902
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamEOS {
|
|
903
|
+
return new AudioStreamEOS().fromBinary(bytes, options);
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamEOS {
|
|
907
|
+
return new AudioStreamEOS().fromJson(jsonValue, options);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamEOS {
|
|
911
|
+
return new AudioStreamEOS().fromJsonString(jsonString, options);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
static equals(a: AudioStreamEOS | PlainMessage<AudioStreamEOS> | undefined, b: AudioStreamEOS | PlainMessage<AudioStreamEOS> | undefined): boolean {
|
|
915
|
+
return proto3.util.equals(AudioStreamEOS, a, b);
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* @generated from message livekit.proto.AudioSourceOptions
|
|
921
|
+
*/
|
|
922
|
+
export class AudioSourceOptions extends Message<AudioSourceOptions> {
|
|
923
|
+
/**
|
|
924
|
+
* @generated from field: bool echo_cancellation = 1;
|
|
925
|
+
*/
|
|
926
|
+
echoCancellation = false;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* @generated from field: bool noise_suppression = 2;
|
|
930
|
+
*/
|
|
931
|
+
noiseSuppression = false;
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* @generated from field: bool auto_gain_control = 3;
|
|
935
|
+
*/
|
|
936
|
+
autoGainControl = false;
|
|
937
|
+
|
|
938
|
+
constructor(data?: PartialMessage<AudioSourceOptions>) {
|
|
939
|
+
super();
|
|
940
|
+
proto3.util.initPartial(data, this);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
944
|
+
static readonly typeName = "livekit.proto.AudioSourceOptions";
|
|
945
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
946
|
+
{ no: 1, name: "echo_cancellation", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
947
|
+
{ no: 2, name: "noise_suppression", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
948
|
+
{ no: 3, name: "auto_gain_control", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
949
|
+
]);
|
|
950
|
+
|
|
951
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceOptions {
|
|
952
|
+
return new AudioSourceOptions().fromBinary(bytes, options);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceOptions {
|
|
956
|
+
return new AudioSourceOptions().fromJson(jsonValue, options);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceOptions {
|
|
960
|
+
return new AudioSourceOptions().fromJsonString(jsonString, options);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
static equals(a: AudioSourceOptions | PlainMessage<AudioSourceOptions> | undefined, b: AudioSourceOptions | PlainMessage<AudioSourceOptions> | undefined): boolean {
|
|
964
|
+
return proto3.util.equals(AudioSourceOptions, a, b);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* @generated from message livekit.proto.AudioSourceInfo
|
|
970
|
+
*/
|
|
971
|
+
export class AudioSourceInfo extends Message<AudioSourceInfo> {
|
|
972
|
+
/**
|
|
973
|
+
* @generated from field: livekit.proto.AudioSourceType type = 2;
|
|
974
|
+
*/
|
|
975
|
+
type = AudioSourceType.AUDIO_SOURCE_NATIVE;
|
|
976
|
+
|
|
977
|
+
constructor(data?: PartialMessage<AudioSourceInfo>) {
|
|
978
|
+
super();
|
|
979
|
+
proto3.util.initPartial(data, this);
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
983
|
+
static readonly typeName = "livekit.proto.AudioSourceInfo";
|
|
984
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
985
|
+
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(AudioSourceType) },
|
|
986
|
+
]);
|
|
987
|
+
|
|
988
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceInfo {
|
|
989
|
+
return new AudioSourceInfo().fromBinary(bytes, options);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceInfo {
|
|
993
|
+
return new AudioSourceInfo().fromJson(jsonValue, options);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceInfo {
|
|
997
|
+
return new AudioSourceInfo().fromJsonString(jsonString, options);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
static equals(a: AudioSourceInfo | PlainMessage<AudioSourceInfo> | undefined, b: AudioSourceInfo | PlainMessage<AudioSourceInfo> | undefined): boolean {
|
|
1001
|
+
return proto3.util.equals(AudioSourceInfo, a, b);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* @generated from message livekit.proto.OwnedAudioSource
|
|
1007
|
+
*/
|
|
1008
|
+
export class OwnedAudioSource extends Message<OwnedAudioSource> {
|
|
1009
|
+
/**
|
|
1010
|
+
* @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
|
|
1011
|
+
*/
|
|
1012
|
+
handle?: FfiOwnedHandle;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* @generated from field: livekit.proto.AudioSourceInfo info = 2;
|
|
1016
|
+
*/
|
|
1017
|
+
info?: AudioSourceInfo;
|
|
1018
|
+
|
|
1019
|
+
constructor(data?: PartialMessage<OwnedAudioSource>) {
|
|
1020
|
+
super();
|
|
1021
|
+
proto3.util.initPartial(data, this);
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1025
|
+
static readonly typeName = "livekit.proto.OwnedAudioSource";
|
|
1026
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1027
|
+
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
1028
|
+
{ no: 2, name: "info", kind: "message", T: AudioSourceInfo },
|
|
1029
|
+
]);
|
|
1030
|
+
|
|
1031
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioSource {
|
|
1032
|
+
return new OwnedAudioSource().fromBinary(bytes, options);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioSource {
|
|
1036
|
+
return new OwnedAudioSource().fromJson(jsonValue, options);
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioSource {
|
|
1040
|
+
return new OwnedAudioSource().fromJsonString(jsonString, options);
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
static equals(a: OwnedAudioSource | PlainMessage<OwnedAudioSource> | undefined, b: OwnedAudioSource | PlainMessage<OwnedAudioSource> | undefined): boolean {
|
|
1044
|
+
return proto3.util.equals(OwnedAudioSource, a, b);
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* @generated from message livekit.proto.AudioResamplerInfo
|
|
1050
|
+
*/
|
|
1051
|
+
export class AudioResamplerInfo extends Message<AudioResamplerInfo> {
|
|
1052
|
+
constructor(data?: PartialMessage<AudioResamplerInfo>) {
|
|
1053
|
+
super();
|
|
1054
|
+
proto3.util.initPartial(data, this);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1058
|
+
static readonly typeName = "livekit.proto.AudioResamplerInfo";
|
|
1059
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1060
|
+
]);
|
|
1061
|
+
|
|
1062
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioResamplerInfo {
|
|
1063
|
+
return new AudioResamplerInfo().fromBinary(bytes, options);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioResamplerInfo {
|
|
1067
|
+
return new AudioResamplerInfo().fromJson(jsonValue, options);
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioResamplerInfo {
|
|
1071
|
+
return new AudioResamplerInfo().fromJsonString(jsonString, options);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
static equals(a: AudioResamplerInfo | PlainMessage<AudioResamplerInfo> | undefined, b: AudioResamplerInfo | PlainMessage<AudioResamplerInfo> | undefined): boolean {
|
|
1075
|
+
return proto3.util.equals(AudioResamplerInfo, a, b);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* @generated from message livekit.proto.OwnedAudioResampler
|
|
1081
|
+
*/
|
|
1082
|
+
export class OwnedAudioResampler extends Message<OwnedAudioResampler> {
|
|
1083
|
+
/**
|
|
1084
|
+
* @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
|
|
1085
|
+
*/
|
|
1086
|
+
handle?: FfiOwnedHandle;
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* @generated from field: livekit.proto.AudioResamplerInfo info = 2;
|
|
1090
|
+
*/
|
|
1091
|
+
info?: AudioResamplerInfo;
|
|
1092
|
+
|
|
1093
|
+
constructor(data?: PartialMessage<OwnedAudioResampler>) {
|
|
1094
|
+
super();
|
|
1095
|
+
proto3.util.initPartial(data, this);
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1099
|
+
static readonly typeName = "livekit.proto.OwnedAudioResampler";
|
|
1100
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1101
|
+
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
1102
|
+
{ no: 2, name: "info", kind: "message", T: AudioResamplerInfo },
|
|
1103
|
+
]);
|
|
1104
|
+
|
|
1105
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioResampler {
|
|
1106
|
+
return new OwnedAudioResampler().fromBinary(bytes, options);
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioResampler {
|
|
1110
|
+
return new OwnedAudioResampler().fromJson(jsonValue, options);
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioResampler {
|
|
1114
|
+
return new OwnedAudioResampler().fromJsonString(jsonString, options);
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
static equals(a: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined, b: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined): boolean {
|
|
1118
|
+
return proto3.util.equals(OwnedAudioResampler, a, b);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
|