Skip to main content

MAX_DURATION_MS

@siteed/audio-studio


@siteed/audio-studio / MAX_DURATION_MS

Variable: MAX_DURATION_MS

const MAX_DURATION_MS: 30000 = 30_000

Defined in: src/AudioAnalysis/extractMelSpectrogram.ts:25

Maximum duration in milliseconds that extractMelSpectrogram will process in a single call. The C++ core requires the entire trimmed range as a contiguous float array in memory, so this bound prevents OOM on all platforms. Callers needing longer ranges can iterate in windows of this size using startTimeMs/endTimeMs.