-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
Description
What would you like to see?
In the collector we use fluent-ffmpeg - this package is deprecated and we should build our own ffmpeg wrapper for this.
- Remove this dependency from the repo
- Build a custom FFMPEG class that is a sub-util specifically for LocalWhisper
- This module should look for ffmpeg cli command
- Should work in container - which has ffmpeg installer(Linux), but also work when running unbundled on Mac, Linux, and Windows.
- FFMPEG_PATH is the default path used by the existing library
- We should then use execSync or spawnSync to run the ffmpeg binary wherever it might be
- convert audio to .wav that is single channel @ 16k hz
- Output the file to a known destination in the collector tmp so that wavefile can load it in as a buffer.
- Add tests that are disabled in github actions (process.env.GITHUB_ACTIONS)
- wavefile should not perform any resampling. eg:
wavFile.toBitDepth("32f");
wavFile.toSampleRate(16000);