Whistle API
    Preparing search index...

    Function createWhistle

    • Initialize a local-only Node worker and keep its model ready for repeated clips.

      Parameters

      • options: NodeWhistleOptions

        Required CLI-generated asset directory, progress and initialization signal.

      Returns Promise<Whistle>

      A ready isolated engine. Dispose it to await worker termination.

      WhistleError for invalid paths/options, missing or corrupt files, incompatible assets, cancellation, allocation failure or runtime initialization failure.

      Every deployment file is verified before loading executable code. Initialization, repeated calls and cancellation recovery use local files only and work with networking denied.

      import { createWhistle } from '@tiny-stt/whistle/node';
      const engine = await createWhistle({ assetsPath: './vendor/whistle' });
      try {
      console.log(await engine.transcribe(new Float32Array(16000)));
      } finally {
      await engine.dispose();
      }