diff --git a/notNeededPackages.json b/notNeededPackages.json index 7d0ab64e55..2e9d509808 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -3624,6 +3624,12 @@ "sourceRepoURL": "https://github.com/not-an-aardvark/snoowrap", "asOfVersion": "1.19.0" }, + { + "libraryName": "snowboy", + "typingsPackageName": "snowboy", + "sourceRepoURL": "https://github.com/Kitt-AI/snowboy", + "asOfVersion": "1.3.1" + }, { "libraryName": "soap", "typingsPackageName": "soap", diff --git a/types/snowboy/index.d.ts b/types/snowboy/index.d.ts deleted file mode 100644 index df8ab04515..0000000000 --- a/types/snowboy/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Type definitions for snowboy 1.2 -// Project: https://github.com/Kitt-AI/snowboy -// Definitions by: Dolan Miu -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -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; -} diff --git a/types/snowboy/snowboy-tests.ts b/types/snowboy/snowboy-tests.ts deleted file mode 100644 index f574475fbc..0000000000 --- a/types/snowboy/snowboy-tests.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Detector, Models } from "snowboy"; -import * as fs from "fs"; - -const models = new Models(); - -models.add({ - file: 'resources/snowboy.umdl', - sensitivity: '0.5', - hotwords: 'snowboy' -}); - -const detector = new Detector({ - resource: "resources/common.res", - models, - audioGain: 1.0 -}); - -detector.on('silence', () => { - console.log('silence'); -}); - -detector.on('sound', (buffer) => { - // contains the last chunk of the audio that triggers the "sound" - // event. It could be written to a wav stream. - console.log('sound'); -}); - -detector.on('error', () => { - console.log('error'); -}); - -detector.on('hotword', (index, hotword, buffer) => { - // contains the last chunk of the audio that triggers the "hotword" - // event. It could be written to a wav stream. You will have to use it - // together with the in the "sound" event if you want to get audio - // data after the hotword. - console.log('hotword', index, hotword); -}); - -const file = fs.createReadStream('resources/snowboy.wav'); diff --git a/types/snowboy/tsconfig.json b/types/snowboy/tsconfig.json deleted file mode 100644 index 1a013bcb02..0000000000 --- a/types/snowboy/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "snowboy-tests.ts" - ] -} \ No newline at end of file diff --git a/types/snowboy/tslint.json b/types/snowboy/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/snowboy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }