From 932ac3c5ad30d10907dcc74edba20a54d5024391 Mon Sep 17 00:00:00 2001 From: IrvingGao <1729854488@qq.com> Date: Thu, 13 Jun 2024 22:30:17 +0800 Subject: [PATCH] update --- board_env_setup.sh | 6 ++++-- board_rsp_env_setup.sh | 38 ++++++++++++++++++++++++++++++++++++++ requirements.txt | 1 - ws_client.py | 2 +- 4 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 board_rsp_env_setup.sh diff --git a/board_env_setup.sh b/board_env_setup.sh index 9f856c3..2886b67 100644 --- a/board_env_setup.sh +++ b/board_env_setup.sh @@ -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 .. diff --git a/board_rsp_env_setup.sh b/board_rsp_env_setup.sh new file mode 100644 index 0000000..e59f8ec --- /dev/null +++ b/board_rsp_env_setup.sh @@ -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 diff --git a/requirements.txt b/requirements.txt index 247619b..a0b5dbd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ numpy Unidecode pyaudio -keyboard websocket-client pvporcupine requests diff --git a/ws_client.py b/ws_client.py index b5ebbb9..c20bdba 100644 --- a/ws_client.py +++ b/ws_client.py @@ -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' # ιΈ­