feat: 多设备组立体声
This commit is contained in:
+15
-10
@@ -4,10 +4,10 @@ set -e
|
||||
|
||||
SSH_PASSWORD=open-xiaoai
|
||||
|
||||
# 1. 编译 client
|
||||
echo "Compiling client..."
|
||||
docker run --rm -v $(pwd):/app/hello open-xiaoai-runtime \
|
||||
cargo build --manifest-path hello/Cargo.toml --target armv7-unknown-linux-gnueabihf --bin client --release
|
||||
# # 1. 编译 client
|
||||
# echo "Compiling client..."
|
||||
# docker run --rm -v $(pwd):/app/hello open-xiaoai-runtime \
|
||||
# cargo build --manifest-path hello/Cargo.toml --target armv7-unknown-linux-gnueabihf --bin client --release
|
||||
|
||||
# 2. 上传 client 到小爱音箱
|
||||
function upload_to_xiaoai() {
|
||||
@@ -18,11 +18,16 @@ function upload_to_xiaoai() {
|
||||
&& echo "✅ Uploaded $binary_name to $ip"
|
||||
}
|
||||
|
||||
upload_to_xiaoai client 192.168.31.153 # left
|
||||
upload_to_xiaoai client 192.168.31.235 # right
|
||||
upload_to_xiaoai stereo 192.168.31.153 # left
|
||||
upload_to_xiaoai stereo 192.168.31.235 # right
|
||||
|
||||
# 3. 编译 server
|
||||
cargo build --bin server --release
|
||||
./target/release/server
|
||||
# # 3. 编译 server
|
||||
# cargo build --bin server --release
|
||||
# ./target/release/server
|
||||
|
||||
# dd if=test.wav | sshpass -p open-xiaoai ssh -o HostKeyAlgorithms=+ssh-rsa root@192.168.31.235 "dd of=/tmp/test.wav"
|
||||
# # dd if=test.wav | sshpass -p open-xiaoai ssh -o HostKeyAlgorithms=+ssh-rsa root@192.168.31.235 "dd of=/tmp/test.wav"
|
||||
|
||||
|
||||
# /data/stereo slave left
|
||||
|
||||
# /data/stereo master right
|
||||
|
||||
Reference in New Issue
Block a user