cmd/audio-player/looper: cleaned up README.md file

This commit is contained in:
Saxon 2020-03-06 14:27:22 +10:30
parent 6968b973bd
commit e97745c0df
1 changed files with 9 additions and 20 deletions

View File

@ -1,25 +1,14 @@
# NAME # DESCRIPTION
test-audio/looper/README.md looper is a process that will continually repeat playback of an audio file.
Intended hardware is raspberry pi 3 or raspberry pi zero (with audio injector
sound card hat, see http://www.audioinjector.net/rpi-zero).
# AUTHORS # AUTHORS
Ella Pietraroia <ella@ausocean.org> Ella Pietraroia <ella@ausocean.org>
Saxon Nelson-Milton <saxon@ausocean.org>
# Pi Setup: # Pi Setup:
- pull master 1) sudo make install_hard
- navigate to /go/src/bitbucket.org/auscean/av/cmd/audio-player/looper 2) systemctl enable rc-local
$sudo nano main.go 3) sudo systemctl start rc-local.service
- chage file variable at top of function to be wav file that you have put onto the pi (hint: spc command to put a new file on the pi) 4) To check that install steps were successful, restart device and confirm that sound plays.
- Build using $ go build -tags pi0 or $ go build -tags pi3
- run makefile
$sudo make install_hard
$systemctl enable rc-local
$sudo systemctl start rc-local.service
- after starting the service the looping should start straight away
cmd/audio-player/looper:
# Useful commands:
$cat /tmp/rc.local.log
$sudo systemctl status rc-local.service
$cat audio.log (in looper directory)
# On computer
$scp something.wav pi@192.168.1.106:/home/pi