A simple Node.js utility to encode any file into a WAV file and decode WAV files back to their original data.
- Convert text or binary files into a WAV file format.
- Decode WAV files back into their original data.
- Supports user-friendly CLI prompts.
- Node.js (v14 or newer)
- npm or bun installed
- Clone the repository or copy the
index.js
file. - Install dependencies:
npm install inquirer
- Run the script:
node index.js
- Follow the prompts:
- Select Convert file to WAV to encode a file.
- Select Decode WAV file to decode a WAV back into its original format.
- Enter the file paths as prompted.
- Large files may exceed WAV format limits.
- Encoded WAV files are not playable as audio.
- Convert
example.txt
toexample.txt.wav
. - Decode
example.txt.wav
back toexample.txt
.