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