You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
zhaohe cc823c54fb 重构工程脚本 2 years ago
.project 重构工程脚本 2 years ago
.vscode 添加IXWEBSOCKET库的支持,更新aiui封装库版本 2 years ago
asrResult/aiui update 2 years ago
dep 修复aiui tts存储的bug 2 years ago
env update 2 years ago
iflybuild@2340768938 重构工程脚本 2 years ago
src 修复aiui tts存储的bug 2 years ago
webapp 修复aiui tts存储的bug 2 years ago
zcmake@2d6d2f67a4 修改编译脚本支持ffmpeg alsa 2 years ago
.clang-format update zlinuxcomponents and .clang-format 2 years ago
.gitignore 重构工程脚本 2 years ago
.gitmodules 重构编译脚本 2 years ago
CMakeLists.txt 重构工程脚本 2 years ago
Linux测试指令说明.md update 2 years ago
README.md 重构工程脚本 2 years ago
TODO.md create boardinit.sh 2 years ago
boardinit.sh 重构编译脚本 2 years ago
build.sh 重构编译脚本 2 years ago
工程对接.md update 2 years ago

README.md

linux_smart_speaker_sdk

# 此工程基于 https://iflytop1.feishu.cn/wiki/wikcnO8wSlckAFUfY6VvZHFsgIc 实现

编译RK3328


# 板子环境初始化
./sh/boardinit.sh --deviceId <deviceId> --ftpserver 47.92.195.73 --fixmac true --ip <ip>
# demo
./sh/boardinit.sh \
--deviceId intelligent_light_pole01 \
--ftpserver 47.92.195.73  \
--fixmac true \
--ip 192.168.1.191 \
--startup_url https://shjyy.becloud.net.cn/WaterWorks/#/?id=855 \
--aiui_auth_id ac30105366ea460f9ff08ddac0c4f712 


# 初始化环境
./build.sh envsetup 

# 仅编译
./build.sh build
# 编译调试版本,Cmake使用的是cmakepc.cmake
./build.sh buildhost

# 编译打包部署(整包)
./build.sh --ip <ip> flash

# 编译打包部署,重启系统(整包)
./build.sh --ip <ip> flash reboot

# 编译并只部署应用
./build.sh --ip <ip> --flashapp "app.out"

# 只部署webapp
./build.sh --ip <ip> flashwebapp

# 配置ssh-key,免密登录
./build.sh --ip <ip> ssh_copy_id

串口调试

波特率:1,500,000

sudo minicom -b 1500000 -D /dev/ttyUSB0

唤醒词引擎环境测试

# 下载唤醒词引擎
wget 192.168.1.2:8021/manufacturer_mycroft/mycroft-precise-release/precise-all_0.3.0_aarch64.tar.gz
tar -xvf precise-all_0.3.0_aarch64.tar.gz

# 下载唤醒词模型
wget ftp://zftpuser:zftpzwsd@192.168.1.2/zwsd/manufacturer_mycroft/hotworld/xiaomaoxiaomao/xiaomaoxiaomao_module_20220519.tar.gz
tar -xvf xiaomaoxiaomao_module_20220519.tar.gz -C./
mv xiaomaoxiaomao/* .

# 下载唤醒词语音
wget 192.168.1.2:8021/manufacturer_mycroft/hotworld/xiaomaoxiaomao/test_xiaomaoxiaomao.wav

# 测试
./precise/precise-engine xiaomaoxiaomao.pb 2048 < test_xiaomaoxiaomao.wav

应用开发约定
    1.嵌入式Linux开发板应用存放路径为/app
    2.应用名称为app.out
    3.工程名称app
    4.嵌入式文件系统默认上电以ROOT权限启动脚本/app/startup.sh