echogarden
Version:
An easy-to-use speech toolset. Includes tools for synthesis, recognition, alignment, speech translation, language detection, source separation and more.
17 lines • 633 B
TypeScript
export declare class DecayingPeakEstimator {
readonly options: DecayingPeakEstimatorOptions;
readonly ticksPerSecond: number;
readonly decayPerTick: number;
currentPeak: number;
constructor(options: DecayingPeakEstimatorOptions, ticksPerSecond: number);
readonly process: (value: number) => void;
private processMaximum;
private processMinimum;
}
export interface DecayingPeakEstimatorOptions {
kind: DecayingPeakEstimatorKind;
decayPerSecond: number;
initialPeak: number;
}
export type DecayingPeakEstimatorKind = 'maximum' | 'minimum';
//# sourceMappingURL=DecayingPeakEstimator.d.ts.map