
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@picovoice/leopard-node
Advanced tools
Made in Vancouver, Canada by Picovoice
Leopard is an on-device speech-to-text engine. Leopard is:
npm install @picovoice/leopard-node
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
.
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 audioPath = "${AUDIO_FILE_PATH}"
const leopard = new Leopard(accessKey);
const result = leopard.processFile(audioPath);
console.log(result.transcript);
Replace ${ACCESS_KEY}
with yours obtained from Picovoice Console and
${AUDIO_FILE_PATH}
to the path an audio file. Finally, when done be sure to explicitly release the resources using
leopard.release()
.
The Leopard Node.js SDK comes preloaded with a default English language model (.pv
file).
Default models for other supported languages can be found in lib/common.
Create custom language models using the Picovoice Console. Here you can train language models with custom vocabulary and boost words in the existing vocabulary.
Pass in the .pv
file via the modelPath
parameter in the options
argument of the Leopard constructor:
const leopard = new Leopard(
accessKey,
{ modelPath: "${MODEL_FILE_PATH}"});
Along with the transcript, Leopard returns metadata for each transcribed word. Available metadata items are:
[0, 1]
.0
reserved for unknown speakers. If speaker diarization is not enabled, the value will always be -1
.Leopard Node.js demo package provides command-line utilities for processing audio using leopard.
FAQs
Picovoice Leopard Node.js binding
The npm package @picovoice/leopard-node receives a total of 1,088 weekly downloads. As such, @picovoice/leopard-node popularity was classified as popular.
We found that @picovoice/leopard-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.