Interface Audio

An implementation to fetch audio related data.

interface Audio {
    buffer?: Buffer;
    client: Client;
    resourceUrl: string;
    toBase64(): Promise<undefined | string>;
    toBuffer(): Promise<undefined | Buffer>;
    toDisk(location): Promise<void>;
}

Hierarchy (view full)

Implemented by

Properties

buffer?: Buffer

A place to store the buffer of the audio file.

client: Client
resourceUrl: string

The external URL to the audio file. Expects a WAV file.

Methods

Generated using TypeDoc