feat: 多设备组立体声

This commit is contained in:
Del Wang
2025-12-31 22:53:33 +08:00
committed by Del
parent 8e788f4b47
commit 962647afea
6 changed files with 741 additions and 10 deletions
+15 -10
View File
@@ -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