mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
21 lines
566 B
TypeScript
21 lines
566 B
TypeScript
// Type definitions for snowboy 1.2
|
|
// Project: https://github.com/Kitt-AI/snowboy
|
|
// Definitions by: Dolan Miu <https://github.com/dolanmiu>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
import { Stream } from "stream";
|
|
|
|
export type State = "sound" | "silence" | "hotword" | "error";
|
|
|
|
export class Detector extends Stream {
|
|
constructor(params: any);
|
|
|
|
on(event: State | symbol, callback: (index: any, hotword?: any, buffer?: Buffer) => void): this;
|
|
}
|
|
|
|
export class Models {
|
|
add(params: any): void;
|
|
}
|