Skip to content

Commit

Permalink
Better formatting of the README. Add a wiring diagram.
Browse files Browse the repository at this point in the history
  • Loading branch information
ensonic committed Oct 15, 2015
1 parent 4cb3e7d commit 6c6de7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ official Google product.

First you need to convert you audio sample into a c header. One way you can do
it is:

```Shell
gst-launch-1.0 -q uridecodebin uri=file:///path/to/audio-file ! audioconvert ! \
audioresample ! audioconvert ! "audio/x-raw,format=S8,rate=7874,channels=1" ! \
filesink location=/tmp/snd; \
perl ~/bin/bin2hex.pl /tmp/snd 1 >/tmp/wave_data.h
```

gstreamer is included with most linux distros and I found the bin2hex.pl at
http://www.chami.com/tips/delphi/052098D.html

## wiring

![wiring](waveout.png)

Binary file added waveout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6c6de7c

Please sign in to comment.