This commit is contained in:
IrvingGao 2024-06-13 22:30:17 +08:00
parent d9265aab04
commit 932ac3c5ad
4 changed files with 43 additions and 4 deletions

View File

@ -10,8 +10,10 @@ sudo apt-get upgrade -y
sudo apt-get install -y cmake g++ gcc git
sudo apt-get install -y swig python3-pip python3-dev portaudio19-dev libsndfile1 python3-setuptools
# install wiringOP-Python
cp -r /usr/src/wiringOP-Python/ ./
# cp -r /usr/src/wiringOP-Python/ ./
git clone http://43.132.157.186:3000/gaohz/wiringOP-Python.git
cd wiringOP-Python
python3 generate-bindings.py > bindings.i
sudo python3 setup.py install
@ -21,7 +23,7 @@ cd ..
# install TakwayBoard
git clone http://43.132.157.186:3000/gaohz/TakwayBoard.git
cd TakwayBoard
pip install -r requirements.txt
sudo pip install -r requirements.txt
sudo pip install -v -e .
cd ..

38
board_rsp_env_setup.sh Normal file
View File

@ -0,0 +1,38 @@
#!/bin/bash
# update system
sudo -S apt-get update -y << EOF
123456
EOF
# install dependencies
sudo apt-get upgrade -y
sudo apt-get install -y cmake g++ gcc git
sudo apt-get install -y swig python3-pip python3-dev portaudio19-dev libsndfile1 python3-setuptools
# install wiringOP-Python
cp -r /usr/src/wiringOP-Python/ ./
cd wiringOP-Python
python3 generate-bindings.py > bindings.i
sudo python3 setup.py install
cd ..
# install TakwayBoard
git clone http://43.132.157.186:3000/gaohz/TakwayBoard.git
cd TakwayBoard
sudo pip install -r requirements.txt
sudo pip install -v -e .
cd ..
# install wifi hotspot
sudo apt-get install -y hostapd dnsmasq
git clone http://43.132.157.186:3000/gaohz/wifi_hotpot.git
cd wifi_hotpot
sudo pip install flask psutil
# reboot
reboot

View File

@ -1,7 +1,6 @@
numpy
Unidecode
pyaudio
keyboard
websocket-client
pvporcupine
requests

View File

@ -10,7 +10,7 @@ if __name__ == '__main__':
# server_url = 'ws://39.107.254.69:33089/chat'
# server_url = 'wss://takway-ai.kingtous.cn/chat/streaming'
# server_url = 'ws://114.214.236.207:7878/chat/streaming'
server_url = 'wss://takway-ai.top:8001/chat/streaming/temporary'
server_url = 'wss://takway-ai.top:8001/api/chat/streaming/temporary'
# session_id = 'b5923335-a0dd-4d50-b3bf-5ce2a50894ed'
# session_id = '28445e6d-e8c1-46a6-b980-fbf39b918def' # 鸭