Logger Improvements and WAV Validation Fixes
Fixed
- Fixed CLI download command not executing (missing function call)
npx nodejs-whisper downloadnow works as expected- Fixed restrictive Console logger type that didn't work with popular loggers like Pino, Winston (#158)
- Fixed inconsistent console usage in downloadModel.ts, now properly uses logger parameter (#157)
- Fixed WAV validation that incorrectly reported non-16kHz files as valid (#113)
- WAV files with incorrect sample rates are now automatically converted to 16kHz
- Eliminates "WAV file must be 16 kHz" errors from whisper.cpp
Changed
- Replaced Console type with flexible Logger interface for better logger compatibility
- Updated all internal logging to use logger parameter instead of direct console calls
Added
- Added CHANGELOG.md for version tracking
What's New
This release focuses on improving developer experience with better logging flexibility and fixing audio file validation issues that caused confusion.
Install: npm install [email protected]
Full Changelog: v0.2.7...v0.2.9