An open API service indexing awesome lists of open source software.

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

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```