25年10月入手OrangePi Zero3
Cortex a53 1.4GHz四核ARM处理器 1G内存
mission 1: 烧录嵌入式Linux系统
balenaEtcher Portable(Portable是绿色免安装)
Orangepizero3_1.0.8_ubuntu_jammy_desktop_xfce_linux5.4.125
一个完整的XFCE桌面环境,在启动后,基础占用通常在 350MB - 500MB 之间。这包括了X窗口服务器、窗口管理器、面板、文件管理器等所有基础组件。而远程图形界面的vnc服务也会占用一部分资源,因此随后换用server镜像
mission 2:交叉编译(CROSS_COMPILE)环境
编译是将源码转换成机器执行的二级制文件,编译需要编译器,且编译环境有一定配置要求(比如内存),因此嵌入式linux的编译需求通常需要在更高级的平台上完成,被称为cross compile(QQs按: cross翻译成交叉真的没问题吗)
mission 3:联网 录音、播音外设连接
命令行连接wifi:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| iwconfig
sudo nano /etc/netplan/01-wifi-config.yaml
network: version: 2 renderer: networkd wifis: wlan0: dhcp4: true optional: true access-points: "your_wifi_ssid": password: "your_wifi_password"
sudo netplan apply
|
连接usb设备:
测试音频输入输出
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| $ aplay /usr/share/sounds/alsa/Front_Center.wav
$ arecord -l
**** List of CAPTURE Hardware Devices **** card 2: ahubhdmi [ahubhdmi], device 0: ahub_plat-i2s-hifi i2s-hifi-0 [ahub_plat-i2s-hifi i2s-hifi-0] Subdevices: 1/1 Subdevice card 3: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice
$ arecord -D plughw:3,0 -d 10 -f cd -c 1 test.wav $ aplay test.wav
|
mission 4:调用LLM api
mission 5:语音唤醒
mission 6: 指令训练
mission 7:音色识别 避免其他设备混淆