Package Exports
- whisper-node-addon
- whisper-node-addon/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (whisper-node-addon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
⚠️ Development Status Warning
This library whisper-node-addon
is currently in early experimental phase. APIs may change breakingly and production use is not recommended!
For stable & production-ready solutions, please use the mature library: ChetanXpro/nodejs-whisper 👈 or whisper.cpp
whisper-node-addon 🌐🔉
Automatic whisper.cpp bindings for Node.js & Electron across all platforms.
✨ Features
📦 Installation
npm i whisper-node-addon
🚀 Usage
import { transcribe } from 'whisper-node-addon/dist'
const modelPath = path.resolve('./resources/models/ggml-base.bin')
// Transcribe audio
try {
const result = await transcribe({
language: 'zh',
model: modelPath,
fname_inp: tempFilePath,
translate: false
})
return result.reduce((pre, cur) => pre + (cur[2] || ''), '')
} catch (err) {
console.error('Error:', err)
return ''
}
🛠 Build from Source (Optional)
# Build binaries for all platforms
npm run build
📂 File Structure
🤝 Contributing
📜 TODO
⚖️ License
MIT © 2025 starNGC2237