https://github.com/tpltnt/wave2c
a simple converter to dump Wave audio into a C-array
https://github.com/tpltnt/wave2c
Last synced: 2 months ago
JSON representation
a simple converter to dump Wave audio into a C-array
- Host: GitHub
- URL: https://github.com/tpltnt/wave2c
- Owner: tpltnt
- License: other
- Created: 2013-02-17T16:58:22.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-28T22:51:34.000Z (about 12 years ago)
- Last Synced: 2025-01-23T00:29:43.933Z (4 months ago)
- Language: Go
- Size: 3.56 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
wave2c
======status: finished (it works)
about
-----
wave2c a simple converter to dump [wave audio](http://en.wikipedia.org/wiki/WAV) into a C-array. This can be used to make audio recordings part of a
microconroller firmware. To do so the audio file has to be an 8bit mono
wavefile with a samplerate of 8KHz (for now).usage
-----
* simply run: ```wave2c INPUTFILE.wav```FAQ
---
* How do i build it?
As long as you have [go](http://golang.org/) and [GNU make](http://www.gnu.org/software/make/) installed, simply type ```make```* How can i convert an arbitary audio file so wave2c can eat it?
Just use [SoX](http://sox.sourceforge.net/). Here is a commandline: ```sox INPUTFILE.wav --bits 8 --channels 1 --encoding unsigned-integer --rate 8k OUTPUTFILE.wav```* How do i test the program?
Simply run: ```make test```