On this page
Everyframe · TypeScript SDK reference
audio: audio filters
Audio to Audio filters: loudness, EQ, dynamics, denoise and time effects. Visualizers (showcqt, showspectrum, showwaves) return a Video stream.
@jtdigital/renderbox-sdk on npm →acompressor
AudioStream.acompressor(opts?: AcompressorOpts): AudioStreamDynamic range compressor
| Param | Type | Description |
|---|---|---|
| threshold | number | |
| ratio | number |
acontrast
AudioStream.acontrast(opts?: AcontrastOpts): AudioStreamSimple audio dynamic contrast enhancement
| Param | Type | Description |
|---|---|---|
| contrast | number |
adeclick
AudioStream.adeclick(opts?: AdeclickOpts): AudioStreamRemove clicks and pops
| Param | Type | Description |
|---|---|---|
| window | number | |
| overlap | number | |
| arorder | number | |
| threshold | number | |
| burst | number | |
| method | 'add' | 'a' | 'save' | 's' |
adelay
AudioStream.adelay(opts: AdelayOpts): AudioStreamDelay one or more channels
| Param | Type | Description |
|---|---|---|
| delays required | string |
aecho
AudioStream.aecho(opts: AechoOpts): AudioStreamEcho effect
| Param | Type | Description |
|---|---|---|
| in_gain | number | |
| out_gain | number | |
| delays required | string | |
| decays required | string |
afade
AudioStream.afade(opts: AfadeOpts): AudioStreamFade audio in or out
| Param | Type | Description |
|---|---|---|
| type required | 'in' | 'out' | |
| duration | number |
Range: greater than 0
|
| start_time | number |
Range: at least 0
|
afftdn
AudioStream.afftdn(opts?: AfftdnOpts): AudioStreamFFT-based broadband noise reduction
| Param | Type | Description |
|---|---|---|
| nr | number | |
| nt | 'w' | 'v' | 's' | 'p' | |
| bn | string |
agate
AudioStream.agate(opts?: AgateOpts): AudioStreamNoise gate
| Param | Type | Description |
|---|---|---|
| threshold | number | |
| ratio | number | |
| attack | number | |
| release | number | |
| range | number | |
| detection | 'peak' | 'rms' |
alimiter
AudioStream.alimiter(opts?: AlimiterOpts): AudioStreamLookahead peak limiter
| Param | Type | Description |
|---|---|---|
| limit | number | |
| attack | number | |
| release | number | |
| level_in | number | |
| level_out | number | |
| level | boolean | |
| asc | boolean |
aloop
AudioStream.aloop(opts?: AloopOpts): AudioStreamLoop a range of audio samples
| Param | Type | Description |
|---|---|---|
| loop | number | |
| size | number | |
| start | number |
amerge
AudioStream.amerge(opts?: AmergeOpts): AudioStreamMerge channels of two streams into one
| Param | Type | Description |
|---|---|---|
| inputs | number |
anlmdn
AudioStream.anlmdn(opts?: AnlmdnOpts): AudioStreamNon-local means audio denoising
| Param | Type | Description |
|---|---|---|
| s | number | |
| p | number | |
| r | number |
apad
AudioStream.apad(opts?: ApadOpts): AudioStreamPad the end of audio with silence
| Param | Type | Description |
|---|---|---|
| whole_dur | number |
aphaser
AudioStream.aphaser(opts?: AphaserOpts): AudioStreamPhaser effect
| Param | Type | Description |
|---|---|---|
| in_gain | number | |
| out_gain | number | |
| delay | number | |
| decay | number | |
| speed | number | |
| type | 'triangular' | 'sinusoidal' |
aresample
AudioStream.aresample(opts: AresampleOpts): AudioStreamResample audio to target rate
| Param | Type | Description |
|---|---|---|
| rate required | number |
areverse
AudioStream.areverse(): AudioStreamReverse the audio
asetpts
AudioStream.asetpts(opts: AsetptsOpts): AudioStream| Param | Type | Description |
|---|---|---|
| expr required | string |
astats
AudioStream.astats(opts?: AstatsOpts): AudioStreamMeasure per-channel audio statistics
| Param | Type | Description |
|---|---|---|
| metadata | number | |
| reset | number | |
| measure_perchannel | string | |
| measure_overall | string |
asubboost
AudioStream.asubboost(opts?: AsubboostOpts): AudioStreamBoost sub-bass frequencies
| Param | Type | Description |
|---|---|---|
| dry | number | |
| wet | number | |
| decay | number | |
| feedback | number | |
| cutoff | number | |
| slope | number | |
| delay | number |
atempo
AudioStream.atempo(opts: AtempoOpts): AudioStreamChange tempo without changing pitch
| Param | Type | Description |
|---|---|---|
| tempo required | number | Tempo multiplier (1.0 = unchanged).
Range: [0.5, 100]
|
atrim
AudioStream.atrim(opts?: AtrimOpts): AudioStreamKeep only the samples between start and end
| Param | Type | Description |
|---|---|---|
| start | number |
Range: at least 0
|
| end | number |
Range: greater than 0
|
bandpass
AudioStream.bandpass(opts: BandpassOpts): AudioStreamBand-pass filter around a center frequency
| Param | Type | Description |
|---|---|---|
| f required | number | |
| width_type | 'h' | 'q' | 'o' | 's' | 'k' | |
| width required | number |
bass
AudioStream.bass(opts: BassOpts): AudioStreamBoost or cut bass frequencies
| Param | Type | Description |
|---|---|---|
| gain required | number | |
| frequency | number | |
| width_type | 'h' | 'q' | 'o' | 's' | 'k' | |
| width | number |
channelmap
AudioStream.channelmap(opts?: ChannelmapOpts): AudioStreamRemap audio channels
| Param | Type | Description |
|---|---|---|
| map | string | |
| channel_layout | string |
chorus
AudioStream.chorus(opts?: ChorusOpts): AudioStreamChorus effect
| Param | Type | Description |
|---|---|---|
| in_gain | number | |
| out_gain | number | |
| delays | string | |
| speeds | string | |
| depths | string | |
| decays | string |
compand
AudioStream.compand(opts?: CompandOpts): AudioStreamCompress or expand dynamic range with a transfer curve
| Param | Type | Description |
|---|---|---|
| attacks | string | |
| decays | string | |
| points | string | |
| soft-knee | number | |
| gain | number | |
| volume | number | |
| delay | number |
crossfeed
AudioStream.crossfeed(opts?: CrossfeedOpts): AudioStreamBlend stereo channels for headphone listening
| Param | Type | Description |
|---|---|---|
| strength | number | |
| range | number | |
| slope | number | |
| level_in | number | |
| level_out | number |
deesser
AudioStream.deesser(opts?: DeesserOpts): AudioStreamReduce sibilance ('s' harshness)
| Param | Type | Description |
|---|---|---|
| i | number | |
| m | number | |
| f | number | |
| s | 'i' | 'o' | 'e' |
dialoguenhance
AudioStream.dialoguenhance(opts?: DialoguenhanceOpts): AudioStreamEnhance dialogue against background audio
| Param | Type | Description |
|---|---|---|
| original | number | |
| enhance | number | |
| voice | number |
dynaudnorm
AudioStream.dynaudnorm(opts?: DynaudnormOpts): AudioStreamDynamic loudness normalization over time windows
| Param | Type | Description |
|---|---|---|
| framelen | number | |
| gausssize | number | |
| peak | number | |
| maxgain | number | |
| targetrms | number | |
| compress | number | |
| threshold | number |
ebur128
AudioStream.ebur128(): AudioStreamMeasure EBU R128 loudness
equalizer
AudioStream.equalizer(opts: EqualizerOpts): AudioStreamParametric EQ band
| Param | Type | Description |
|---|---|---|
| f required | number | |
| width_type | 'h' | 'q' | 'o' | 's' | 'k' | |
| width required | number | |
| gain required | number |
flanger
AudioStream.flanger(opts?: FlangerOpts): AudioStreamFlanger effect
| Param | Type | Description |
|---|---|---|
| delay | number | |
| depth | number | |
| speed | number |
highpass
AudioStream.highpass(opts: HighpassOpts): AudioStreamHigh-pass filter
| Param | Type | Description |
|---|---|---|
| f required | number | Cutoff frequency in Hz. |
loudnorm
AudioStream.loudnorm(opts?: LoudnormOpts): AudioStreamLoudness normalization
| Param | Type | Description |
|---|---|---|
| I | number | Target integrated loudness in LUFS (broadcast standard: -23, streaming: -14).
Range: [-70, -5]
|
| TP | number | Maximum true peak in dBTP.
Range: [-9, 0]
|
| LRA | number | Target loudness range in LU.
Range: [1, 50]
|
lowpass
AudioStream.lowpass(opts: LowpassOpts): AudioStreamLow-pass filter
| Param | Type | Description |
|---|---|---|
| f required | number |
pan
AudioStream.pan(opts: PanOpts): AudioStreamMix/route channels with per-channel gains
| Param | Type | Description |
|---|---|---|
| layout required | string |
rubberband
AudioStream.rubberband(opts?: RubberbandOpts): AudioStreamTime-stretch and pitch-shift (Rubber Band)
| Param | Type | Description |
|---|---|---|
| tempo | number | |
| pitch | number | |
| transients | 'crisp' | 'mixed' | 'smooth' | |
| detector | 'compound' | 'percussive' | 'soft' | |
| phase | 'laminar' | 'independent' | |
| window | 'standard' | 'short' | 'long' | |
| smoothing | 'off' | 'on' | |
| formant | 'shifted' | 'preserved' | |
| pitchq | 'quality' | 'speed' | 'consistency' | |
| channels | 'apart' | 'together' |
showcqt
AudioStream.showcqt(opts?: ShowcqtOpts): VideoStreamRender a constant-Q spectrum visualization as video
| Param | Type | Description |
|---|---|---|
| s | string | |
| fps | number | |
| bar_h | number | |
| axis_h | number | |
| sono_h | number | |
| fullhd | number | |
| sono_v | string | |
| bar_v | string | |
| count | number | |
| fcount | number | |
| fontcolor | string | |
| font | string | |
| fontsize | number |
showspectrum
AudioStream.showspectrum(opts?: ShowspectrumOpts): VideoStreamRender a spectrogram as video
| Param | Type | Description |
|---|---|---|
| s | string | |
| mode | 'combined' | 'separate' | |
| slide | 'replace' | 'scroll' | 'fullframe' | 'rscroll' | |
| color | string | |
| scale | 'lin' | 'log' | 'sqrt' | 'cbrt' | '5thrt' | '4thrt' | |
| fscale | 'lin' | 'log' | |
| saturation | number | |
| win_func | string | |
| orientation | 'vertical' | 'horizontal' | |
| overlap | number | |
| gain | number | |
| data | 'magnitude' | 'phase' | 'uphase' | |
| rotation | number | |
| start | number | |
| stop | number | |
| fps | number | |
| legend | number |
showwaves
AudioStream.showwaves(opts?: ShowwavesOpts): VideoStreamRender the waveform as video
| Param | Type | Description |
|---|---|---|
| s | string | |
| mode | 'point' | 'line' | 'p2p' | 'cline' | |
| rate | number | |
| n | number | |
| colors | string | |
| scale | 'lin' | 'log' | 'sqrt' | 'cbrt' | '5thrt' | |
| draw | 'full' | 'scale' | |
| split_channels | number |
silencedetect
AudioStream.silencedetect(opts?: SilencedetectOpts): AudioStreamDetect silent intervals
| Param | Type | Description |
|---|---|---|
| noise | string | |
| d | number |
silenceremove
AudioStream.silenceremove(opts?: SilenceremoveOpts): AudioStreamCut silence from the audio
| Param | Type | Description |
|---|---|---|
| stop_periods | number | Number of silence periods to remove from the middle/end. |
| stop_duration | number | Minimum silence length in seconds before cutting. |
| stop_threshold | string | Level treated as silence (e.g. '-50dB'). |
speechnorm
AudioStream.speechnorm(opts?: SpeechnormOpts): AudioStreamSpeech-optimized loudness normalization
| Param | Type | Description |
|---|---|---|
| peak | number | |
| expansion | number | |
| compression | number | |
| threshold | number | |
| raise | number | |
| fall | number |
stereowiden
AudioStream.stereowiden(opts?: StereowidenOpts): AudioStreamWiden the stereo image
| Param | Type | Description |
|---|---|---|
| delay | number | |
| feedback | number | |
| crossfeed | number |
surround
AudioStream.surround(opts?: SurroundOpts): AudioStreamUpmix stereo to surround
| Param | Type | Description |
|---|---|---|
| chl_out | string | |
| chl_in | string | |
| level_in | number | |
| level_out | number | |
| lfe | boolean | |
| lfe_low | number | |
| lfe_high | number | |
| fc_in | number | |
| fc_out | number | |
| fl_in | number | |
| fl_out | number | |
| fr_in | number | |
| fr_out | number | |
| bl_in | number | |
| bl_out | number | |
| br_in | number | |
| br_out | number | |
| lfe_in | number | |
| lfe_out | number |
treble
AudioStream.treble(opts: TrebleOpts): AudioStreamBoost or cut treble frequencies
| Param | Type | Description |
|---|---|---|
| gain required | number | |
| frequency | number | |
| width_type | 'h' | 'q' | 'o' | 's' | 'k' | |
| width | number |
tremolo
AudioStream.tremolo(opts?: TremoloOpts): AudioStreamAmplitude modulation (tremolo)
| Param | Type | Description |
|---|---|---|
| f | number | |
| d | number |
vibrato
AudioStream.vibrato(opts?: VibratoOpts): AudioStreamFrequency modulation (vibrato)
| Param | Type | Description |
|---|---|---|
| f | number | |
| d | number |
volume
AudioStream.volume(opts: VolumeOpts): AudioStreamAdjust volume
| Param | Type | Description |
|---|---|---|
| volume required | number | Gain multiplier (1.0 = unchanged, 0.5 = -6 dB).
Range: at least 0
|