@types/wav-encoder
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/wav-encoder

Weekly Downloads

1,444

Version

1.3.3

License

MIT

Unpacked Size

3.54 kB

Total Files

5

Last publish

Collaborators

  • types