@seydx/rtsp / RawAudioTranscoderOptions
Interface: RawAudioTranscoderOptions
Defined in: sources/raw-audio-transcoder.ts:119
Configuration for a RawAudioTranscoder.
Properties
from
from:
RawAudioInput
Defined in: sources/raw-audio-transcoder.ts:123
Format of the raw frames pushed into the transcoder.
logger?
optionallogger?:Logger
Defined in: sources/raw-audio-transcoder.ts:149
Optional logger used to report pipeline failures.
onError?
optionalonError?: (error) =>void
Defined in: sources/raw-audio-transcoder.ts:138
Callback invoked when the running pipeline fails.
Fired for runtime failures while the transcoder is active (never for teardown-induced errors). The pipeline is dead at that point — the owner should close this instance and create a fresh one if needed.
Parameters
error
unknown
Returns
void
sampleFormat?
optionalsampleFormat?:string
Defined in: sources/raw-audio-transcoder.ts:144
Intermediate sample format name for the resample stage (for example s16, fltp). Defaults to signed 16-bit.
to?
optionalto?:RawAudioTarget
Defined in: sources/raw-audio-transcoder.ts:129
Format the frames are transcoded into. When omitted entirely, the input is normalized to AAC-LC/ADTS at its own sample rate and channel count.