@picovoice/leopard-node
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Leopard Binding for Node.js

Made in Vancouver, Canada by Picovoice

Leopard is an on-device speech-to-text engine. Leopard is:

  • Private; All voice processing runs locally.
  • Accurate [1]
  • Compact and Computationally-Efficient [2]
  • Cross-Platform:
    • Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64)
    • Android and iOS
    • Chrome, Safari, Firefox, and Edge
    • Raspberry Pi (4, 3) and NVIDIA Jetson Nano

Compatibility

  • Node.js 12+
  • Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.

Installation

npm install @picovoice/leopard-node

AccessKey

Leopard requires a valid Picovoice AccessKey at initialization. AccessKey acts as your credentials when using Leopard SDKs. You can get your AccessKey for free. Make sure to keep your AccessKey secret. Signup or Login to Picovoice Console to get your AccessKey.

Usage

Create an instance of the engine and transcribe an audio file:

const Leopard = require("@picovoice/leopard-node");

const accessKey = "${ACCESS_KEY}" // Obtained from the Picovoice Console (https://console.picovoice.ai/)
const handle = new Leopard(accessKey);

const result = engineInstance.processFile('${AUDIO_PATH}');
console.log(result.transcript);

Replace ${ACCESS_KEY} with yours obtained from Picovoice Console and ${AUDIO_PATH} to the path an audio file. Finally, when done be sure to explicitly release the resources using handle.release().

Demos

Leopard Node.js demo package provides command-line utilities for processing audio using leopard.

Install

npm i @picovoice/leopard-node

DownloadsWeekly Downloads

79

Version

1.1.1

License

Apache-2.0

Unpacked Size

31.7 MB

Total Files

47

Last publish

Collaborators

  • dynamix70
  • erismikpico
  • ilavery
  • iliadrm
  • kenarsa
  • kyeo