// Copyright 2025 LiveKit, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // @generated by protoc-gen-es v1.10.1 with parameter "js_import_style=legacy_commonjs" // @generated from file audio_frame.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto2 } from "@bufbuild/protobuf"; import type { TrackSource } from "./track_pb.js"; import type { FfiOwnedHandle } from "./handle_pb.js"; /** * @generated from enum livekit.proto.SoxResamplerDataType */ export declare enum SoxResamplerDataType { /** * TODO(theomonnom): support other datatypes (shouldn't really be needed) * * @generated from enum value: SOXR_DATATYPE_INT16I = 0; */ SOXR_DATATYPE_INT16I = 0, /** * @generated from enum value: SOXR_DATATYPE_INT16S = 1; */ SOXR_DATATYPE_INT16S = 1, } /** * @generated from enum livekit.proto.SoxQualityRecipe */ export declare enum SoxQualityRecipe { /** * @generated from enum value: SOXR_QUALITY_QUICK = 0; */ SOXR_QUALITY_QUICK = 0, /** * @generated from enum value: SOXR_QUALITY_LOW = 1; */ SOXR_QUALITY_LOW = 1, /** * @generated from enum value: SOXR_QUALITY_MEDIUM = 2; */ SOXR_QUALITY_MEDIUM = 2, /** * @generated from enum value: SOXR_QUALITY_HIGH = 3; */ SOXR_QUALITY_HIGH = 3, /** * @generated from enum value: SOXR_QUALITY_VERYHIGH = 4; */ SOXR_QUALITY_VERYHIGH = 4, } /** * @generated from enum livekit.proto.SoxFlagBits */ export declare enum SoxFlagBits { /** * 1 << 0 * * @generated from enum value: SOXR_ROLLOFF_SMALL = 0; */ SOXR_ROLLOFF_SMALL = 0, /** * 1 << 1 * * @generated from enum value: SOXR_ROLLOFF_MEDIUM = 1; */ SOXR_ROLLOFF_MEDIUM = 1, /** * 1 << 2 * * @generated from enum value: SOXR_ROLLOFF_NONE = 2; */ SOXR_ROLLOFF_NONE = 2, /** * 1 << 3 * * @generated from enum value: SOXR_HIGH_PREC_CLOCK = 3; */ SOXR_HIGH_PREC_CLOCK = 3, /** * 1 << 4 * * @generated from enum value: SOXR_DOUBLE_PRECISION = 4; */ SOXR_DOUBLE_PRECISION = 4, /** * 1 << 5 * * @generated from enum value: SOXR_VR = 5; */ SOXR_VR = 5, } /** * @generated from enum livekit.proto.AudioStreamType */ export declare enum AudioStreamType { /** * @generated from enum value: AUDIO_STREAM_NATIVE = 0; */ AUDIO_STREAM_NATIVE = 0, /** * @generated from enum value: AUDIO_STREAM_HTML = 1; */ AUDIO_STREAM_HTML = 1, } /** * @generated from enum livekit.proto.AudioSourceType */ export declare enum AudioSourceType { /** * Push-based audio source - manually capture frames via CaptureAudioFrameRequest * * @generated from enum value: AUDIO_SOURCE_NATIVE = 0; */ AUDIO_SOURCE_NATIVE = 0, /** * Platform ADM-based audio source - captures from microphone automatically * Requires PlatformAudio to be created first to enable ADM recording * * @generated from enum value: AUDIO_SOURCE_PLATFORM = 1; */ AUDIO_SOURCE_PLATFORM = 1, } /** * Create a new AudioStream * AudioStream is used to receive audio frames from a track * * @generated from message livekit.proto.NewAudioStreamRequest */ export declare class NewAudioStreamRequest extends Message { /** * @generated from field: required uint64 track_handle = 1; */ trackHandle?: bigint; /** * @generated from field: required livekit.proto.AudioStreamType type = 2; */ type?: AudioStreamType; /** * @generated from field: optional uint32 sample_rate = 3; */ sampleRate?: number; /** * @generated from field: optional uint32 num_channels = 4; */ numChannels?: number; /** * Unique identifier passed in LoadAudioFilterPluginRequest * * @generated from field: optional string audio_filter_module_id = 5; */ audioFilterModuleId?: string; /** * @generated from field: optional string audio_filter_options = 6; */ audioFilterOptions?: string; /** * @generated from field: optional uint32 frame_size_ms = 7; */ frameSizeMs?: number; /** * Maximum number of queued WebRTC sink frames. Each frame is typically 10 ms * of decoded PCM audio on the receive path. Omit this field to use the * default bounded queue size of 10 frames. Set it to 0 to request unbounded * buffering. * * If your application consumes both audio and video, keep the queue sizing * strategy coordinated across both streams. Using a much larger queue, or * unbounded buffering, for only one of them can increase end-to-end latency * for that stream and cause audio/video drift. * * @generated from field: optional uint32 queue_size_frames = 8; */ queueSizeFrames?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewAudioStreamRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioStreamRequest; static fromJson(jsonValue: JsonValue, options?: Partial): NewAudioStreamRequest; static fromJsonString(jsonString: string, options?: Partial): NewAudioStreamRequest; static equals(a: NewAudioStreamRequest | PlainMessage | undefined, b: NewAudioStreamRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.NewAudioStreamResponse */ export declare class NewAudioStreamResponse extends Message { /** * @generated from field: required livekit.proto.OwnedAudioStream stream = 1; */ stream?: OwnedAudioStream; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewAudioStreamResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioStreamResponse; static fromJson(jsonValue: JsonValue, options?: Partial): NewAudioStreamResponse; static fromJsonString(jsonString: string, options?: Partial): NewAudioStreamResponse; static equals(a: NewAudioStreamResponse | PlainMessage | undefined, b: NewAudioStreamResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.AudioStreamFromParticipantRequest */ export declare class AudioStreamFromParticipantRequest extends Message { /** * @generated from field: required uint64 participant_handle = 1; */ participantHandle?: bigint; /** * @generated from field: required livekit.proto.AudioStreamType type = 2; */ type?: AudioStreamType; /** * @generated from field: optional livekit.proto.TrackSource track_source = 3; */ trackSource?: TrackSource; /** * @generated from field: optional uint32 sample_rate = 5; */ sampleRate?: number; /** * @generated from field: optional uint32 num_channels = 6; */ numChannels?: number; /** * @generated from field: optional string audio_filter_module_id = 7; */ audioFilterModuleId?: string; /** * @generated from field: optional string audio_filter_options = 8; */ audioFilterOptions?: string; /** * @generated from field: optional uint32 frame_size_ms = 9; */ frameSizeMs?: number; /** * Maximum number of queued WebRTC sink frames. Each frame is typically 10 ms * of decoded PCM audio on the receive path. Omit this field to use the * default bounded queue size of 10 frames. Set it to 0 to request unbounded * buffering. * * If your application consumes both audio and video, keep the queue sizing * strategy coordinated across both streams. Using a much larger queue, or * unbounded buffering, for only one of them can increase end-to-end latency * for that stream and cause audio/video drift. * * @generated from field: optional uint32 queue_size_frames = 10; */ queueSizeFrames?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioStreamFromParticipantRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioStreamFromParticipantRequest; static fromJson(jsonValue: JsonValue, options?: Partial): AudioStreamFromParticipantRequest; static fromJsonString(jsonString: string, options?: Partial): AudioStreamFromParticipantRequest; static equals(a: AudioStreamFromParticipantRequest | PlainMessage | undefined, b: AudioStreamFromParticipantRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.AudioStreamFromParticipantResponse */ export declare class AudioStreamFromParticipantResponse extends Message { /** * @generated from field: required livekit.proto.OwnedAudioStream stream = 1; */ stream?: OwnedAudioStream; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioStreamFromParticipantResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioStreamFromParticipantResponse; static fromJson(jsonValue: JsonValue, options?: Partial): AudioStreamFromParticipantResponse; static fromJsonString(jsonString: string, options?: Partial): AudioStreamFromParticipantResponse; static equals(a: AudioStreamFromParticipantResponse | PlainMessage | undefined, b: AudioStreamFromParticipantResponse | PlainMessage | undefined): boolean; } /** * Create a new AudioSource * * @generated from message livekit.proto.NewAudioSourceRequest */ export declare class NewAudioSourceRequest extends Message { /** * @generated from field: required livekit.proto.AudioSourceType type = 1; */ type?: AudioSourceType; /** * @generated from field: optional livekit.proto.AudioSourceOptions options = 2; */ options?: AudioSourceOptions; /** * Sample rate in Hz. Optional - defaults to 48000 if not specified. * For AudioSourcePlatform: ignored, ADM uses hardware native sample rate. * For AudioSourceNative with queue_size_ms=0 (fast path): ignored, frame values used directly. * * @generated from field: optional uint32 sample_rate = 3; */ sampleRate?: number; /** * Number of audio channels. Optional - defaults to 1 (mono) if not specified. * For AudioSourcePlatform: ignored, ADM uses hardware native channels. * For AudioSourceNative with queue_size_ms=0 (fast path): ignored, frame values used directly. * * @generated from field: optional uint32 num_channels = 4; */ numChannels?: number; /** * @generated from field: optional uint32 queue_size_ms = 5; */ queueSizeMs?: number; /** * For AudioSourcePlatform: the PlatformAudio handle to configure audio processing on. * If provided with options, audio processing will be configured on the PlatformAudio. * * @generated from field: optional uint64 platform_audio_handle = 6; */ platformAudioHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewAudioSourceRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioSourceRequest; static fromJson(jsonValue: JsonValue, options?: Partial): NewAudioSourceRequest; static fromJsonString(jsonString: string, options?: Partial): NewAudioSourceRequest; static equals(a: NewAudioSourceRequest | PlainMessage | undefined, b: NewAudioSourceRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.NewAudioSourceResponse */ export declare class NewAudioSourceResponse extends Message { /** * @generated from field: required livekit.proto.OwnedAudioSource source = 1; */ source?: OwnedAudioSource; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewAudioSourceResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioSourceResponse; static fromJson(jsonValue: JsonValue, options?: Partial): NewAudioSourceResponse; static fromJsonString(jsonString: string, options?: Partial): NewAudioSourceResponse; static equals(a: NewAudioSourceResponse | PlainMessage | undefined, b: NewAudioSourceResponse | PlainMessage | undefined): boolean; } /** * Push a frame to an AudioSource * The data provided must be available as long as the client receive the callback. * * @generated from message livekit.proto.CaptureAudioFrameRequest */ export declare class CaptureAudioFrameRequest extends Message { /** * @generated from field: required uint64 source_handle = 1; */ sourceHandle?: bigint; /** * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2; */ buffer?: AudioFrameBufferInfo; /** * @generated from field: optional uint64 request_async_id = 3; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.CaptureAudioFrameRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CaptureAudioFrameRequest; static fromJson(jsonValue: JsonValue, options?: Partial): CaptureAudioFrameRequest; static fromJsonString(jsonString: string, options?: Partial): CaptureAudioFrameRequest; static equals(a: CaptureAudioFrameRequest | PlainMessage | undefined, b: CaptureAudioFrameRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.CaptureAudioFrameResponse */ export declare class CaptureAudioFrameResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.CaptureAudioFrameResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CaptureAudioFrameResponse; static fromJson(jsonValue: JsonValue, options?: Partial): CaptureAudioFrameResponse; static fromJsonString(jsonString: string, options?: Partial): CaptureAudioFrameResponse; static equals(a: CaptureAudioFrameResponse | PlainMessage | undefined, b: CaptureAudioFrameResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.CaptureAudioFrameCallback */ export declare class CaptureAudioFrameCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from field: optional string error = 2; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.CaptureAudioFrameCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CaptureAudioFrameCallback; static fromJson(jsonValue: JsonValue, options?: Partial): CaptureAudioFrameCallback; static fromJsonString(jsonString: string, options?: Partial): CaptureAudioFrameCallback; static equals(a: CaptureAudioFrameCallback | PlainMessage | undefined, b: CaptureAudioFrameCallback | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ClearAudioBufferRequest */ export declare class ClearAudioBufferRequest extends Message { /** * @generated from field: required uint64 source_handle = 1; */ sourceHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ClearAudioBufferRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ClearAudioBufferRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ClearAudioBufferRequest; static fromJsonString(jsonString: string, options?: Partial): ClearAudioBufferRequest; static equals(a: ClearAudioBufferRequest | PlainMessage | undefined, b: ClearAudioBufferRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ClearAudioBufferResponse */ export declare class ClearAudioBufferResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ClearAudioBufferResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ClearAudioBufferResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ClearAudioBufferResponse; static fromJsonString(jsonString: string, options?: Partial): ClearAudioBufferResponse; static equals(a: ClearAudioBufferResponse | PlainMessage | undefined, b: ClearAudioBufferResponse | PlainMessage | undefined): boolean; } /** * Create a new AudioResampler * * @generated from message livekit.proto.NewAudioResamplerRequest */ export declare class NewAudioResamplerRequest extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewAudioResamplerRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioResamplerRequest; static fromJson(jsonValue: JsonValue, options?: Partial): NewAudioResamplerRequest; static fromJsonString(jsonString: string, options?: Partial): NewAudioResamplerRequest; static equals(a: NewAudioResamplerRequest | PlainMessage | undefined, b: NewAudioResamplerRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.NewAudioResamplerResponse */ export declare class NewAudioResamplerResponse extends Message { /** * @generated from field: required livekit.proto.OwnedAudioResampler resampler = 1; */ resampler?: OwnedAudioResampler; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewAudioResamplerResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioResamplerResponse; static fromJson(jsonValue: JsonValue, options?: Partial): NewAudioResamplerResponse; static fromJsonString(jsonString: string, options?: Partial): NewAudioResamplerResponse; static equals(a: NewAudioResamplerResponse | PlainMessage | undefined, b: NewAudioResamplerResponse | PlainMessage | undefined): boolean; } /** * Remix and resample an audio frame * * @generated from message livekit.proto.RemixAndResampleRequest */ export declare class RemixAndResampleRequest extends Message { /** * @generated from field: required uint64 resampler_handle = 1; */ resamplerHandle?: bigint; /** * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2; */ buffer?: AudioFrameBufferInfo; /** * @generated from field: required uint32 num_channels = 3; */ numChannels?: number; /** * @generated from field: required uint32 sample_rate = 4; */ sampleRate?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RemixAndResampleRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RemixAndResampleRequest; static fromJson(jsonValue: JsonValue, options?: Partial): RemixAndResampleRequest; static fromJsonString(jsonString: string, options?: Partial): RemixAndResampleRequest; static equals(a: RemixAndResampleRequest | PlainMessage | undefined, b: RemixAndResampleRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.RemixAndResampleResponse */ export declare class RemixAndResampleResponse extends Message { /** * @generated from field: required livekit.proto.OwnedAudioFrameBuffer buffer = 1; */ buffer?: OwnedAudioFrameBuffer; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RemixAndResampleResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RemixAndResampleResponse; static fromJson(jsonValue: JsonValue, options?: Partial): RemixAndResampleResponse; static fromJsonString(jsonString: string, options?: Partial): RemixAndResampleResponse; static equals(a: RemixAndResampleResponse | PlainMessage | undefined, b: RemixAndResampleResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.NewApmRequest */ export declare class NewApmRequest extends Message { /** * @generated from field: required bool echo_canceller_enabled = 1; */ echoCancellerEnabled?: boolean; /** * @generated from field: required bool gain_controller_enabled = 2; */ gainControllerEnabled?: boolean; /** * @generated from field: required bool high_pass_filter_enabled = 3; */ highPassFilterEnabled?: boolean; /** * @generated from field: required bool noise_suppression_enabled = 4; */ noiseSuppressionEnabled?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewApmRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewApmRequest; static fromJson(jsonValue: JsonValue, options?: Partial): NewApmRequest; static fromJsonString(jsonString: string, options?: Partial): NewApmRequest; static equals(a: NewApmRequest | PlainMessage | undefined, b: NewApmRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.NewApmResponse */ export declare class NewApmResponse extends Message { /** * @generated from field: required livekit.proto.OwnedApm apm = 1; */ apm?: OwnedApm; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewApmResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewApmResponse; static fromJson(jsonValue: JsonValue, options?: Partial): NewApmResponse; static fromJsonString(jsonString: string, options?: Partial): NewApmResponse; static equals(a: NewApmResponse | PlainMessage | undefined, b: NewApmResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ApmProcessStreamRequest */ export declare class ApmProcessStreamRequest extends Message { /** * @generated from field: required uint64 apm_handle = 1; */ apmHandle?: bigint; /** * *mut i16 * * @generated from field: required uint64 data_ptr = 2; */ dataPtr?: bigint; /** * in bytes * * @generated from field: required uint32 size = 3; */ size?: number; /** * @generated from field: required uint32 sample_rate = 4; */ sampleRate?: number; /** * @generated from field: required uint32 num_channels = 5; */ numChannels?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ApmProcessStreamRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ApmProcessStreamRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ApmProcessStreamRequest; static fromJsonString(jsonString: string, options?: Partial): ApmProcessStreamRequest; static equals(a: ApmProcessStreamRequest | PlainMessage | undefined, b: ApmProcessStreamRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ApmProcessStreamResponse */ export declare class ApmProcessStreamResponse extends Message { /** * @generated from field: optional string error = 1; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ApmProcessStreamResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ApmProcessStreamResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ApmProcessStreamResponse; static fromJsonString(jsonString: string, options?: Partial): ApmProcessStreamResponse; static equals(a: ApmProcessStreamResponse | PlainMessage | undefined, b: ApmProcessStreamResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ApmProcessReverseStreamRequest */ export declare class ApmProcessReverseStreamRequest extends Message { /** * @generated from field: required uint64 apm_handle = 1; */ apmHandle?: bigint; /** * *mut i16 * * @generated from field: required uint64 data_ptr = 2; */ dataPtr?: bigint; /** * in bytes * * @generated from field: required uint32 size = 3; */ size?: number; /** * @generated from field: required uint32 sample_rate = 4; */ sampleRate?: number; /** * @generated from field: required uint32 num_channels = 5; */ numChannels?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ApmProcessReverseStreamRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ApmProcessReverseStreamRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ApmProcessReverseStreamRequest; static fromJsonString(jsonString: string, options?: Partial): ApmProcessReverseStreamRequest; static equals(a: ApmProcessReverseStreamRequest | PlainMessage | undefined, b: ApmProcessReverseStreamRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ApmProcessReverseStreamResponse */ export declare class ApmProcessReverseStreamResponse extends Message { /** * @generated from field: optional string error = 1; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ApmProcessReverseStreamResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ApmProcessReverseStreamResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ApmProcessReverseStreamResponse; static fromJsonString(jsonString: string, options?: Partial): ApmProcessReverseStreamResponse; static equals(a: ApmProcessReverseStreamResponse | PlainMessage | undefined, b: ApmProcessReverseStreamResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ApmSetStreamDelayRequest */ export declare class ApmSetStreamDelayRequest extends Message { /** * @generated from field: required uint64 apm_handle = 1; */ apmHandle?: bigint; /** * @generated from field: required int32 delay_ms = 2; */ delayMs?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ApmSetStreamDelayRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ApmSetStreamDelayRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ApmSetStreamDelayRequest; static fromJsonString(jsonString: string, options?: Partial): ApmSetStreamDelayRequest; static equals(a: ApmSetStreamDelayRequest | PlainMessage | undefined, b: ApmSetStreamDelayRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ApmSetStreamDelayResponse */ export declare class ApmSetStreamDelayResponse extends Message { /** * @generated from field: optional string error = 1; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ApmSetStreamDelayResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ApmSetStreamDelayResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ApmSetStreamDelayResponse; static fromJsonString(jsonString: string, options?: Partial): ApmSetStreamDelayResponse; static equals(a: ApmSetStreamDelayResponse | PlainMessage | undefined, b: ApmSetStreamDelayResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.NewSoxResamplerRequest */ export declare class NewSoxResamplerRequest extends Message { /** * @generated from field: required double input_rate = 1; */ inputRate?: number; /** * @generated from field: required double output_rate = 2; */ outputRate?: number; /** * @generated from field: required uint32 num_channels = 3; */ numChannels?: number; /** * @generated from field: required livekit.proto.SoxResamplerDataType input_data_type = 4; */ inputDataType?: SoxResamplerDataType; /** * @generated from field: required livekit.proto.SoxResamplerDataType output_data_type = 5; */ outputDataType?: SoxResamplerDataType; /** * @generated from field: required livekit.proto.SoxQualityRecipe quality_recipe = 6; */ qualityRecipe?: SoxQualityRecipe; /** * @generated from field: optional uint32 flags = 7; */ flags?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewSoxResamplerRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewSoxResamplerRequest; static fromJson(jsonValue: JsonValue, options?: Partial): NewSoxResamplerRequest; static fromJsonString(jsonString: string, options?: Partial): NewSoxResamplerRequest; static equals(a: NewSoxResamplerRequest | PlainMessage | undefined, b: NewSoxResamplerRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.NewSoxResamplerResponse */ export declare class NewSoxResamplerResponse extends Message { /** * @generated from oneof livekit.proto.NewSoxResamplerResponse.message */ message: { /** * @generated from field: livekit.proto.OwnedSoxResampler resampler = 1; */ value: OwnedSoxResampler; case: "resampler"; } | { /** * @generated from field: string error = 2; */ value: string; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewSoxResamplerResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewSoxResamplerResponse; static fromJson(jsonValue: JsonValue, options?: Partial): NewSoxResamplerResponse; static fromJsonString(jsonString: string, options?: Partial): NewSoxResamplerResponse; static equals(a: NewSoxResamplerResponse | PlainMessage | undefined, b: NewSoxResamplerResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.PushSoxResamplerRequest */ export declare class PushSoxResamplerRequest extends Message { /** * @generated from field: required uint64 resampler_handle = 1; */ resamplerHandle?: bigint; /** * *const i16 * * @generated from field: required uint64 data_ptr = 2; */ dataPtr?: bigint; /** * in bytes * * @generated from field: required uint32 size = 3; */ size?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.PushSoxResamplerRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PushSoxResamplerRequest; static fromJson(jsonValue: JsonValue, options?: Partial): PushSoxResamplerRequest; static fromJsonString(jsonString: string, options?: Partial): PushSoxResamplerRequest; static equals(a: PushSoxResamplerRequest | PlainMessage | undefined, b: PushSoxResamplerRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.PushSoxResamplerResponse */ export declare class PushSoxResamplerResponse extends Message { /** * *const i16 (could be null) * * @generated from field: required uint64 output_ptr = 1; */ outputPtr?: bigint; /** * in bytes * * @generated from field: required uint32 size = 2; */ size?: number; /** * @generated from field: optional string error = 3; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.PushSoxResamplerResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PushSoxResamplerResponse; static fromJson(jsonValue: JsonValue, options?: Partial): PushSoxResamplerResponse; static fromJsonString(jsonString: string, options?: Partial): PushSoxResamplerResponse; static equals(a: PushSoxResamplerResponse | PlainMessage | undefined, b: PushSoxResamplerResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.FlushSoxResamplerRequest */ export declare class FlushSoxResamplerRequest extends Message { /** * @generated from field: required uint64 resampler_handle = 1; */ resamplerHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.FlushSoxResamplerRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): FlushSoxResamplerRequest; static fromJson(jsonValue: JsonValue, options?: Partial): FlushSoxResamplerRequest; static fromJsonString(jsonString: string, options?: Partial): FlushSoxResamplerRequest; static equals(a: FlushSoxResamplerRequest | PlainMessage | undefined, b: FlushSoxResamplerRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.FlushSoxResamplerResponse */ export declare class FlushSoxResamplerResponse extends Message { /** * *const i16 (could be null) * * @generated from field: required uint64 output_ptr = 1; */ outputPtr?: bigint; /** * in bytes * * @generated from field: required uint32 size = 2; */ size?: number; /** * @generated from field: optional string error = 3; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.FlushSoxResamplerResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): FlushSoxResamplerResponse; static fromJson(jsonValue: JsonValue, options?: Partial): FlushSoxResamplerResponse; static fromJsonString(jsonString: string, options?: Partial): FlushSoxResamplerResponse; static equals(a: FlushSoxResamplerResponse | PlainMessage | undefined, b: FlushSoxResamplerResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.AudioFrameBufferInfo */ export declare class AudioFrameBufferInfo extends Message { /** * *const i16 * * @generated from field: required uint64 data_ptr = 1; */ dataPtr?: bigint; /** * @generated from field: required uint32 num_channels = 2; */ numChannels?: number; /** * @generated from field: required uint32 sample_rate = 3; */ sampleRate?: number; /** * @generated from field: required uint32 samples_per_channel = 4; */ samplesPerChannel?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioFrameBufferInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioFrameBufferInfo; static fromJson(jsonValue: JsonValue, options?: Partial): AudioFrameBufferInfo; static fromJsonString(jsonString: string, options?: Partial): AudioFrameBufferInfo; static equals(a: AudioFrameBufferInfo | PlainMessage | undefined, b: AudioFrameBufferInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedAudioFrameBuffer */ export declare class OwnedAudioFrameBuffer extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.AudioFrameBufferInfo info = 2; */ info?: AudioFrameBufferInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedAudioFrameBuffer"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioFrameBuffer; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedAudioFrameBuffer; static fromJsonString(jsonString: string, options?: Partial): OwnedAudioFrameBuffer; static equals(a: OwnedAudioFrameBuffer | PlainMessage | undefined, b: OwnedAudioFrameBuffer | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.AudioStreamInfo */ export declare class AudioStreamInfo extends Message { /** * @generated from field: required livekit.proto.AudioStreamType type = 1; */ type?: AudioStreamType; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioStreamInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioStreamInfo; static fromJson(jsonValue: JsonValue, options?: Partial): AudioStreamInfo; static fromJsonString(jsonString: string, options?: Partial): AudioStreamInfo; static equals(a: AudioStreamInfo | PlainMessage | undefined, b: AudioStreamInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedAudioStream */ export declare class OwnedAudioStream extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.AudioStreamInfo info = 2; */ info?: AudioStreamInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedAudioStream"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioStream; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedAudioStream; static fromJsonString(jsonString: string, options?: Partial): OwnedAudioStream; static equals(a: OwnedAudioStream | PlainMessage | undefined, b: OwnedAudioStream | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.AudioStreamEvent */ export declare class AudioStreamEvent extends Message { /** * @generated from field: required uint64 stream_handle = 1; */ streamHandle?: bigint; /** * @generated from oneof livekit.proto.AudioStreamEvent.message */ message: { /** * @generated from field: livekit.proto.AudioFrameReceived frame_received = 2; */ value: AudioFrameReceived; case: "frameReceived"; } | { /** * @generated from field: livekit.proto.AudioStreamEOS eos = 3; */ value: AudioStreamEOS; case: "eos"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioStreamEvent"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioStreamEvent; static fromJson(jsonValue: JsonValue, options?: Partial): AudioStreamEvent; static fromJsonString(jsonString: string, options?: Partial): AudioStreamEvent; static equals(a: AudioStreamEvent | PlainMessage | undefined, b: AudioStreamEvent | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.AudioFrameReceived */ export declare class AudioFrameReceived extends Message { /** * @generated from field: required livekit.proto.OwnedAudioFrameBuffer frame = 1; */ frame?: OwnedAudioFrameBuffer; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioFrameReceived"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioFrameReceived; static fromJson(jsonValue: JsonValue, options?: Partial): AudioFrameReceived; static fromJsonString(jsonString: string, options?: Partial): AudioFrameReceived; static equals(a: AudioFrameReceived | PlainMessage | undefined, b: AudioFrameReceived | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.AudioStreamEOS */ export declare class AudioStreamEOS extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioStreamEOS"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioStreamEOS; static fromJson(jsonValue: JsonValue, options?: Partial): AudioStreamEOS; static fromJsonString(jsonString: string, options?: Partial): AudioStreamEOS; static equals(a: AudioStreamEOS | PlainMessage | undefined, b: AudioStreamEOS | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.AudioSourceOptions */ export declare class AudioSourceOptions extends Message { /** * @generated from field: required bool echo_cancellation = 1; */ echoCancellation?: boolean; /** * @generated from field: required bool noise_suppression = 2; */ noiseSuppression?: boolean; /** * @generated from field: required bool auto_gain_control = 3; */ autoGainControl?: boolean; /** * Prefer hardware audio processing (e.g., iOS VPIO). Lower latency. * Only applies to AudioSourcePlatform. Default: true. * * @generated from field: optional bool prefer_hardware = 4; */ preferHardware?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioSourceOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioSourceOptions; static fromJson(jsonValue: JsonValue, options?: Partial): AudioSourceOptions; static fromJsonString(jsonString: string, options?: Partial): AudioSourceOptions; static equals(a: AudioSourceOptions | PlainMessage | undefined, b: AudioSourceOptions | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.AudioSourceInfo */ export declare class AudioSourceInfo extends Message { /** * @generated from field: required livekit.proto.AudioSourceType type = 2; */ type?: AudioSourceType; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioSourceInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioSourceInfo; static fromJson(jsonValue: JsonValue, options?: Partial): AudioSourceInfo; static fromJsonString(jsonString: string, options?: Partial): AudioSourceInfo; static equals(a: AudioSourceInfo | PlainMessage | undefined, b: AudioSourceInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedAudioSource */ export declare class OwnedAudioSource extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.AudioSourceInfo info = 2; */ info?: AudioSourceInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedAudioSource"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioSource; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedAudioSource; static fromJsonString(jsonString: string, options?: Partial): OwnedAudioSource; static equals(a: OwnedAudioSource | PlainMessage | undefined, b: OwnedAudioSource | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.AudioResamplerInfo */ export declare class AudioResamplerInfo extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioResamplerInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioResamplerInfo; static fromJson(jsonValue: JsonValue, options?: Partial): AudioResamplerInfo; static fromJsonString(jsonString: string, options?: Partial): AudioResamplerInfo; static equals(a: AudioResamplerInfo | PlainMessage | undefined, b: AudioResamplerInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedAudioResampler */ export declare class OwnedAudioResampler extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.AudioResamplerInfo info = 2; */ info?: AudioResamplerInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedAudioResampler"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioResampler; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedAudioResampler; static fromJsonString(jsonString: string, options?: Partial): OwnedAudioResampler; static equals(a: OwnedAudioResampler | PlainMessage | undefined, b: OwnedAudioResampler | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedApm */ export declare class OwnedApm extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedApm"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedApm; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedApm; static fromJsonString(jsonString: string, options?: Partial): OwnedApm; static equals(a: OwnedApm | PlainMessage | undefined, b: OwnedApm | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.SoxResamplerInfo */ export declare class SoxResamplerInfo extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.SoxResamplerInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SoxResamplerInfo; static fromJson(jsonValue: JsonValue, options?: Partial): SoxResamplerInfo; static fromJsonString(jsonString: string, options?: Partial): SoxResamplerInfo; static equals(a: SoxResamplerInfo | PlainMessage | undefined, b: SoxResamplerInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedSoxResampler */ export declare class OwnedSoxResampler extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.SoxResamplerInfo info = 2; */ info?: SoxResamplerInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedSoxResampler"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedSoxResampler; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedSoxResampler; static fromJsonString(jsonString: string, options?: Partial): OwnedSoxResampler; static equals(a: OwnedSoxResampler | PlainMessage | undefined, b: OwnedSoxResampler | PlainMessage | undefined): boolean; } /** * Audio Filter Plugin * * @generated from message livekit.proto.LoadAudioFilterPluginRequest */ export declare class LoadAudioFilterPluginRequest extends Message { /** * path for ffi audio filter plugin * * @generated from field: required string plugin_path = 1; */ pluginPath?: string; /** * Optional: paths for dependency dylibs * * @generated from field: repeated string dependencies = 2; */ dependencies: string[]; /** * Unique identifier of the plugin * * @generated from field: required string module_id = 3; */ moduleId?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LoadAudioFilterPluginRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LoadAudioFilterPluginRequest; static fromJson(jsonValue: JsonValue, options?: Partial): LoadAudioFilterPluginRequest; static fromJsonString(jsonString: string, options?: Partial): LoadAudioFilterPluginRequest; static equals(a: LoadAudioFilterPluginRequest | PlainMessage | undefined, b: LoadAudioFilterPluginRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.LoadAudioFilterPluginResponse */ export declare class LoadAudioFilterPluginResponse extends Message { /** * @generated from field: optional string error = 1; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LoadAudioFilterPluginResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LoadAudioFilterPluginResponse; static fromJson(jsonValue: JsonValue, options?: Partial): LoadAudioFilterPluginResponse; static fromJsonString(jsonString: string, options?: Partial): LoadAudioFilterPluginResponse; static equals(a: LoadAudioFilterPluginResponse | PlainMessage | undefined, b: LoadAudioFilterPluginResponse | PlainMessage | undefined): boolean; } /** * Information about an audio device. * * @generated from message livekit.proto.AudioDeviceInfo */ export declare class AudioDeviceInfo extends Message { /** * Device index (0-based). Note: indices can change when devices are added/removed. * * @generated from field: required uint32 index = 1; */ index?: number; /** * Device name as reported by the operating system. * * @generated from field: required string name = 2; */ name?: string; /** * Platform-specific unique device identifier (GUID). * This is stable across device additions/removals and should be preferred * over index for device selection. Format varies by platform: * - Windows: Device interface path * - macOS: AudioObjectID as string * - Linux: ALSA/PulseAudio device identifier * * @generated from field: optional string guid = 3; */ guid?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.AudioDeviceInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AudioDeviceInfo; static fromJson(jsonValue: JsonValue, options?: Partial): AudioDeviceInfo; static fromJsonString(jsonString: string, options?: Partial): AudioDeviceInfo; static equals(a: AudioDeviceInfo | PlainMessage | undefined, b: AudioDeviceInfo | PlainMessage | undefined): boolean; } /** * Information about a PlatformAudio instance. * * @generated from message livekit.proto.PlatformAudioInfo */ export declare class PlatformAudioInfo extends Message { /** * Number of available recording (microphone) devices. * * @generated from field: required int32 recording_device_count = 1; */ recordingDeviceCount?: number; /** * Number of available playout (speaker) devices. * * @generated from field: required int32 playout_device_count = 2; */ playoutDeviceCount?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.PlatformAudioInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PlatformAudioInfo; static fromJson(jsonValue: JsonValue, options?: Partial): PlatformAudioInfo; static fromJsonString(jsonString: string, options?: Partial): PlatformAudioInfo; static equals(a: PlatformAudioInfo | PlainMessage | undefined, b: PlatformAudioInfo | PlainMessage | undefined): boolean; } /** * Owned PlatformAudio handle with info. * * @generated from message livekit.proto.OwnedPlatformAudio */ export declare class OwnedPlatformAudio extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.PlatformAudioInfo info = 2; */ info?: PlatformAudioInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedPlatformAudio"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedPlatformAudio; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedPlatformAudio; static fromJsonString(jsonString: string, options?: Partial): OwnedPlatformAudio; static equals(a: OwnedPlatformAudio | PlainMessage | undefined, b: OwnedPlatformAudio | PlainMessage | undefined): boolean; } /** * Create a new PlatformAudio instance. * * This enables the platform ADM for microphone capture and speaker playout. * If another PlatformAudio instance exists, this reuses the same underlying ADM. * * The returned handle must be kept alive while platform audio is needed. * When all handles are released, the ADM is automatically disabled. * * @generated from message livekit.proto.NewPlatformAudioRequest */ export declare class NewPlatformAudioRequest extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewPlatformAudioRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewPlatformAudioRequest; static fromJson(jsonValue: JsonValue, options?: Partial): NewPlatformAudioRequest; static fromJsonString(jsonString: string, options?: Partial): NewPlatformAudioRequest; static equals(a: NewPlatformAudioRequest | PlainMessage | undefined, b: NewPlatformAudioRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.NewPlatformAudioResponse */ export declare class NewPlatformAudioResponse extends Message { /** * @generated from oneof livekit.proto.NewPlatformAudioResponse.message */ message: { /** * The PlatformAudio handle on success. * * @generated from field: livekit.proto.OwnedPlatformAudio platform_audio = 1; */ value: OwnedPlatformAudio; case: "platformAudio"; } | { /** * Error message if creation failed. * * @generated from field: string error = 2; */ value: string; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.NewPlatformAudioResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NewPlatformAudioResponse; static fromJson(jsonValue: JsonValue, options?: Partial): NewPlatformAudioResponse; static fromJsonString(jsonString: string, options?: Partial): NewPlatformAudioResponse; static equals(a: NewPlatformAudioResponse | PlainMessage | undefined, b: NewPlatformAudioResponse | PlainMessage | undefined): boolean; } /** * Get available audio devices. * * Returns lists of available recording (microphone) and playout (speaker) devices. * * # Platform Notes * * - Desktop (Windows/macOS/Linux): Returns all available devices with names and GUIDs. * - Mobile (iOS/Android): Returns only one "default" device with empty name and GUID. * Device enumeration is not meaningful on mobile - use for device count only. * * @generated from message livekit.proto.GetAudioDevicesRequest */ export declare class GetAudioDevicesRequest extends Message { /** * The PlatformAudio handle. * * @generated from field: required uint64 platform_audio_handle = 1; */ platformAudioHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.GetAudioDevicesRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetAudioDevicesRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetAudioDevicesRequest; static fromJsonString(jsonString: string, options?: Partial): GetAudioDevicesRequest; static equals(a: GetAudioDevicesRequest | PlainMessage | undefined, b: GetAudioDevicesRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.GetAudioDevicesResponse */ export declare class GetAudioDevicesResponse extends Message { /** * Available playout devices (speakers/headphones). * * @generated from field: repeated livekit.proto.AudioDeviceInfo playout_devices = 1; */ playoutDevices: AudioDeviceInfo[]; /** * Available recording devices (microphones). * * @generated from field: repeated livekit.proto.AudioDeviceInfo recording_devices = 2; */ recordingDevices: AudioDeviceInfo[]; /** * Error message if enumeration failed, empty/absent on success. * * @generated from field: optional string error = 3; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.GetAudioDevicesResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetAudioDevicesResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GetAudioDevicesResponse; static fromJsonString(jsonString: string, options?: Partial): GetAudioDevicesResponse; static equals(a: GetAudioDevicesResponse | PlainMessage | undefined, b: GetAudioDevicesResponse | PlainMessage | undefined): boolean; } /** * Set the recording device (microphone). * * Call this before creating audio tracks to select which microphone to use. * Use the GUID from AudioDeviceInfo for stable device selection across hot-plug events. * * # Platform Notes * * - Desktop: Works as expected - selects from enumerated devices. * - Mobile (iOS/Android): No-op. Mobile platforms handle microphone selection at the * system level. This will succeed but has no effect. Skip calling on mobile. * * @generated from message livekit.proto.SetRecordingDeviceRequest */ export declare class SetRecordingDeviceRequest extends Message { /** * The PlatformAudio handle. * * @generated from field: required uint64 platform_audio_handle = 1; */ platformAudioHandle?: bigint; /** * Device GUID from AudioDeviceInfo.guid - stable across device additions/removals. * * @generated from field: required string device_id = 2; */ deviceId?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.SetRecordingDeviceRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetRecordingDeviceRequest; static fromJson(jsonValue: JsonValue, options?: Partial): SetRecordingDeviceRequest; static fromJsonString(jsonString: string, options?: Partial): SetRecordingDeviceRequest; static equals(a: SetRecordingDeviceRequest | PlainMessage | undefined, b: SetRecordingDeviceRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.SetRecordingDeviceResponse */ export declare class SetRecordingDeviceResponse extends Message { /** * Error message if the operation failed. * Empty/absent on success (including no-op success on mobile). * * @generated from field: optional string error = 1; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.SetRecordingDeviceResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetRecordingDeviceResponse; static fromJson(jsonValue: JsonValue, options?: Partial): SetRecordingDeviceResponse; static fromJsonString(jsonString: string, options?: Partial): SetRecordingDeviceResponse; static equals(a: SetRecordingDeviceResponse | PlainMessage | undefined, b: SetRecordingDeviceResponse | PlainMessage | undefined): boolean; } /** * Set the playout device (speaker/headphones). * * Call this before connecting to select which speaker to use for audio output. * Use the GUID from AudioDeviceInfo for stable device selection across hot-plug events. * * # Platform Notes * * - Desktop: Works as expected - selects from enumerated devices. * - Mobile (iOS/Android): No-op. Mobile platforms handle audio routing at the system level. * This will succeed but has no effect. For audio routing on mobile: * - iOS: Use AVAudioSession to control speaker/earpiece/Bluetooth routing * - Android: Use AudioManager.setSpeakerphoneOn() to switch outputs * * @generated from message livekit.proto.SetPlayoutDeviceRequest */ export declare class SetPlayoutDeviceRequest extends Message { /** * The PlatformAudio handle. * * @generated from field: required uint64 platform_audio_handle = 1; */ platformAudioHandle?: bigint; /** * Device GUID from AudioDeviceInfo.guid - stable across device additions/removals. * * @generated from field: required string device_id = 2; */ deviceId?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.SetPlayoutDeviceRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetPlayoutDeviceRequest; static fromJson(jsonValue: JsonValue, options?: Partial): SetPlayoutDeviceRequest; static fromJsonString(jsonString: string, options?: Partial): SetPlayoutDeviceRequest; static equals(a: SetPlayoutDeviceRequest | PlainMessage | undefined, b: SetPlayoutDeviceRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.SetPlayoutDeviceResponse */ export declare class SetPlayoutDeviceResponse extends Message { /** * Error message if the operation failed. * Empty/absent on success (including no-op success on mobile). * * @generated from field: optional string error = 1; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.SetPlayoutDeviceResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetPlayoutDeviceResponse; static fromJson(jsonValue: JsonValue, options?: Partial): SetPlayoutDeviceResponse; static fromJsonString(jsonString: string, options?: Partial): SetPlayoutDeviceResponse; static equals(a: SetPlayoutDeviceResponse | PlainMessage | undefined, b: SetPlayoutDeviceResponse | PlainMessage | undefined): boolean; } /** * Start recording from the microphone. * * Recording is started automatically when PlatformAudio is created. * Use this to resume recording after calling StopRecording. * This also turns on the system's recording privacy indicator. * * @generated from message livekit.proto.StartRecordingRequest */ export declare class StartRecordingRequest extends Message { /** * The PlatformAudio handle. * * @generated from field: required uint64 platform_audio_handle = 1; */ platformAudioHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StartRecordingRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StartRecordingRequest; static fromJson(jsonValue: JsonValue, options?: Partial): StartRecordingRequest; static fromJsonString(jsonString: string, options?: Partial): StartRecordingRequest; static equals(a: StartRecordingRequest | PlainMessage | undefined, b: StartRecordingRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.StartRecordingResponse */ export declare class StartRecordingResponse extends Message { /** * Error message if the operation failed. * Empty/absent on success. * * @generated from field: optional string error = 1; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StartRecordingResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StartRecordingResponse; static fromJson(jsonValue: JsonValue, options?: Partial): StartRecordingResponse; static fromJsonString(jsonString: string, options?: Partial): StartRecordingResponse; static equals(a: StartRecordingResponse | PlainMessage | undefined, b: StartRecordingResponse | PlainMessage | undefined): boolean; } /** * Stop recording from the microphone. * * Use this to temporarily stop recording without disposing PlatformAudio. * This will turn off the system's recording privacy indicator (e.g., on macOS/iOS). * Call StartRecording to resume recording. * * @generated from message livekit.proto.StopRecordingRequest */ export declare class StopRecordingRequest extends Message { /** * The PlatformAudio handle. * * @generated from field: required uint64 platform_audio_handle = 1; */ platformAudioHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StopRecordingRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StopRecordingRequest; static fromJson(jsonValue: JsonValue, options?: Partial): StopRecordingRequest; static fromJsonString(jsonString: string, options?: Partial): StopRecordingRequest; static equals(a: StopRecordingRequest | PlainMessage | undefined, b: StopRecordingRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.StopRecordingResponse */ export declare class StopRecordingResponse extends Message { /** * Error message if the operation failed. * Empty/absent on success. * * @generated from field: optional string error = 1; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StopRecordingResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StopRecordingResponse; static fromJson(jsonValue: JsonValue, options?: Partial): StopRecordingResponse; static fromJsonString(jsonString: string, options?: Partial): StopRecordingResponse; static equals(a: StopRecordingResponse | PlainMessage | undefined, b: StopRecordingResponse | PlainMessage | undefined): boolean; }