echogarden
Version:
An easy-to-use speech toolset. Includes tools for synthesis, recognition, alignment, speech translation, language detection, source separation and more.
22 lines • 844 B
TypeScript
import { SmoothEstimator } from '../utilities/SmoothEstimator.js';
import { KWeightingFilter } from './KWeightingFilter.js';
export declare class LoudnessEstimator {
readonly options: LoudnessEstimatorOptions;
readonly channelFilters: KWeightingFilter[];
readonly channelMeanSquares: SmoothEstimator[];
readonly minPower: number;
constructor(options: LoudnessEstimatorOptions);
process(sample: number, channel: number): void;
get currentLoudness(): number;
getCurrentRMSForChannel(channel: number): number;
}
export interface LoudnessEstimatorOptions {
sampleRate: number;
channelCount: number;
positiveAdaptationRate: number;
negativeAdaptationRate: number;
initialEstimate: number;
minimumLoudness: number;
applyKWeighting: boolean;
}
//# sourceMappingURL=LoudnessEstimator.d.ts.map