@livekit/rtc-node 0.11.1 → 0.12.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 +94 -0
- package/dist/audio_frame.cjs.map +1 -0
- package/dist/audio_frame.js +64 -67
- package/dist/audio_frame.js.map +1 -1
- package/dist/audio_resampler.cjs +153 -0
- package/dist/audio_resampler.cjs.map +1 -0
- package/dist/audio_resampler.js +129 -134
- package/dist/audio_resampler.js.map +1 -1
- package/dist/audio_source.cjs +116 -0
- package/dist/audio_source.cjs.map +1 -0
- package/dist/audio_source.js +92 -85
- package/dist/audio_source.js.map +1 -1
- package/dist/audio_stream.cjs +104 -0
- package/dist/audio_stream.cjs.map +1 -0
- package/dist/audio_stream.js +77 -78
- package/dist/audio_stream.js.map +1 -1
- package/dist/e2ee.cjs +268 -0
- package/dist/e2ee.cjs.map +1 -0
- package/dist/e2ee.d.ts.map +1 -1
- package/dist/e2ee.js +244 -221
- package/dist/e2ee.js.map +1 -1
- package/dist/ffi_client.cjs +95 -0
- package/dist/ffi_client.cjs.map +1 -0
- package/dist/ffi_client.d.ts +2 -2
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +67 -48
- package/dist/ffi_client.js.map +1 -1
- package/dist/index.cjs +166 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +119 -48
- package/dist/index.js.map +1 -1
- package/dist/napi/native.d.cjs +17 -0
- package/dist/napi/native.d.cjs.map +1 -0
- package/dist/napi/native.d.js +1 -0
- package/dist/napi/native.d.js.map +1 -0
- package/dist/native.cjs +301 -0
- package/dist/native.d.ts +19 -0
- package/dist/native.js +15 -0
- package/dist/participant.cjs +388 -0
- package/dist/participant.cjs.map +1 -0
- package/dist/participant.js +363 -339
- package/dist/participant.js.map +1 -1
- package/dist/proto/audio_frame_pb.cjs +193 -0
- package/dist/proto/audio_frame_pb.cjs.map +1 -0
- package/dist/proto/audio_frame_pb.js +120 -320
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/e2ee_pb.cjs +131 -0
- package/dist/proto/e2ee_pb.cjs.map +1 -0
- package/dist/proto/e2ee_pb.js +76 -202
- package/dist/proto/e2ee_pb.js.map +1 -1
- package/dist/proto/ffi_pb.cjs +76 -0
- package/dist/proto/ffi_pb.cjs.map +1 -0
- package/dist/proto/ffi_pb.js +33 -92
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/handle_pb.cjs +33 -0
- package/dist/proto/handle_pb.cjs.map +1 -0
- package/dist/proto/handle_pb.js +6 -22
- package/dist/proto/handle_pb.js.map +1 -1
- package/dist/proto/participant_pb.cjs +50 -0
- package/dist/proto/participant_pb.cjs.map +1 -0
- package/dist/proto/participant_pb.js +19 -57
- package/dist/proto/participant_pb.js.map +1 -1
- package/dist/proto/room_pb.cjs +370 -0
- package/dist/proto/room_pb.cjs.map +1 -0
- package/dist/proto/room_pb.js +239 -632
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/rpc_pb.cjs +63 -0
- package/dist/proto/rpc_pb.cjs.map +1 -0
- package/dist/proto/rpc_pb.js +26 -72
- package/dist/proto/rpc_pb.js.map +1 -1
- package/dist/proto/stats_pb.cjs +256 -0
- package/dist/proto/stats_pb.cjs.map +1 -0
- package/dist/proto/stats_pb.js +175 -456
- package/dist/proto/stats_pb.js.map +1 -1
- package/dist/proto/track_pb.cjs +116 -0
- package/dist/proto/track_pb.cjs.map +1 -0
- package/dist/proto/track_pb.js +65 -171
- package/dist/proto/track_pb.js.map +1 -1
- package/dist/proto/video_frame_pb.cjs +161 -0
- package/dist/proto/video_frame_pb.cjs.map +1 -0
- package/dist/proto/video_frame_pb.js +101 -269
- package/dist/proto/video_frame_pb.js.map +1 -1
- package/dist/room.cjs +440 -0
- package/dist/room.cjs.map +1 -0
- package/dist/room.js +384 -373
- package/dist/room.js.map +1 -1
- package/dist/rpc.cjs +89 -0
- package/dist/rpc.cjs.map +1 -0
- package/dist/rpc.js +59 -63
- package/dist/rpc.js.map +1 -1
- package/dist/track.cjs +100 -0
- package/dist/track.cjs.map +1 -0
- package/dist/track.js +66 -62
- package/dist/track.js.map +1 -1
- package/dist/track_publication.cjs +106 -0
- package/dist/track_publication.cjs.map +1 -0
- package/dist/track_publication.js +76 -74
- package/dist/track_publication.js.map +1 -1
- package/dist/transcription.cjs +17 -0
- package/dist/transcription.cjs.map +1 -0
- package/dist/transcription.js +0 -1
- package/dist/transcription.js.map +1 -1
- package/dist/types.cjs +17 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.js +0 -1
- package/dist/types.js.map +1 -1
- package/dist/version.cjs +29 -0
- package/dist/version.cjs.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +4 -1
- package/dist/version.js.map +1 -1
- package/dist/video_frame.cjs +242 -0
- package/dist/video_frame.cjs.map +1 -0
- package/dist/video_frame.js +212 -201
- package/dist/video_frame.js.map +1 -1
- package/dist/video_source.cjs +63 -0
- package/dist/video_source.cjs.map +1 -0
- package/dist/video_source.d.ts.map +1 -1
- package/dist/video_source.js +42 -37
- package/dist/video_source.js.map +1 -1
- package/dist/video_stream.cjs +103 -0
- package/dist/video_stream.cjs.map +1 -0
- package/dist/video_stream.js +76 -77
- package/dist/video_stream.js.map +1 -1
- package/package.json +18 -9
- package/src/audio_frame.ts +2 -2
- package/src/audio_source.ts +2 -2
- package/src/e2ee.ts +2 -2
- package/src/ffi_client.ts +4 -4
- package/src/index.ts +14 -8
- package/src/version.ts +1 -1
- package/src/video_frame.ts +1 -1
- package/src/video_source.ts +5 -1
package/dist/participant.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"participant.js","sourceRoot":"","sources":["../src/participant.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,EAAE;AACF,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C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AK,EAAE,CAAC,CAAC;QAC7E,CAAC;IACH,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAGhD,YAAY,UAA4B;QACtC,KAAK,CAAC,UAAU,CAAC,CAAC;QAHpB,sBAAiB,GAAwC,IAAI,GAAG,EAAE,CAAC;IAInE,CAAC;CACF"}
|
|
1
|
+
{"version":3,"sources":["../src/participant.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { create } from '@bufbuild/protobuf';\nimport { FfiClient, FfiHandle } from './ffi_client.js';\nimport type { OwnedParticipant, ParticipantInfo, ParticipantKind } from './proto/participant_pb.js';\nimport type {\n PublishDataCallback,\n PublishDataResponse,\n PublishSipDtmfCallback,\n PublishSipDtmfResponse,\n PublishTrackCallback,\n PublishTrackResponse,\n PublishTranscriptionCallback,\n PublishTranscriptionResponse,\n SendChatMessageCallback,\n SendChatMessageResponse,\n SetLocalAttributesCallback,\n SetLocalAttributesResponse,\n SetLocalMetadataCallback,\n SetLocalMetadataResponse,\n SetLocalNameCallback,\n SetLocalNameResponse,\n TrackPublishOptions,\n UnpublishTrackCallback,\n UnpublishTrackResponse,\n} from './proto/room_pb.js';\nimport {\n ChatMessageSchema,\n EditChatMessageRequestSchema,\n PublishDataRequestSchema,\n PublishSipDtmfRequestSchema,\n PublishTrackRequestSchema,\n PublishTranscriptionRequestSchema,\n SendChatMessageRequestSchema,\n SetLocalAttributesRequestSchema,\n SetLocalMetadataRequestSchema,\n SetLocalNameRequestSchema,\n UnpublishTrackRequestSchema,\n} from './proto/room_pb.js';\nimport { TranscriptionSegmentSchema } from './proto/room_pb.js';\nimport {\n PerformRpcRequestSchema,\n RegisterRpcMethodRequestSchema,\n RpcMethodInvocationResponseRequestSchema,\n UnregisterRpcMethodRequestSchema,\n} from './proto/rpc_pb.js';\nimport type {\n PerformRpcCallback,\n PerformRpcResponse,\n RegisterRpcMethodResponse,\n RpcMethodInvocationResponseResponse,\n UnregisterRpcMethodResponse,\n} from './proto/rpc_pb.js';\nimport { type PerformRpcParams, RpcError, type RpcInvocationData } from './rpc.js';\nimport type { LocalTrack } from './track.js';\nimport type { RemoteTrackPublication, TrackPublication } from './track_publication.js';\nimport { LocalTrackPublication } from './track_publication.js';\nimport type { Transcription } from './transcription.js';\nimport type { ChatMessage } from './types.js';\n\nexport abstract class Participant {\n /** @internal */\n info: ParticipantInfo;\n\n /** @internal */\n ffi_handle: FfiHandle;\n\n trackPublications = new Map<string, TrackPublication>();\n\n constructor(owned_info: OwnedParticipant) {\n this.info = owned_info.info!;\n this.ffi_handle = new FfiHandle(owned_info.handle!.id);\n }\n\n get sid(): string {\n return this.info.sid;\n }\n\n get name(): string {\n return this.info.name;\n }\n\n get identity(): string {\n return this.info.identity;\n }\n\n get metadata(): string {\n return this.info.metadata;\n }\n\n get attributes(): Record<string, string> {\n return this.info.attributes;\n }\n\n get kind(): ParticipantKind {\n return this.info.kind;\n }\n}\n\nexport type DataPublishOptions = {\n /**\n * whether to send this as reliable or lossy.\n * For data that you need delivery guarantee (such as chat messages), use Reliable.\n * For data that should arrive as quickly as possible, but you are ok with dropped\n * packets, use Lossy.\n */\n reliable?: boolean;\n /**\n * the identities of participants who will receive the message, will be sent to every one if empty\n */\n destination_identities?: string[];\n /** the topic under which the message gets published */\n topic?: string;\n};\n\nexport class LocalParticipant extends Participant {\n private rpcHandlers: Map<string, (data: RpcInvocationData) => Promise<string>> = new Map();\n\n trackPublications: Map<string, LocalTrackPublication> = new Map();\n\n async publishData(data: Uint8Array, options: DataPublishOptions) {\n const req = create(PublishDataRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n dataPtr: FfiClient.instance.retrievePtr(data),\n dataLen: BigInt(data.byteLength),\n reliable: options.reliable,\n topic: options.topic,\n destinationIdentities: options.destination_identities,\n });\n\n const res = FfiClient.instance.request<PublishDataResponse>({\n message: { case: 'publishData', value: req },\n });\n\n const cb = await FfiClient.instance.waitFor<PublishDataCallback>((ev) => {\n return ev.message.case == 'publishData' && ev.message.value.asyncId == res.asyncId;\n });\n\n if (cb.error) {\n throw new Error(cb.error);\n }\n }\n\n async publishDtmf(code: number, digit: string) {\n const req = create(PublishSipDtmfRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n code,\n digit,\n });\n\n const res = FfiClient.instance.request<PublishSipDtmfResponse>({\n message: { case: 'publishSipDtmf', value: req },\n });\n\n const cb = await FfiClient.instance.waitFor<PublishSipDtmfCallback>((ev) => {\n return ev.message.case == 'publishSipDtmf' && ev.message.value.asyncId == res.asyncId;\n });\n\n if (cb.error) {\n throw new Error(cb.error);\n }\n }\n\n async publishTranscription(transcription: Transcription) {\n const req = create(PublishTranscriptionRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n participantIdentity: transcription.participantIdentity,\n segments: transcription.segments.map((s) =>\n create(TranscriptionSegmentSchema, {\n id: s.id,\n text: s.text,\n startTime: s.startTime,\n endTime: s.endTime,\n final: s.final,\n language: s.language,\n }),\n ),\n trackId: transcription.trackSid,\n });\n\n const res = FfiClient.instance.request<PublishTranscriptionResponse>({\n message: { case: 'publishTranscription', value: req },\n });\n\n const cb = await FfiClient.instance.waitFor<PublishTranscriptionCallback>((ev) => {\n return ev.message.case == 'publishTranscription' && ev.message.value.asyncId == res.asyncId;\n });\n\n if (cb.error) {\n throw new Error(cb.error);\n }\n }\n\n async updateMetadata(metadata: string) {\n const req = create(SetLocalMetadataRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n metadata: metadata,\n });\n\n const res = FfiClient.instance.request<SetLocalMetadataResponse>({\n message: { case: 'setLocalMetadata', value: req },\n });\n\n await FfiClient.instance.waitFor<SetLocalMetadataCallback>((ev) => {\n return ev.message.case == 'setLocalMetadata' && ev.message.value.asyncId == res.asyncId;\n });\n }\n\n /**\n * Sends a chat message to participants in the room\n *\n * @param text - The text content of the chat message.\n * @param destinationIdentities - An optional array of recipient identities to whom the message will be sent. If omitted, the message is broadcast to all participants.\n * @param senderIdentity - An optional identity of the sender. If omitted, the default sender identity is used.\n *\n */\n async sendChatMessage(\n text: string,\n destinationIdentities?: Array<string>,\n senderIdentity?: string,\n ): Promise<ChatMessage> {\n const req = create(SendChatMessageRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n message: text,\n destinationIdentities,\n senderIdentity,\n });\n\n const res = FfiClient.instance.request<SendChatMessageResponse>({\n message: { case: 'sendChatMessage', value: req },\n });\n\n const cb = await FfiClient.instance.waitFor<SendChatMessageCallback>((ev) => {\n return ev.message.case == 'chatMessage' && ev.message.value.asyncId == res.asyncId;\n });\n\n if (cb.message.case !== 'chatMessage') {\n throw new Error(cb.message.value ?? 'Unknown Error');\n }\n const { id, timestamp, editTimestamp, message } = cb.message.value;\n return { id, timestamp: Number(timestamp), editTimestamp: Number(editTimestamp), message };\n }\n\n /**\n * @experimental\n */\n async editChatMessage(\n editText: string,\n originalMessage: ChatMessage,\n destinationIdentities?: Array<string>,\n senderIdentity?: string,\n ): Promise<ChatMessage> {\n const req = create(EditChatMessageRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n editText,\n originalMessage: create(ChatMessageSchema, {\n ...originalMessage,\n timestamp: BigInt(originalMessage.timestamp),\n editTimestamp: originalMessage.editTimestamp\n ? BigInt(originalMessage.editTimestamp)\n : undefined,\n }),\n destinationIdentities,\n senderIdentity,\n });\n\n const res = FfiClient.instance.request<SendChatMessageResponse>({\n message: { case: 'editChatMessage', value: req },\n });\n\n const cb = await FfiClient.instance.waitFor<SendChatMessageCallback>((ev) => {\n return ev.message.case == 'chatMessage' && ev.message.value.asyncId == res.asyncId;\n });\n\n if (cb.message.case !== 'chatMessage') {\n throw new Error(cb.message.value ?? 'Unknown Error');\n }\n const { id, timestamp, editTimestamp, message } = cb.message.value;\n return { id, timestamp: Number(timestamp), editTimestamp: Number(editTimestamp), message };\n }\n\n async updateName(name: string) {\n const req = create(SetLocalNameRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n name: name,\n });\n\n const res = FfiClient.instance.request<SetLocalNameResponse>({\n message: { case: 'setLocalName', value: req },\n });\n\n await FfiClient.instance.waitFor<SetLocalNameCallback>((ev) => {\n return ev.message.case == 'setLocalName' && ev.message.value.asyncId == res.asyncId;\n });\n }\n\n async setAttributes(attributes: Record<string, string>) {\n const req = create(SetLocalAttributesRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n attributes: Array.from(Object.entries(attributes)).map(([key, value]) => {\n return { key, value };\n }),\n });\n\n const res = FfiClient.instance.request<SetLocalAttributesResponse>({\n message: { case: 'setLocalAttributes', value: req },\n });\n\n await FfiClient.instance.waitFor<SetLocalAttributesCallback>((ev) => {\n return ev.message.case == 'setLocalAttributes' && ev.message.value.asyncId == res.asyncId;\n });\n }\n\n async publishTrack(\n track: LocalTrack,\n options: TrackPublishOptions,\n ): Promise<LocalTrackPublication> {\n const req = create(PublishTrackRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n trackHandle: track.ffi_handle.handle,\n options: options,\n });\n\n const res = FfiClient.instance.request<PublishTrackResponse>({\n message: { case: 'publishTrack', value: req },\n });\n\n const cb = await FfiClient.instance.waitFor<PublishTrackCallback>((ev) => {\n return ev.message.case == 'publishTrack' && ev.message.value.asyncId == res.asyncId;\n });\n\n if (cb.message.case !== 'publication') {\n throw new Error(cb.message.value ?? 'Unknown Error');\n }\n\n const track_publication = new LocalTrackPublication(cb.message.value!);\n track_publication.track = track;\n this.trackPublications.set(track_publication.sid, track_publication);\n\n return track_publication;\n }\n\n async unpublishTrack(trackSid: string) {\n const req = create(UnpublishTrackRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n trackSid: trackSid,\n });\n\n const res = FfiClient.instance.request<UnpublishTrackResponse>({\n message: { case: 'unpublishTrack', value: req },\n });\n\n const cb = await FfiClient.instance.waitFor<UnpublishTrackCallback>((ev) => {\n return ev.message.case == 'unpublishTrack' && ev.message.value.asyncId == res.asyncId;\n });\n\n if (cb.error) {\n throw new Error(cb.error);\n }\n\n const pub = this.trackPublications.get(trackSid);\n if (pub) {\n pub.track = undefined;\n }\n this.trackPublications.delete(trackSid);\n }\n\n /**\n * Initiate an RPC call to a remote participant.\n * @param params - Parameters for initiating the RPC call, see {@link PerformRpcParams}\n * @returns A promise that resolves with the response payload or rejects with an error.\n * @throws Error on failure. Details in `message`.\n */\n async performRpc({\n destinationIdentity,\n method,\n payload,\n responseTimeout,\n }: PerformRpcParams): Promise<string> {\n const req = create(PerformRpcRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n destinationIdentity,\n method,\n payload,\n responseTimeoutMs: responseTimeout,\n });\n\n const res = FfiClient.instance.request<PerformRpcResponse>({\n message: { case: 'performRpc', value: req },\n });\n\n const cb = await FfiClient.instance.waitFor<PerformRpcCallback>((ev) => {\n return ev.message.case === 'performRpc' && ev.message.value.asyncId === res.asyncId;\n });\n\n if (cb.error) {\n throw RpcError.fromProto(cb.error);\n }\n\n return cb.payload;\n }\n\n /**\n * Establishes the participant as a receiver for calls of the specified RPC method.\n * Will overwrite any existing callback for the same method.\n *\n * @param method - The name of the indicated RPC method\n * @param handler - Will be invoked when an RPC request for this method is received\n * @returns A promise that resolves when the method is successfully registered\n *\n * @example\n * ```typescript\n * room.localParticipant?.registerRpcMethod(\n * 'greet',\n * async (data: RpcInvocationData) => {\n * console.log(`Received greeting from ${data.callerIdentity}: ${data.payload}`);\n * return `Hello, ${data.callerIdentity}!`;\n * }\n * );\n * ```\n *\n * See {@link RpcInvocationData} for more details on invocation params.\n *\n * The handler should return a Promise that resolves to a string.\n * If unable to respond within `responseTimeout`, the request will result in an error on the caller's side.\n *\n * You may throw errors of type `RpcError` with a string `message` in the handler,\n * and they will be received on the caller's side with the message intact.\n * Other errors thrown in your handler will not be transmitted as-is, and will instead arrive to the caller as `1500` (\"Application Error\").\n */\n registerRpcMethod(method: string, handler: (data: RpcInvocationData) => Promise<string>) {\n this.rpcHandlers.set(method, handler);\n\n const req = create(RegisterRpcMethodRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n method,\n });\n\n FfiClient.instance.request<RegisterRpcMethodResponse>({\n message: { case: 'registerRpcMethod', value: req },\n });\n }\n\n /**\n * Unregisters a previously registered RPC method.\n *\n * @param method - The name of the RPC method to unregister\n */\n unregisterRpcMethod(method: string) {\n this.rpcHandlers.delete(method);\n\n const req = create(UnregisterRpcMethodRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n method,\n });\n\n FfiClient.instance.request<UnregisterRpcMethodResponse>({\n message: { case: 'unregisterRpcMethod', value: req },\n });\n }\n\n /** @internal */\n async handleRpcMethodInvocation(\n invocationId: bigint,\n method: string,\n requestId: string,\n callerIdentity: string,\n payload: string,\n responseTimeout: number,\n ) {\n let responseError: RpcError | null = null;\n let responsePayload: string | null = null;\n\n const handler = this.rpcHandlers.get(method);\n\n if (!handler) {\n responseError = RpcError.builtIn('UNSUPPORTED_METHOD');\n } else {\n try {\n responsePayload = await handler({ requestId, callerIdentity, payload, responseTimeout });\n } catch (error) {\n if (error instanceof RpcError) {\n responseError = error;\n } else {\n console.warn(\n `Uncaught error returned by RPC handler for ${method}. Returning APPLICATION_ERROR instead.`,\n error,\n );\n responseError = RpcError.builtIn('APPLICATION_ERROR');\n }\n }\n }\n\n const req = create(RpcMethodInvocationResponseRequestSchema, {\n localParticipantHandle: this.ffi_handle.handle,\n invocationId,\n error: responseError ? responseError.toProto() : undefined,\n payload: responsePayload ?? undefined,\n });\n\n const res = FfiClient.instance.request<RpcMethodInvocationResponseResponse>({\n message: { case: 'rpcMethodInvocationResponse', value: req },\n });\n\n if (res.error) {\n console.warn(`error sending rpc method invocation response: ${res.error}`);\n }\n }\n}\n\nexport class RemoteParticipant extends Participant {\n trackPublications: Map<string, RemoteTrackPublication> = new Map();\n\n constructor(owned_info: OwnedParticipant) {\n super(owned_info);\n }\n}\n"],"mappings":"AAGA,SAAS,cAAc;AACvB,SAAS,WAAW,iBAAiB;AAuBrC;AAAA,EACE;AA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ACtD;AAAA,MACF;AAAA,IACF;AAEA,UAAM,MAAM,OAAO,0CAA0C;AAAA,MAC3D,wBAAwB,KAAK,WAAW;AAAA,MACxC;AAAA,MACA,OAAO,gBAAgB,cAAc,QAAQ,IAAI;AAAA,MACjD,SAAS,mBAAmB;AAAA,IAC9B,CAAC;AAED,UAAM,MAAM,UAAU,SAAS,QAA6C;AAAA,MAC1E,SAAS,EAAE,MAAM,+BAA+B,OAAO,IAAI;AAAA,IAC7D,CAAC;AAED,QAAI,IAAI,OAAO;AACb,cAAQ,KAAK,iDAAiD,IAAI,KAAK,EAAE;AAAA,IAC3E;AAAA,EACF;AACF;AAEO,MAAM,0BAA0B,YAAY;AAAA,EAGjD,YAAY,YAA8B;AACxC,UAAM,UAAU;AAHlB,6BAAyD,oBAAI,IAAI;AAAA,EAIjE;AACF;","names":[]}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var audio_frame_pb_exports = {};
|
|
20
|
+
__export(audio_frame_pb_exports, {
|
|
21
|
+
AudioFrameBufferInfoSchema: () => AudioFrameBufferInfoSchema,
|
|
22
|
+
AudioFrameReceivedSchema: () => AudioFrameReceivedSchema,
|
|
23
|
+
AudioResamplerInfoSchema: () => AudioResamplerInfoSchema,
|
|
24
|
+
AudioSourceInfoSchema: () => AudioSourceInfoSchema,
|
|
25
|
+
AudioSourceOptionsSchema: () => AudioSourceOptionsSchema,
|
|
26
|
+
AudioSourceType: () => AudioSourceType,
|
|
27
|
+
AudioSourceTypeSchema: () => AudioSourceTypeSchema,
|
|
28
|
+
AudioStreamEOSSchema: () => AudioStreamEOSSchema,
|
|
29
|
+
AudioStreamEventSchema: () => AudioStreamEventSchema,
|
|
30
|
+
AudioStreamFromParticipantRequestSchema: () => AudioStreamFromParticipantRequestSchema,
|
|
31
|
+
AudioStreamFromParticipantResponseSchema: () => AudioStreamFromParticipantResponseSchema,
|
|
32
|
+
AudioStreamInfoSchema: () => AudioStreamInfoSchema,
|
|
33
|
+
AudioStreamType: () => AudioStreamType,
|
|
34
|
+
AudioStreamTypeSchema: () => AudioStreamTypeSchema,
|
|
35
|
+
CaptureAudioFrameCallbackSchema: () => CaptureAudioFrameCallbackSchema,
|
|
36
|
+
CaptureAudioFrameRequestSchema: () => CaptureAudioFrameRequestSchema,
|
|
37
|
+
CaptureAudioFrameResponseSchema: () => CaptureAudioFrameResponseSchema,
|
|
38
|
+
ClearAudioBufferRequestSchema: () => ClearAudioBufferRequestSchema,
|
|
39
|
+
ClearAudioBufferResponseSchema: () => ClearAudioBufferResponseSchema,
|
|
40
|
+
FlushSoxResamplerRequestSchema: () => FlushSoxResamplerRequestSchema,
|
|
41
|
+
FlushSoxResamplerResponseSchema: () => FlushSoxResamplerResponseSchema,
|
|
42
|
+
NewAudioResamplerRequestSchema: () => NewAudioResamplerRequestSchema,
|
|
43
|
+
NewAudioResamplerResponseSchema: () => NewAudioResamplerResponseSchema,
|
|
44
|
+
NewAudioSourceRequestSchema: () => NewAudioSourceRequestSchema,
|
|
45
|
+
NewAudioSourceResponseSchema: () => NewAudioSourceResponseSchema,
|
|
46
|
+
NewAudioStreamRequestSchema: () => NewAudioStreamRequestSchema,
|
|
47
|
+
NewAudioStreamResponseSchema: () => NewAudioStreamResponseSchema,
|
|
48
|
+
NewSoxResamplerRequestSchema: () => NewSoxResamplerRequestSchema,
|
|
49
|
+
NewSoxResamplerResponseSchema: () => NewSoxResamplerResponseSchema,
|
|
50
|
+
OwnedAudioFrameBufferSchema: () => OwnedAudioFrameBufferSchema,
|
|
51
|
+
OwnedAudioResamplerSchema: () => OwnedAudioResamplerSchema,
|
|
52
|
+
OwnedAudioSourceSchema: () => OwnedAudioSourceSchema,
|
|
53
|
+
OwnedAudioStreamSchema: () => OwnedAudioStreamSchema,
|
|
54
|
+
OwnedSoxResamplerSchema: () => OwnedSoxResamplerSchema,
|
|
55
|
+
PushSoxResamplerRequestSchema: () => PushSoxResamplerRequestSchema,
|
|
56
|
+
PushSoxResamplerResponseSchema: () => PushSoxResamplerResponseSchema,
|
|
57
|
+
RemixAndResampleRequestSchema: () => RemixAndResampleRequestSchema,
|
|
58
|
+
RemixAndResampleResponseSchema: () => RemixAndResampleResponseSchema,
|
|
59
|
+
SoxFlagBits: () => SoxFlagBits,
|
|
60
|
+
SoxFlagBitsSchema: () => SoxFlagBitsSchema,
|
|
61
|
+
SoxQualityRecipe: () => SoxQualityRecipe,
|
|
62
|
+
SoxQualityRecipeSchema: () => SoxQualityRecipeSchema,
|
|
63
|
+
SoxResamplerDataType: () => SoxResamplerDataType,
|
|
64
|
+
SoxResamplerDataTypeSchema: () => SoxResamplerDataTypeSchema,
|
|
65
|
+
SoxResamplerInfoSchema: () => SoxResamplerInfoSchema,
|
|
66
|
+
file_audio_frame: () => file_audio_frame
|
|
67
|
+
});
|
|
68
|
+
module.exports = __toCommonJS(audio_frame_pb_exports);
|
|
69
|
+
var import_codegenv1 = require("@bufbuild/protobuf/codegenv1");
|
|
70
|
+
var import_handle_pb = require("./handle_pb.cjs");
|
|
71
|
+
var import_track_pb = require("./track_pb.cjs");
|
|
72
|
+
const file_audio_frame = /* @__PURE__ */ (0, import_codegenv1.fileDesc)("ChFhdWRpb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90byKGAQoVTmV3QXVkaW9TdHJlYW1SZXF1ZXN0EhQKDHRyYWNrX2hhbmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5wcm90by5BdWRpb1N0cmVhbVR5cGUSEwoLc2FtcGxlX3JhdGUYAyABKA0SFAoMbnVtX2NoYW5uZWxzGAQgASgNIkkKFk5ld0F1ZGlvU3RyZWFtUmVzcG9uc2USLwoGc3RyZWFtGAEgAigLMh8ubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvU3RyZWFtIsoBCiFBdWRpb1N0cmVhbUZyb21QYXJ0aWNpcGFudFJlcXVlc3QSGgoScGFydGljaXBhbnRfaGFuZGxlGAEgAigEEiwKBHR5cGUYAiACKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZRIwCgx0cmFja19zb3VyY2UYAyABKA4yGi5saXZla2l0LnByb3RvLlRyYWNrU291cmNlEhMKC3NhbXBsZV9yYXRlGAUgASgNEhQKDG51bV9jaGFubmVscxgGIAEoDSJVCiJBdWRpb1N0cmVhbUZyb21QYXJ0aWNpcGFudFJlc3BvbnNlEi8KBnN0cmVhbRgBIAIoCzIfLmxpdmVraXQucHJvdG8uT3duZWRBdWRpb1N0cmVhbSK7AQoVTmV3QXVkaW9Tb3VyY2VSZXF1ZXN0EiwKBHR5cGUYASACKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU291cmNlVHlwZRIyCgdvcHRpb25zGAIgASgLMiEubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZU9wdGlvbnMSEwoLc2FtcGxlX3JhdGUYAyACKA0SFAoMbnVtX2NoYW5uZWxzGAQgAigNEhUKDXF1ZXVlX3NpemVfbXMYBSABKA0iSQoWTmV3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AigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIvCgRpbmZvGAIgAigLMiEubGl2ZWtpdC5wcm90by5BdWRpb1Jlc2FtcGxlckluZm8iEgoQU294UmVzYW1wbGVySW5mbyJxChFPd25lZFNveFJlc2FtcGxlchItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEi0KBGluZm8YAiACKAsyHy5saXZla2l0LnByb3RvLlNveFJlc2FtcGxlckluZm8qSgoUU294UmVzYW1wbGVyRGF0YVR5cGUSGAoUU09YUl9EQVRBVFlQRV9JTlQxNkkQABIYChRTT1hSX0RBVEFUWVBFX0lOVDE2UxABKosBChBTb3hRdWFsaXR5UmVjaXBlEhYKElNPWFJfUVVBTElUWV9RVUlDSxAAEhQKEFNPWFJfUVVBTElUWV9MT1cQARIXChNTT1hSX1FVQUxJVFlfTUVESVVNEAISFQoRU09YUl9RVUFMSVRZX0hJR0gQAxIZChVTT1hSX1FVQUxJVFlfVkVSWUhJR0gQBCqXAQoLU294RmxhZ0JpdHMSFgoSU09YUl9ST0xMT0ZGX1NNQUxMEAASFwoTU09YUl9ST0xMT0ZGX01FRElVTRABEhUKEVNPWFJfUk9MTE9GRl9OT05FEAISGAoUU09YUl9ISUdIX1BSRUNfQ0xPQ0sQAxIZChVTT1hSX0RPVUJMRV9QUkVDSVNJT04QBBILCgdTT1hSX1ZSEAUqQQoPQXVkaW9TdHJlYW1UeXBlEhcKE0FVRElPX1NUUkVBTV9OQVRJVkUQABIVChFBVURJT19TVFJFQU1fSFRNTBABKioKD0F1ZGlvU291cmNlVHlwZRIXChNBVURJT19TT1VSQ0VfTkFUSVZFEABCEKoCDUxpdmVLaXQuUHJvdG8", [import_handle_pb.file_handle, import_track_pb.file_track]);
|
|
73
|
+
const NewAudioStreamRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 0);
|
|
74
|
+
const NewAudioStreamResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 1);
|
|
75
|
+
const AudioStreamFromParticipantRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 2);
|
|
76
|
+
const AudioStreamFromParticipantResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 3);
|
|
77
|
+
const NewAudioSourceRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 4);
|
|
78
|
+
const NewAudioSourceResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 5);
|
|
79
|
+
const CaptureAudioFrameRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 6);
|
|
80
|
+
const CaptureAudioFrameResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 7);
|
|
81
|
+
const CaptureAudioFrameCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 8);
|
|
82
|
+
const ClearAudioBufferRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 9);
|
|
83
|
+
const ClearAudioBufferResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 10);
|
|
84
|
+
const NewAudioResamplerRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 11);
|
|
85
|
+
const NewAudioResamplerResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 12);
|
|
86
|
+
const RemixAndResampleRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 13);
|
|
87
|
+
const RemixAndResampleResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 14);
|
|
88
|
+
const NewSoxResamplerRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 15);
|
|
89
|
+
const NewSoxResamplerResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 16);
|
|
90
|
+
const PushSoxResamplerRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 17);
|
|
91
|
+
const PushSoxResamplerResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 18);
|
|
92
|
+
const FlushSoxResamplerRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 19);
|
|
93
|
+
const FlushSoxResamplerResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 20);
|
|
94
|
+
const AudioFrameBufferInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 21);
|
|
95
|
+
const OwnedAudioFrameBufferSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 22);
|
|
96
|
+
const AudioStreamInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 23);
|
|
97
|
+
const OwnedAudioStreamSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 24);
|
|
98
|
+
const AudioStreamEventSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 25);
|
|
99
|
+
const AudioFrameReceivedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 26);
|
|
100
|
+
const AudioStreamEOSSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 27);
|
|
101
|
+
const AudioSourceOptionsSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 28);
|
|
102
|
+
const AudioSourceInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 29);
|
|
103
|
+
const OwnedAudioSourceSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 30);
|
|
104
|
+
const AudioResamplerInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 31);
|
|
105
|
+
const OwnedAudioResamplerSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 32);
|
|
106
|
+
const SoxResamplerInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 33);
|
|
107
|
+
const OwnedSoxResamplerSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_audio_frame, 34);
|
|
108
|
+
var SoxResamplerDataType = /* @__PURE__ */ ((SoxResamplerDataType2) => {
|
|
109
|
+
SoxResamplerDataType2[SoxResamplerDataType2["SOXR_DATATYPE_INT16I"] = 0] = "SOXR_DATATYPE_INT16I";
|
|
110
|
+
SoxResamplerDataType2[SoxResamplerDataType2["SOXR_DATATYPE_INT16S"] = 1] = "SOXR_DATATYPE_INT16S";
|
|
111
|
+
return SoxResamplerDataType2;
|
|
112
|
+
})(SoxResamplerDataType || {});
|
|
113
|
+
const SoxResamplerDataTypeSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_audio_frame, 0);
|
|
114
|
+
var SoxQualityRecipe = /* @__PURE__ */ ((SoxQualityRecipe2) => {
|
|
115
|
+
SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_QUICK"] = 0] = "SOXR_QUALITY_QUICK";
|
|
116
|
+
SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_LOW"] = 1] = "SOXR_QUALITY_LOW";
|
|
117
|
+
SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_MEDIUM"] = 2] = "SOXR_QUALITY_MEDIUM";
|
|
118
|
+
SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_HIGH"] = 3] = "SOXR_QUALITY_HIGH";
|
|
119
|
+
SoxQualityRecipe2[SoxQualityRecipe2["SOXR_QUALITY_VERYHIGH"] = 4] = "SOXR_QUALITY_VERYHIGH";
|
|
120
|
+
return SoxQualityRecipe2;
|
|
121
|
+
})(SoxQualityRecipe || {});
|
|
122
|
+
const SoxQualityRecipeSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_audio_frame, 1);
|
|
123
|
+
var SoxFlagBits = /* @__PURE__ */ ((SoxFlagBits2) => {
|
|
124
|
+
SoxFlagBits2[SoxFlagBits2["SOXR_ROLLOFF_SMALL"] = 0] = "SOXR_ROLLOFF_SMALL";
|
|
125
|
+
SoxFlagBits2[SoxFlagBits2["SOXR_ROLLOFF_MEDIUM"] = 1] = "SOXR_ROLLOFF_MEDIUM";
|
|
126
|
+
SoxFlagBits2[SoxFlagBits2["SOXR_ROLLOFF_NONE"] = 2] = "SOXR_ROLLOFF_NONE";
|
|
127
|
+
SoxFlagBits2[SoxFlagBits2["SOXR_HIGH_PREC_CLOCK"] = 3] = "SOXR_HIGH_PREC_CLOCK";
|
|
128
|
+
SoxFlagBits2[SoxFlagBits2["SOXR_DOUBLE_PRECISION"] = 4] = "SOXR_DOUBLE_PRECISION";
|
|
129
|
+
SoxFlagBits2[SoxFlagBits2["SOXR_VR"] = 5] = "SOXR_VR";
|
|
130
|
+
return SoxFlagBits2;
|
|
131
|
+
})(SoxFlagBits || {});
|
|
132
|
+
const SoxFlagBitsSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_audio_frame, 2);
|
|
133
|
+
var AudioStreamType = /* @__PURE__ */ ((AudioStreamType2) => {
|
|
134
|
+
AudioStreamType2[AudioStreamType2["AUDIO_STREAM_NATIVE"] = 0] = "AUDIO_STREAM_NATIVE";
|
|
135
|
+
AudioStreamType2[AudioStreamType2["AUDIO_STREAM_HTML"] = 1] = "AUDIO_STREAM_HTML";
|
|
136
|
+
return AudioStreamType2;
|
|
137
|
+
})(AudioStreamType || {});
|
|
138
|
+
const AudioStreamTypeSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_audio_frame, 3);
|
|
139
|
+
var AudioSourceType = /* @__PURE__ */ ((AudioSourceType2) => {
|
|
140
|
+
AudioSourceType2[AudioSourceType2["AUDIO_SOURCE_NATIVE"] = 0] = "AUDIO_SOURCE_NATIVE";
|
|
141
|
+
return AudioSourceType2;
|
|
142
|
+
})(AudioSourceType || {});
|
|
143
|
+
const AudioSourceTypeSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_audio_frame, 4);
|
|
144
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
145
|
+
0 && (module.exports = {
|
|
146
|
+
AudioFrameBufferInfoSchema,
|
|
147
|
+
AudioFrameReceivedSchema,
|
|
148
|
+
AudioResamplerInfoSchema,
|
|
149
|
+
AudioSourceInfoSchema,
|
|
150
|
+
AudioSourceOptionsSchema,
|
|
151
|
+
AudioSourceType,
|
|
152
|
+
AudioSourceTypeSchema,
|
|
153
|
+
AudioStreamEOSSchema,
|
|
154
|
+
AudioStreamEventSchema,
|
|
155
|
+
AudioStreamFromParticipantRequestSchema,
|
|
156
|
+
AudioStreamFromParticipantResponseSchema,
|
|
157
|
+
AudioStreamInfoSchema,
|
|
158
|
+
AudioStreamType,
|
|
159
|
+
AudioStreamTypeSchema,
|
|
160
|
+
CaptureAudioFrameCallbackSchema,
|
|
161
|
+
CaptureAudioFrameRequestSchema,
|
|
162
|
+
CaptureAudioFrameResponseSchema,
|
|
163
|
+
ClearAudioBufferRequestSchema,
|
|
164
|
+
ClearAudioBufferResponseSchema,
|
|
165
|
+
FlushSoxResamplerRequestSchema,
|
|
166
|
+
FlushSoxResamplerResponseSchema,
|
|
167
|
+
NewAudioResamplerRequestSchema,
|
|
168
|
+
NewAudioResamplerResponseSchema,
|
|
169
|
+
NewAudioSourceRequestSchema,
|
|
170
|
+
NewAudioSourceResponseSchema,
|
|
171
|
+
NewAudioStreamRequestSchema,
|
|
172
|
+
NewAudioStreamResponseSchema,
|
|
173
|
+
NewSoxResamplerRequestSchema,
|
|
174
|
+
NewSoxResamplerResponseSchema,
|
|
175
|
+
OwnedAudioFrameBufferSchema,
|
|
176
|
+
OwnedAudioResamplerSchema,
|
|
177
|
+
OwnedAudioSourceSchema,
|
|
178
|
+
OwnedAudioStreamSchema,
|
|
179
|
+
OwnedSoxResamplerSchema,
|
|
180
|
+
PushSoxResamplerRequestSchema,
|
|
181
|
+
PushSoxResamplerResponseSchema,
|
|
182
|
+
RemixAndResampleRequestSchema,
|
|
183
|
+
RemixAndResampleResponseSchema,
|
|
184
|
+
SoxFlagBits,
|
|
185
|
+
SoxFlagBitsSchema,
|
|
186
|
+
SoxQualityRecipe,
|
|
187
|
+
SoxQualityRecipeSchema,
|
|
188
|
+
SoxResamplerDataType,
|
|
189
|
+
SoxResamplerDataTypeSchema,
|
|
190
|
+
SoxResamplerInfoSchema,
|
|
191
|
+
file_audio_frame
|
|
192
|
+
});
|
|
193
|
+
//# sourceMappingURL=audio_frame_pb.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/proto/audio_frame_pb.ts"],"sourcesContent":["// Copyright 2023 LiveKit, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// @generated by protoc-gen-es v2.2.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file audio_frame.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv1\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv1\";\nimport type { FfiOwnedHandle } from \"./handle_pb.js\";\nimport { file_handle } from \"./handle_pb.js\";\nimport type { TrackSource } from \"./track_pb.js\";\nimport { file_track } from \"./track_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file audio_frame.proto.\n */\nexport const file_audio_frame: GenFile = /*@__P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dC5wcm90by5BdWRpb1Jlc2FtcGxlckluZm8iEgoQU294UmVzYW1wbGVySW5mbyJxChFPd25lZFNveFJlc2FtcGxlchItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEi0KBGluZm8YAiACKAsyHy5saXZla2l0LnByb3RvLlNveFJlc2FtcGxlckluZm8qSgoUU294UmVzYW1wbGVyRGF0YVR5cGUSGAoUU09YUl9EQVRBVFlQRV9JTlQxNkkQABIYChRTT1hSX0RBVEFUWVBFX0lOVDE2UxABKosBChBTb3hRdWFsaXR5UmVjaXBlEhYKElNPWFJfUVVBTElUWV9RVUlDSxAAEhQKEFNPWFJfUVVBTElUWV9MT1cQARIXChNTT1hSX1FVQUxJVFlfTUVESVVNEAISFQoRU09YUl9RVUFMSVRZX0hJR0gQAxIZChVTT1hSX1FVQUxJVFlfVkVSWUhJR0gQBCqXAQoLU294RmxhZ0JpdHMSFgoSU09YUl9ST0xMT0ZGX1NNQUxMEAASFwoTU09YUl9ST0xMT0ZGX01FRElVTRABEhUKEVNPWFJfUk9MTE9GRl9OT05FEAISGAoUU09YUl9ISUdIX1BSRUNfQ0xPQ0sQAxIZChVTT1hSX0RPVUJMRV9QUkVDSVNJT04QBBILCgdTT1hSX1ZSEAUqQQoPQXVkaW9TdHJlYW1UeXBlEhcKE0FVRElPX1NUUkVBTV9OQVRJVkUQABIVChFBVURJT19TVFJFQU1fSFRNTBABKioKD0F1ZGlvU291cmNlVHlwZRIXChNBVURJT19TT1VSQ0VfTkFUSVZFEABCEKoCDUxpdmVLaXQuUHJvdG8\", [file_handle, file_track]);\n\n/**\n * Create a new AudioStream\n * AudioStream is used to receive audio frames from a track\n *\n * @generated from message livekit.proto.NewAudioStreamRequest\n */\nexport type NewAudioStreamRequest = Message<\"livekit.proto.NewAudioStreamRequest\"> & {\n /**\n * @generated from field: required uint64 track_handle = 1;\n */\n trackHandle: bigint;\n\n /**\n * @generated from field: required livekit.proto.AudioStreamType type = 2;\n */\n type: AudioStreamType;\n\n /**\n * @generated from field: optional uint32 sample_rate = 3;\n */\n sampleRate: number;\n\n /**\n * @generated from field: optional uint32 num_channels = 4;\n */\n numChannels: number;\n};\n\n/**\n * Describes the message livekit.proto.NewAudioStreamRequest.\n * Use `create(NewAudioStreamRequestSchema)` to create a new message.\n */\nexport const NewAudioStreamRequestSchema: GenMessage<NewAudioStreamRequest> = /*@__PURE__*/\n messageDesc(file_audio_frame, 0);\n\n/**\n * @generated from message livekit.proto.NewAudioStreamResponse\n */\nexport type NewAudioStreamResponse = Message<\"livekit.proto.NewAudioStreamResponse\"> & {\n /**\n * @generated from field: required livekit.proto.OwnedAudioStream stream = 1;\n */\n stream?: OwnedAudioStream;\n};\n\n/**\n * Describes the message livekit.proto.NewAudioStreamResponse.\n * Use `create(NewAudioStreamResponseSchema)` to create a new message.\n */\nexport const NewAudioStreamResponseSchema: GenMessage<NewAudioStreamResponse> = /*@__PURE__*/\n messageDesc(file_audio_frame, 1);\n\n/**\n * @generated from message livekit.proto.AudioStreamFromParticipantRequest\n */\nexport type AudioStreamFromParticipantRequest = Message<\"livekit.proto.AudioStreamFromParticipantRequest\"> & {\n /**\n * @generated from field: required uint64 participant_handle = 1;\n */\n participantHandle: bigint;\n\n /**\n * @generated from field: required livekit.proto.AudioStreamType type = 2;\n */\n type: AudioStreamType;\n\n /**\n * @generated from field: optional livekit.proto.TrackSource track_source = 3;\n */\n trackSource: TrackSource;\n\n /**\n * @generated from field: optional uint32 sample_rate = 5;\n */\n sampleRate: number;\n\n /**\n * @generated from field: optional uint32 num_channels = 6;\n */\n numChannels: number;\n};\n\n/**\n * Describes the message livekit.proto.AudioStreamFromParticipantRequest.\n * Use `create(AudioStreamFromParticipantRequestSchema)` to create a new message.\n */\nexport const AudioStreamFromParticipantRequestSchema: GenMessage<AudioStreamFromParticipantRequest> = /*@__PURE__*/\n messageDesc(file_audio_frame, 2);\n\n/**\n * @generated from message livekit.proto.AudioStreamFromParticipantResponse\n */\nexport type AudioStreamFromParticipantResponse = Message<\"livekit.proto.AudioStreamFromParticipantResponse\"> & {\n /**\n * @generated from field: required livekit.proto.OwnedAudioStream stream = 1;\n */\n stream?: OwnedAudioStream;\n};\n\n/**\n * Describes the message livekit.proto.AudioStreamFromParticipantResponse.\n * Use `create(AudioStreamFromParticipantResponseSchema)` to create a new message.\n */\nexport const AudioStreamFromParticipantResponseSchema: GenMessage<AudioStreamFromParticipantResponse> = /*@__PURE__*/\n messageDesc(file_audio_frame, 3);\n\n/**\n * Create a new AudioSource\n *\n * @generated from message livekit.proto.NewAudioSourceRequest\n */\nexport type NewAudioSourceRequest = Message<\"livekit.proto.NewAudioSourceRequest\"> & {\n /**\n * @generated from field: required livekit.proto.AudioSourceType type = 1;\n */\n type: AudioSourceType;\n\n /**\n * @generated from field: optional livekit.proto.AudioSourceOptions options = 2;\n */\n options?: AudioSourceOptions;\n\n /**\n * @generated from field: required uint32 sample_rate = 3;\n */\n sampleRate: number;\n\n /**\n * @generated from field: required uint32 num_channels = 4;\n */\n numChannels: number;\n\n /**\n * @generated from field: optional uint32 queue_size_ms = 5;\n */\n queueSizeMs: number;\n};\n\n/**\n * Describes the message livekit.proto.NewAudioSourceRequest.\n * Use `create(NewAudioSourceRequestSchema)` to create a new message.\n */\nexport const NewAudioSourceRequestSchema: GenMessage<NewAudioSourceRequest> = /*@__PURE__*/\n messageDesc(file_audio_frame, 4);\n\n/**\n * @generated from message livekit.proto.NewAudioSourceResponse\n */\nexport type NewAudioSourceResponse = Message<\"livekit.proto.NewAudioSourceResponse\"> & {\n /**\n * @generated from field: required livekit.proto.OwnedAudioSource source = 1;\n */\n source?: OwnedAudioSource;\n};\n\n/**\n * Describes the message livekit.proto.NewAudioSourceResponse.\n * Use `create(NewAudioSourceResponseSchema)` to create a new message.\n */\nexport const NewAudioSourceResponseSchema: GenMessage<NewAudioSourceResponse> = /*@__PURE__*/\n messageDesc(file_audio_frame, 5);\n\n/**\n * Push a frame to an AudioSource \n * The data provided must be available as long as the client receive the callback.\n *\n * @generated from message livekit.proto.CaptureAudioFrameRequest\n */\nexport type CaptureAudioFrameRequest = Message<\"livekit.proto.CaptureAudioFrameRequest\"> & {\n /**\n * @generated from field: required uint64 source_handle = 1;\n */\n sourceHandle: bigint;\n\n /**\n * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2;\n */\n buffer?: AudioFrameBufferInfo;\n};\n\n/**\n * Describes the message livekit.proto.CaptureAudioFrameRequest.\n * Use `create(CaptureAudioFrameRequestSchema)` to create a new message.\n */\nexport const CaptureAudioFrameRequestSchema: GenMessage<CaptureAudioFrameRequest> = /*@__PURE__*/\n messageDesc(file_audio_frame, 6);\n\n/**\n * @generated from message livekit.proto.CaptureAudioFrameResponse\n */\nexport type CaptureAudioFrameResponse = Message<\"livekit.proto.CaptureAudioFrameResponse\"> & {\n /**\n * @generated from field: required uint64 async_id = 1;\n */\n asyncId: bigint;\n};\n\n/**\n * Describes the message livekit.proto.CaptureAudioFrameResponse.\n * Use `create(CaptureAudioFrameResponseSchema)` to create a new message.\n */\nexport const CaptureAudioFrameResponseSchema: GenMessage<CaptureAudioFrameResponse> = /*@__PURE__*/\n messageDesc(file_audio_frame, 7);\n\n/**\n * @generated from message livekit.proto.CaptureAudioFrameCallback\n */\nexport type CaptureAudioFrameCallback = Message<\"livekit.proto.CaptureAudioFrameCallback\"> & {\n /**\n * @generated from field: required uint64 async_id = 1;\n */\n asyncId: bigint;\n\n /**\n * @generated from field: optional string error = 2;\n */\n error: string;\n};\n\n/**\n * Describes the message livekit.proto.CaptureAudioFrameCallback.\n * Use `create(CaptureAudioFrameCallbackSchema)` to create a new message.\n */\nexport const CaptureAudioFrameCallbackSchema: GenMessage<CaptureAudioFrameCallback> = /*@__PURE__*/\n messageDesc(file_audio_frame, 8);\n\n/**\n * @generated from message livekit.proto.ClearAudioBufferRequest\n */\nexport type ClearAudioBufferRequest = Message<\"livekit.proto.ClearAudioBufferRequest\"> & {\n /**\n * @generated from field: required uint64 source_handle = 1;\n */\n sourceHandle: bigint;\n};\n\n/**\n * Describes the message livekit.proto.ClearAudioBufferRequest.\n * Use `create(ClearAudioBufferRequestSchema)` to create a new message.\n */\nexport const ClearAudioBufferRequestSchema: GenMessage<ClearAudioBufferRequest> = /*@__PURE__*/\n messageDesc(file_audio_frame, 9);\n\n/**\n * @generated from message livekit.proto.ClearAudioBufferResponse\n */\nexport type ClearAudioBufferResponse = Message<\"livekit.proto.ClearAudioBufferResponse\"> & {\n};\n\n/**\n * Describes the message livekit.proto.ClearAudioBufferResponse.\n * Use `create(ClearAudioBufferResponseSchema)` to create a new message.\n */\nexport const ClearAudioBufferResponseSchema: GenMessage<ClearAudioBufferResponse> = /*@__PURE__*/\n messageDesc(file_audio_frame, 10);\n\n/**\n * Create a new AudioResampler\n *\n * @generated from message livekit.proto.NewAudioResamplerRequest\n */\nexport type NewAudioResamplerRequest = Message<\"livekit.proto.NewAudioResamplerRequest\"> & {\n};\n\n/**\n * Describes the message livekit.proto.NewAudioResamplerRequest.\n * Use `create(NewAudioResamplerRequestSchema)` to create a new message.\n */\nexport const NewAudioResamplerRequestSchema: GenMessage<NewAudioResamplerRequest> = /*@__PURE__*/\n messageDesc(file_audio_frame, 11);\n\n/**\n * @generated from message livekit.proto.NewAudioResamplerResponse\n */\nexport type NewAudioResamplerResponse = Message<\"livekit.proto.NewAudioResamplerResponse\"> & {\n /**\n * @generated from field: required livekit.proto.OwnedAudioResampler resampler = 1;\n */\n resampler?: OwnedAudioResampler;\n};\n\n/**\n * Describes the message livekit.proto.NewAudioResamplerResponse.\n * Use `create(NewAudioResamplerResponseSchema)` to create a new message.\n */\nexport const NewAudioResamplerResponseSchema: GenMessage<NewAudioResamplerResponse> = /*@__PURE__*/\n messageDesc(file_audio_frame, 12);\n\n/**\n * Remix and resample an audio frame\n *\n * @generated from message livekit.proto.RemixAndResampleRequest\n */\nexport type RemixAndResampleRequest = Message<\"livekit.proto.RemixAndResampleRequest\"> & {\n /**\n * @generated from field: required uint64 resampler_handle = 1;\n */\n resamplerHandle: bigint;\n\n /**\n * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2;\n */\n buffer?: AudioFrameBufferInfo;\n\n /**\n * @generated from field: required uint32 num_channels = 3;\n */\n numChannels: number;\n\n /**\n * @generated from field: required uint32 sample_rate = 4;\n */\n sampleRate: number;\n};\n\n/**\n * Describes the message livekit.proto.RemixAndResampleRequest.\n * Use `create(RemixAndResampleRequestSchema)` to create a new message.\n */\nexport const RemixAndResampleRequestSchema: GenMessage<RemixAndResampleRequest> = /*@__PURE__*/\n messageDesc(file_audio_frame, 13);\n\n/**\n * @generated from message livekit.proto.RemixAndResampleResponse\n */\nexport type RemixAndResampleResponse = Message<\"livekit.proto.RemixAndResampleResponse\"> & {\n /**\n * @generated from field: required livekit.proto.OwnedAudioFrameBuffer buffer = 1;\n */\n buffer?: OwnedAudioFrameBuffer;\n};\n\n/**\n * Describes the message livekit.proto.RemixAndResampleResponse.\n * Use `create(RemixAndResampleResponseSchema)` to create a new message.\n */\nexport const RemixAndResampleResponseSchema: GenMessage<RemixAndResampleResponse> = /*@__PURE__*/\n messageDesc(file_audio_frame, 14);\n\n/**\n * @generated from message livekit.proto.NewSoxResamplerRequest\n */\nexport type NewSoxResamplerRequest = Message<\"livekit.proto.NewSoxResamplerRequest\"> & {\n /**\n * @generated from field: required double input_rate = 1;\n */\n inputRate: number;\n\n /**\n * @generated from field: required double output_rate = 2;\n */\n outputRate: number;\n\n /**\n * @generated from field: required uint32 num_channels = 3;\n */\n numChannels: number;\n\n /**\n * @generated from field: required livekit.proto.SoxResamplerDataType input_data_type = 4;\n */\n inputDataType: SoxResamplerDataType;\n\n /**\n * @generated from field: required livekit.proto.SoxResamplerDataType output_data_type = 5;\n */\n outputDataType: SoxResamplerDataType;\n\n /**\n * @generated from field: required livekit.proto.SoxQualityRecipe quality_recipe = 6;\n */\n qualityRecipe: SoxQualityRecipe;\n\n /**\n * @generated from field: optional uint32 flags = 7;\n */\n flags: number;\n};\n\n/**\n * Describes the message livekit.proto.NewSoxResamplerRequest.\n * Use `create(NewSoxResamplerRequestSchema)` to create a new message.\n */\nexport const NewSoxResamplerRequestSchema: GenMessage<NewSoxResamplerRequest> = /*@__PURE__*/\n messageDesc(file_audio_frame, 15);\n\n/**\n * @generated from message livekit.proto.NewSoxResamplerResponse\n */\nexport type NewSoxResamplerResponse = Message<\"livekit.proto.NewSoxResamplerResponse\"> & {\n /**\n * @generated from oneof livekit.proto.NewSoxResamplerResponse.message\n */\n message: {\n /**\n * @generated from field: livekit.proto.OwnedSoxResampler resampler = 1;\n */\n value: OwnedSoxResampler;\n case: \"resampler\";\n } | {\n /**\n * @generated from field: string error = 2;\n */\n value: string;\n case: \"error\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message livekit.proto.NewSoxResamplerResponse.\n * Use `create(NewSoxResamplerResponseSchema)` to create a new message.\n */\nexport const NewSoxResamplerResponseSchema: GenMessage<NewSoxResamplerResponse> = /*@__PURE__*/\n messageDesc(file_audio_frame, 16);\n\n/**\n * @generated from message livekit.proto.PushSoxResamplerRequest\n */\nexport type PushSoxResamplerRequest = Message<\"livekit.proto.PushSoxResamplerRequest\"> & {\n /**\n * @generated from field: required uint64 resampler_handle = 1;\n */\n resamplerHandle: bigint;\n\n /**\n * *const i16\n *\n * @generated from field: required uint64 data_ptr = 2;\n */\n dataPtr: bigint;\n\n /**\n * in bytes\n *\n * @generated from field: required uint32 size = 3;\n */\n size: number;\n};\n\n/**\n * Describes the message livekit.proto.PushSoxResamplerRequest.\n * Use `create(PushSoxResamplerRequestSchema)` to create a new message.\n */\nexport const PushSoxResamplerRequestSchema: GenMessage<PushSoxResamplerRequest> = /*@__PURE__*/\n messageDesc(file_audio_frame, 17);\n\n/**\n * @generated from message livekit.proto.PushSoxResamplerResponse\n */\nexport type PushSoxResamplerResponse = Message<\"livekit.proto.PushSoxResamplerResponse\"> & {\n /**\n * *const i16 (could be null)\n *\n * @generated from field: required uint64 output_ptr = 1;\n */\n outputPtr: bigint;\n\n /**\n * in bytes\n *\n * @generated from field: required uint32 size = 2;\n */\n size: number;\n\n /**\n * @generated from field: optional string error = 3;\n */\n error: string;\n};\n\n/**\n * Describes the message livekit.proto.PushSoxResamplerResponse.\n * Use `create(PushSoxResamplerResponseSchema)` to create a new message.\n */\nexport const PushSoxResamplerResponseSchema: GenMessage<PushSoxResamplerResponse> = /*@__PURE__*/\n messageDesc(file_audio_frame, 18);\n\n/**\n * @generated from message livekit.proto.FlushSoxResamplerRequest\n */\nexport type FlushSoxResamplerRequest = Message<\"livekit.proto.FlushSoxResamplerRequest\"> & {\n /**\n * @generated from field: required uint64 resampler_handle = 1;\n */\n resamplerHandle: bigint;\n};\n\n/**\n * Describes the message livekit.proto.FlushSoxResamplerRequest.\n * Use `create(FlushSoxResamplerRequestSchema)` to create a new message.\n */\nexport const FlushSoxResamplerRequestSchema: GenMessage<FlushSoxResamplerRequest> = /*@__PURE__*/\n messageDesc(file_audio_frame, 19);\n\n/**\n * @generated from message livekit.proto.FlushSoxResamplerResponse\n */\nexport type FlushSoxResamplerResponse = Message<\"livekit.proto.FlushSoxResamplerResponse\"> & {\n /**\n * *const i16 (could be null)\n *\n * @generated from field: required uint64 output_ptr = 1;\n */\n outputPtr: bigint;\n\n /**\n * in bytes\n *\n * @generated from field: required uint32 size = 2;\n */\n size: number;\n\n /**\n * @generated from field: optional string error = 3;\n */\n error: string;\n};\n\n/**\n * Describes the message livekit.proto.FlushSoxResamplerResponse.\n * Use `create(FlushSoxResamplerResponseSchema)` to create a new message.\n */\nexport const FlushSoxResamplerResponseSchema: GenMessage<FlushSoxResamplerResponse> = /*@__PURE__*/\n messageDesc(file_audio_frame, 20);\n\n/**\n * @generated from message livekit.proto.AudioFrameBufferInfo\n */\nexport type AudioFrameBufferInfo = Message<\"livekit.proto.AudioFrameBufferInfo\"> & {\n /**\n * *const i16\n *\n * @generated from field: required uint64 data_ptr = 1;\n */\n dataPtr: bigint;\n\n /**\n * @generated from field: required uint32 num_channels = 2;\n */\n numChannels: number;\n\n /**\n * @generated from field: required uint32 sample_rate = 3;\n */\n sampleRate: number;\n\n /**\n * @generated from field: required uint32 samples_per_channel = 4;\n */\n samplesPerChannel: number;\n};\n\n/**\n * Describes the message livekit.proto.AudioFrameBufferInfo.\n * Use `create(AudioFrameBufferInfoSchema)` to create a new message.\n */\nexport const AudioFrameBufferInfoSchema: GenMessage<AudioFrameBufferInfo> = /*@__PURE__*/\n messageDesc(file_audio_frame, 21);\n\n/**\n * @generated from message livekit.proto.OwnedAudioFrameBuffer\n */\nexport type OwnedAudioFrameBuffer = Message<\"livekit.proto.OwnedAudioFrameBuffer\"> & {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.AudioFrameBufferInfo info = 2;\n */\n info?: AudioFrameBufferInfo;\n};\n\n/**\n * Describes the message livekit.proto.OwnedAudioFrameBuffer.\n * Use `create(OwnedAudioFrameBufferSchema)` to create a new message.\n */\nexport const OwnedAudioFrameBufferSchema: GenMessage<OwnedAudioFrameBuffer> = /*@__PURE__*/\n messageDesc(file_audio_frame, 22);\n\n/**\n * @generated from message livekit.proto.AudioStreamInfo\n */\nexport type AudioStreamInfo = Message<\"livekit.proto.AudioStreamInfo\"> & {\n /**\n * @generated from field: required livekit.proto.AudioStreamType type = 1;\n */\n type: AudioStreamType;\n};\n\n/**\n * Describes the message livekit.proto.AudioStreamInfo.\n * Use `create(AudioStreamInfoSchema)` to create a new message.\n */\nexport const AudioStreamInfoSchema: GenMessage<AudioStreamInfo> = /*@__PURE__*/\n messageDesc(file_audio_frame, 23);\n\n/**\n * @generated from message livekit.proto.OwnedAudioStream\n */\nexport type OwnedAudioStream = Message<\"livekit.proto.OwnedAudioStream\"> & {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.AudioStreamInfo info = 2;\n */\n info?: AudioStreamInfo;\n};\n\n/**\n * Describes the message livekit.proto.OwnedAudioStream.\n * Use `create(OwnedAudioStreamSchema)` to create a new message.\n */\nexport const OwnedAudioStreamSchema: GenMessage<OwnedAudioStream> = /*@__PURE__*/\n messageDesc(file_audio_frame, 24);\n\n/**\n * @generated from message livekit.proto.AudioStreamEvent\n */\nexport type AudioStreamEvent = Message<\"livekit.proto.AudioStreamEvent\"> & {\n /**\n * @generated from field: required uint64 stream_handle = 1;\n */\n streamHandle: bigint;\n\n /**\n * @generated from oneof livekit.proto.AudioStreamEvent.message\n */\n message: {\n /**\n * @generated from field: livekit.proto.AudioFrameReceived frame_received = 2;\n */\n value: AudioFrameReceived;\n case: \"frameReceived\";\n } | {\n /**\n * @generated from field: livekit.proto.AudioStreamEOS eos = 3;\n */\n value: AudioStreamEOS;\n case: \"eos\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message livekit.proto.AudioStreamEvent.\n * Use `create(AudioStreamEventSchema)` to create a new message.\n */\nexport const AudioStreamEventSchema: GenMessage<AudioStreamEvent> = /*@__PURE__*/\n messageDesc(file_audio_frame, 25);\n\n/**\n * @generated from message livekit.proto.AudioFrameReceived\n */\nexport type AudioFrameReceived = Message<\"livekit.proto.AudioFrameReceived\"> & {\n /**\n * @generated from field: required livekit.proto.OwnedAudioFrameBuffer frame = 1;\n */\n frame?: OwnedAudioFrameBuffer;\n};\n\n/**\n * Describes the message livekit.proto.AudioFrameReceived.\n * Use `create(AudioFrameReceivedSchema)` to create a new message.\n */\nexport const AudioFrameReceivedSchema: GenMessage<AudioFrameReceived> = /*@__PURE__*/\n messageDesc(file_audio_frame, 26);\n\n/**\n * @generated from message livekit.proto.AudioStreamEOS\n */\nexport type AudioStreamEOS = Message<\"livekit.proto.AudioStreamEOS\"> & {\n};\n\n/**\n * Describes the message livekit.proto.AudioStreamEOS.\n * Use `create(AudioStreamEOSSchema)` to create a new message.\n */\nexport const AudioStreamEOSSchema: GenMessage<AudioStreamEOS> = /*@__PURE__*/\n messageDesc(file_audio_frame, 27);\n\n/**\n * @generated from message livekit.proto.AudioSourceOptions\n */\nexport type AudioSourceOptions = Message<\"livekit.proto.AudioSourceOptions\"> & {\n /**\n * @generated from field: required bool echo_cancellation = 1;\n */\n echoCancellation: boolean;\n\n /**\n * @generated from field: required bool noise_suppression = 2;\n */\n noiseSuppression: boolean;\n\n /**\n * @generated from field: required bool auto_gain_control = 3;\n */\n autoGainControl: boolean;\n};\n\n/**\n * Describes the message livekit.proto.AudioSourceOptions.\n * Use `create(AudioSourceOptionsSchema)` to create a new message.\n */\nexport const AudioSourceOptionsSchema: GenMessage<AudioSourceOptions> = /*@__PURE__*/\n messageDesc(file_audio_frame, 28);\n\n/**\n * @generated from message livekit.proto.AudioSourceInfo\n */\nexport type AudioSourceInfo = Message<\"livekit.proto.AudioSourceInfo\"> & {\n /**\n * @generated from field: required livekit.proto.AudioSourceType type = 2;\n */\n type: AudioSourceType;\n};\n\n/**\n * Describes the message livekit.proto.AudioSourceInfo.\n * Use `create(AudioSourceInfoSchema)` to create a new message.\n */\nexport const AudioSourceInfoSchema: GenMessage<AudioSourceInfo> = /*@__PURE__*/\n messageDesc(file_audio_frame, 29);\n\n/**\n * @generated from message livekit.proto.OwnedAudioSource\n */\nexport type OwnedAudioSource = Message<\"livekit.proto.OwnedAudioSource\"> & {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.AudioSourceInfo info = 2;\n */\n info?: AudioSourceInfo;\n};\n\n/**\n * Describes the message livekit.proto.OwnedAudioSource.\n * Use `create(OwnedAudioSourceSchema)` to create a new message.\n */\nexport const OwnedAudioSourceSchema: GenMessage<OwnedAudioSource> = /*@__PURE__*/\n messageDesc(file_audio_frame, 30);\n\n/**\n * @generated from message livekit.proto.AudioResamplerInfo\n */\nexport type AudioResamplerInfo = Message<\"livekit.proto.AudioResamplerInfo\"> & {\n};\n\n/**\n * Describes the message livekit.proto.AudioResamplerInfo.\n * Use `create(AudioResamplerInfoSchema)` to create a new message.\n */\nexport const AudioResamplerInfoSchema: GenMessage<AudioResamplerInfo> = /*@__PURE__*/\n messageDesc(file_audio_frame, 31);\n\n/**\n * @generated from message livekit.proto.OwnedAudioResampler\n */\nexport type OwnedAudioResampler = Message<\"livekit.proto.OwnedAudioResampler\"> & {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.AudioResamplerInfo info = 2;\n */\n info?: AudioResamplerInfo;\n};\n\n/**\n * Describes the message livekit.proto.OwnedAudioResampler.\n * Use `create(OwnedAudioResamplerSchema)` to create a new message.\n */\nexport const OwnedAudioResamplerSchema: GenMessage<OwnedAudioResampler> = /*@__PURE__*/\n messageDesc(file_audio_frame, 32);\n\n/**\n * @generated from message livekit.proto.SoxResamplerInfo\n */\nexport type SoxResamplerInfo = Message<\"livekit.proto.SoxResamplerInfo\"> & {\n};\n\n/**\n * Describes the message livekit.proto.SoxResamplerInfo.\n * Use `create(SoxResamplerInfoSchema)` to create a new message.\n */\nexport const SoxResamplerInfoSchema: GenMessage<SoxResamplerInfo> = /*@__PURE__*/\n messageDesc(file_audio_frame, 33);\n\n/**\n * @generated from message livekit.proto.OwnedSoxResampler\n */\nexport type OwnedSoxResampler = Message<\"livekit.proto.OwnedSoxResampler\"> & {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.SoxResamplerInfo info = 2;\n */\n info?: SoxResamplerInfo;\n};\n\n/**\n * Describes the message livekit.proto.OwnedSoxResampler.\n * Use `create(OwnedSoxResamplerSchema)` to create a new message.\n */\nexport const OwnedSoxResamplerSchema: GenMessage<OwnedSoxResampler> = /*@__PURE__*/\n messageDesc(file_audio_frame, 34);\n\n/**\n * @generated from enum livekit.proto.SoxResamplerDataType\n */\nexport enum SoxResamplerDataType {\n /**\n * TODO(theomonnom): support other datatypes (shouldn't really be needed)\n *\n * @generated from enum value: SOXR_DATATYPE_INT16I = 0;\n */\n SOXR_DATATYPE_INT16I = 0,\n\n /**\n * @generated from enum value: SOXR_DATATYPE_INT16S = 1;\n */\n SOXR_DATATYPE_INT16S = 1,\n}\n\n/**\n * Describes the enum livekit.proto.SoxResamplerDataType.\n */\nexport const SoxResamplerDataTypeSchema: GenEnum<SoxResamplerDataType> = /*@__PURE__*/\n enumDesc(file_audio_frame, 0);\n\n/**\n * @generated from enum livekit.proto.SoxQualityRecipe\n */\nexport enum SoxQualityRecipe {\n /**\n * @generated from enum value: SOXR_QUALITY_QUICK = 0;\n */\n SOXR_QUALITY_QUICK = 0,\n\n /**\n * @generated from enum value: SOXR_QUALITY_LOW = 1;\n */\n SOXR_QUALITY_LOW = 1,\n\n /**\n * @generated from enum value: SOXR_QUALITY_MEDIUM = 2;\n */\n SOXR_QUALITY_MEDIUM = 2,\n\n /**\n * @generated from enum value: SOXR_QUALITY_HIGH = 3;\n */\n SOXR_QUALITY_HIGH = 3,\n\n /**\n * @generated from enum value: SOXR_QUALITY_VERYHIGH = 4;\n */\n SOXR_QUALITY_VERYHIGH = 4,\n}\n\n/**\n * Describes the enum livekit.proto.SoxQualityRecipe.\n */\nexport const SoxQualityRecipeSchema: GenEnum<SoxQualityRecipe> = /*@__PURE__*/\n enumDesc(file_audio_frame, 1);\n\n/**\n * @generated from enum livekit.proto.SoxFlagBits\n */\nexport enum SoxFlagBits {\n /**\n * 1 << 0\n *\n * @generated from enum value: SOXR_ROLLOFF_SMALL = 0;\n */\n SOXR_ROLLOFF_SMALL = 0,\n\n /**\n * 1 << 1\n *\n * @generated from enum value: SOXR_ROLLOFF_MEDIUM = 1;\n */\n SOXR_ROLLOFF_MEDIUM = 1,\n\n /**\n * 1 << 2\n *\n * @generated from enum value: SOXR_ROLLOFF_NONE = 2;\n */\n SOXR_ROLLOFF_NONE = 2,\n\n /**\n * 1 << 3\n *\n * @generated from enum value: SOXR_HIGH_PREC_CLOCK = 3;\n */\n SOXR_HIGH_PREC_CLOCK = 3,\n\n /**\n * 1 << 4\n *\n * @generated from enum value: SOXR_DOUBLE_PRECISION = 4;\n */\n SOXR_DOUBLE_PRECISION = 4,\n\n /**\n * 1 << 5\n *\n * @generated from enum value: SOXR_VR = 5;\n */\n SOXR_VR = 5,\n}\n\n/**\n * Describes the enum livekit.proto.SoxFlagBits.\n */\nexport const SoxFlagBitsSchema: GenEnum<SoxFlagBits> = /*@__PURE__*/\n enumDesc(file_audio_frame, 2);\n\n/**\n * @generated from enum livekit.proto.AudioStreamType\n */\nexport enum AudioStreamType {\n /**\n * @generated from enum value: AUDIO_STREAM_NATIVE = 0;\n */\n AUDIO_STREAM_NATIVE = 0,\n\n /**\n * @generated from enum value: AUDIO_STREAM_HTML = 1;\n */\n AUDIO_STREAM_HTML = 1,\n}\n\n/**\n * Describes the enum livekit.proto.AudioStreamType.\n */\nexport const AudioStreamTypeSchema: GenEnum<AudioStreamType> = /*@__PURE__*/\n enumDesc(file_audio_frame, 3);\n\n/**\n * @generated from enum livekit.proto.AudioSourceType\n */\nexport enum AudioSourceType {\n /**\n * @generated from enum value: AUDIO_SOURCE_NATIVE = 0;\n */\n AUDIO_SOURCE_NATIVE = 0,\n}\n\n/**\n * Describes the enum livekit.proto.AudioSourceType.\n */\nexport const AudioSourceTypeSchema: GenEnum<AudioSourceType> = /*@__PURE__*/\n enumDesc(file_audio_frame, 4);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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