Installation
npm install --save @types/wav-encoder
Summary
This package contains type definitions for wav-encoder (https://github.com/mohayonao/wav-encoder/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wav-encoder.
index.d.ts
declare namespace WavEncoder {
interface AudioData {
sampleRate: number;
channelData: Float32Array[];
}
interface Options {
bitDepth: number;
float: boolean;
symmetric: boolean;
}
}
declare const WavEncoder: {
encode: {
(audioData: WavEncoder.AudioData, opts?: WavEncoder.Options): Promise<ArrayBuffer>;
sync: (audioData: WavEncoder.AudioData, opts?: WavEncoder.Options) => ArrayBuffer;
};
};
export = WavEncoder;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Candid Dauth.