-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert audio files (mp3/flac/ogg) to 16khz wav
It's no longer necessary to run sox or ffmpeg beforehand, when using the whisperfile command. If you're audio file isn't in the preferred format, it'll be converted for you automatically using the embedded audio tools.
- Loading branch information
Showing
7 changed files
with
150 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ ORIGIN | |
LOCAL MODIFICATIONS | ||
|
||
- Integrate with llamafile file loader | ||
- Automatically convert MP3/FLAC/OGG to WAV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#define DR_WAV_IMPLEMENTATION | ||
#include "dr_wav.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#include "stb/stb_vorbis.h" | ||
|
||
#define MA_NO_DEVICE_IO | ||
#define MA_NO_RUNTIME_LINKING | ||
#define MINIAUDIO_IMPLEMENTATION | ||
#pragma GCC diagnostic ignored "-Wstringop-overflow" | ||
#include "miniaudio.h" |