forked from rydercalmdown/google_assistant_telephone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 851 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
PI_IP_ADDRESS=10.0.0.10
PI_USERNAME=pi
.PHONY: copy
copy:
@rsync -a $(shell pwd) --exclude env $(PI_USERNAME)@$(PI_IP_ADDRESS):/home/$(PI_USERNAME)
.PHONY: install
install:
@cd deployment && bash install.sh
.PHONY: run
run:
@. env/bin/activate && cd src && python app.py
.PHONY: test
test:
@echo "Say Something for the next 5 seconds"
@arecord -D plughw:1,0 --duration=5 test.wav
@echo "You should hear your voice back"
@aplay test.wav
@rm -rf test.wav
.PHONY: shell
shell:
@ssh $(PI_USERNAME)@$(PI_IP_ADDRESS)
.PHONY: authenticate
authenticate:
@. env/bin/activate && cd deployment && bash get_account_credentials.sh
.PHONY: configure-audio
configure-audio:
@cd deployment && bash configure_usb_audio.sh
.PHONY: configure-on-boot
configure-on-boot:
@echo "Configuring /etc/rc.local"
@cd deployment && bash configure_on_boot.sh