mirror of https://bitbucket.org/ausocean/av.git
cmd/audio-player/looper: cleaned up README.md file
This commit is contained in:
parent
6968b973bd
commit
e97745c0df
|
@ -1,25 +1,14 @@
|
|||
# NAME
|
||||
test-audio/looper/README.md
|
||||
# DESCRIPTION
|
||||
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
|
||||
Ella Pietraroia <ella@ausocean.org>
|
||||
Saxon Nelson-Milton <saxon@ausocean.org>
|
||||
|
||||
# Pi Setup:
|
||||
- pull master
|
||||
- navigate to /go/src/bitbucket.org/auscean/av/cmd/audio-player/looper
|
||||
$sudo nano main.go
|
||||
- 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)
|
||||
- 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
|
||||
1) sudo make install_hard
|
||||
2) systemctl enable rc-local
|
||||
3) sudo systemctl start rc-local.service
|
||||
4) To check that install steps were successful, restart device and confirm that sound plays.
|
||||
|
|
Loading…
Reference in New Issue