audd.io
Version:
A NodeJS package used to interact with the music recognition API provided by Audd.io
15 lines (12 loc) • 546 B
text/typescript
import { Base } from './base';
import { IEnterpriseResponse, IGuess, IResponse } from './interface';
export class Audd {
public recognize: Base<IResponse>;
public recognizeWithOffset: Base<IGuess>;
public enterprise: Base<IEnterpriseResponse>;
constructor(token: string) {
this.recognize = new Base(token, 'https://api.audd.io');
this.recognizeWithOffset = new Base(token, 'https://api.audd.io/recognizeWithOffset');
this.enterprise = new Base(token, 'https://enterprise.audd.io');
}
}