This commit is contained in:
biss committed 2026-10-08 16:02:40 +08:00
1 parent abb68b4024
commit 6b8ef2ea79
1369 files changed
-159648

No files matched your search

-167
View File
@@ -1,167 +0,0 @@
<p align="right"><a href="README.zh_CN.md">简体中文</a> · <strong>English</strong></p>
# Arasaka Personnel Badge · AI Passport
> Hardware Target: FoloToy AI Passport (ESP32-C3 · 8 MB Flash · 240 × 320 ST7789 display · 3 physical buttons · ES8311 audio · CW2017 fuel gauge)
> Firmware Version: **v2.6.53**
A Cyberpunk/Arasaka corporate-themed wearable badge firmware. Integrates **5 themed mini-apps**, **full XiaoZhi AI voice interaction with 19 MCP device control tools**, **252-pose vector emotion avatars**, **5 independent local badge profile slots**, and **offline Web serial/hotspot configuration**.
Transitions and selections provide a single 160 ms scanning-line response with zero continuous flashing or artificial latency. All fonts, vector glyphs, and layouts are tailored for the 240 × 320 portrait display.
---
## Architecture & Features
```text
┌─────────────────────────────────────────────────────────────┐
│ Badge Home │
│ · Corporate/custom branding · Geometric dynamic emblem │
│ · Real-time clock & battery · Wi-Fi connection status │
│ · Avatar & ID clearance · 1/5 slot indicator │
└──────────────┬───────────────────┬───────────────────┬──────┘
│ (Short press UP) │ (Long press UP) │ (Short press OK)
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ Mini Apps │ │ XiaoZhi AI │ │ Terminal │
└───────┬───────┘ └───────────────┘ └───────┬───────┘
│ │
┌─────────┴─────────┐ ┌─────────┴─────────┐
│ 1. Zen Muyu │ │ · Mini Apps │
│ 2. Voice Keychain │ │ · Profile Config │
│ 3. City Radio │ │ · My QR │
│ 4. Cyber Yao │ │ · System Settings │
│ 5. Holy Cup │ │ · Return to Badge │
└───────────────────┘ └───────────────────┘
```
### 1. Five Themed Built-in Mini-Apps
All mini-apps are managed under the unified system lifecycle and adapt to the active badge's 5-color palette (background, panel, accent, primary text, muted text):
| Mini-App | ID | Description & Highlights | Key Controls |
| --- | --- | --- | --- |
| **Zen Muyu** | `zen-muyu` | Vector wooden-fish striking animation and sound, manual or auto-strike mode, 4 rhythm settings (30/60/80/120 bpm). Progress persists in NVS across reboots. | **OK**: Strike<br>**UP**: Toggle Auto/Manual<br>**DOWN**: Cycle tempo (30/60/80/120 bpm)<br>**Long UP**: Pause & save<br>**Long DOWN**: Cycle volume (0/20/40/60/80%) |
| **Voice Keychain** | `voice-keychain` | 24 categories and 695 soundboard clips. Lightweight stream decoder with zero backlog on new playback; long titles scroll smoothly. | **UP/DOWN**: Navigate categories/clips<br>**OK**: Enter / Play<br>**Long UP**: Volume setting<br>**Long DOWN**: Stop playback |
| **City Radio** | `leo-radio` | Internet radio player streaming curated city stations over Wi-Fi, featuring channel resume and audio recovery. | **UP/DOWN**: Switch station<br>**OK**: Play / Pause<br>**Long UP**: Radio / network settings |
| **Cyber Yao** | `cyber-yao` | I Ching divination based on CyberYAO. Throw 3 coins six times to cast hexagrams from bottom to top; scroll judgements and line texts; automatic true solar time calibration via IP geolocation; one-key XiaoZhi interpretation handoff. | **OK**: Throw coins / Request XiaoZhi reading<br>**UP/DOWN**: Scroll judgements & line text<br>**Long DOWN**: Recast / start over |
| **Holy Cup** | `holy-cup` | Traditional decision-making oracle (Jiaobei). Cast two crescent wooden blocks for Shengbei (positive / proceed), Xiaobei (laughing / re-ask), or Yinbei (negative / defer). Rendered with vector shading and counter. | **OK**: Cast again<br>**Long OK**: Return to app list |
> **Global Navigation Chooser**: Holding **OK** on any sub-page or mini-app opens a 3-way navigation chooser: **Previous Page / Home / Continue**, avoiding accidental exits or lost progress.
---
### 2. XiaoZhi Voice AI Assistant
Access XiaoZhi voice conversation directly by **holding UP on Badge Home** or via **Terminal → System → XiaoZhi AI**:
- **Streaming Semi-Duplex Conversation**: Automatic endpoint detection (VAD); replies play back immediately via Opus stream with interrupt support on OK.
- **252 Vector Emotion Poses (Face Clock)**:
- 4 selectable styles: **Cute Character**, **Male Portrait (bald with soft reflection)**, **Female Portrait (bob hair & clips)**, **King of the Road**.
- 21 emotion states per style, each with 3 dedicated pose variations (63 poses/style, 252 total).
- Mouth shapes react to real-time PCM audio playback levels. Assets use row-indexed lossless RLE decoding for minimal RAM consumption.
- In chat: **Long UP** cycles avatar style; **Long DOWN** jumps to XiaoZhi settings.
- **19 MCP Device Control Tools**:
XiaoZhi understands natural language and invokes on-device functions directly:
1. `self.get_device_status`: Query battery, Wi-Fi, brightness, and configured badge profiles.
2. `self.apps.open`: Launch an app (`zen-muyu`, `leo-radio`, `voice-keychain`, `cyber-yao`).
3. `self.audio.search` / `self.audio.play` / `self.audio.play_random`: Search or play specific/random audio clips.
4. `self.badge.show_qr`: Display active personal QR code immediately.
5. `self.badge.switch`: Switch active badge profile by slot number (1–5) or name.
6. `self.display.set_brightness`: Adjust screen backlight brightness (20%–100%).
7. `self.xiaozhi.set_volume`: Adjust XiaoZhi speech reply volume independently (0–100%).
8. `self.radio.search` / `self.radio.play`: Search and stream online radio stations.
9. `self.reminder.set` / `get` / `cancel`: Manage up to 8 persistent alarms/reminders (countdown, clock time, dates, weekday repetitions).
10. `self.yao.cast` / `self.yao.get`: Voice casting and structured I Ching interpretation query.
11. `self.badge.get_profile` / `update_profile`: Read or edit badge text fields (name, department, title) via voice.
12. `self.system.action`: Return home (`home`) or enter deep sleep (`shutdown`).
---
### 3. Five Local Badge Profiles & Web Tooling
Store **5 independent identity profiles** directly in flash, each keeping its own name, title, department, ID, avatar photo, brand logo, and 5-color theme.
- **Quick Switching**: Hold **OK** on Badge Home to open the profile switcher; selected profile persists across power cycles.
- **Web Serial Configuration (`configure/index.html`)**:
- **Direct USB Web Serial**: Open the offline configuration page in Chrome or Edge, connect USB, and configure without installing drivers, software, or uploading data to any cloud.
- **Phone Hotspot Setup**: When away from a PC, open **System → Network** and press OK to turn on the configuration hotspot. Connect with a smartphone and browse `http://192.168.4.1` for the full setup UI.
- **Smart Cropping**: Upload photos and QR codes up to 10 MB; images are cropped to 72 × 88 avatars and sharp monochrome QR bitmaps automatically.
---
## Button Navigation Summary
| Screen | Gesture | Action |
| --- | --- | --- |
| **Badge Home** | Short UP | Open Mini-Apps list |
| | Long UP | Launch XiaoZhi AI Conversation |
| | Short DOWN | Show Personal QR code instantly |
| | Short OK | Open Terminal menu |
| | Long OK | Open Badge Profile switcher (1–5) |
| **Terminal Menu** | UP / DOWN | Select item (Mini-Apps, Profile, QR, Settings, Home) |
| | Short OK | Enter selected page |
| | Long OK | Open Return Chooser (Previous / Home / Continue) |
| **Personal QR** | DOWN / OK | Dismiss QR and return |
| **XiaoZhi AI** | Short OK | Start / Pause / Interrupt conversation |
| | UP / DOWN | Adjust XiaoZhi volume (±10%) |
| | Long UP | Cycle & save avatar face style |
| | Long DOWN | Open XiaoZhi AI settings |
| **Sub-pages** | Long OK | Open Return Chooser (Previous / Home / Continue) |
---
## Flash Partition Layout
Configured for ESP32-C3 (8 MB Flash, no PSRAM):
- `factory` (Application binary): `3.75 MiB` (0x3C0000 bytes at 0x10000)
- `voice_data` (Voice pack head): `2.75 MiB` (at 0x3D0000)
- `voice_tail` (Voice pack tail): `512 KiB` (at 0x750000)
- `badge_slots` (Profiles 2–5): `768 KiB` (at 0x690000)
- `badge_user` (Profile 1): `192 KiB` (at 0x7D0000)
- `nvs` / `otadata` / `phy_init`: standard system partitions.
Each profile uses dual A/B 96 KB banks with CRC validation, keeping data safe across firmware updates and unexpected power loss.
---
## Build & Installation
### Prerequisites
- **ESP-IDF**: v5.5.3 (environment activated)
- **Tools**: Python 3, Git, CMake, Ninja
### Verification & Build
```bash
# 1. Run repository consistency checks
python tools/check_repo.py
# 2. Build firmware
idf.py -B build -D SDKCONFIG=build/sdkconfig build
# 3. Create merged binary and verify
idf.py -B build merge-bin -o FoloToy-AI-Passport-full.bin
python tools/verify_firmware.py build
```
### Flashing
```bash
# Segmented flashing (recommended; preserves saved badge profiles & NVS):
idf.py -p COM6 flash monitor
# Or use the flash management tool with automatic backup:
python tools/flash_badge.py --port COM6 --backup-dir ./my_backup
```
---
## Licenses & Acknowledgments
- Firmware implementation licensed under the [MIT License](LICENSE).
- Based on the upstream [FoloToy AI Passport](https://github.com/FoloToy/AI-Passport) hardware development baseline.
- City Radio mini-app is based on [leo-radio](https://github.com/leo0183/leo-radio) (MIT License).
- Voice Keychain mini-app originates from [Shinku-Chen/ai-passport (feature/voice-keychain)](https://github.com/Shinku-Chen/ai-passport/tree/feature/voice-keychain) (MIT License).
- XiaoZhi AI voice conversation protocol and integration derived from [FoloToy/folo-ai-passport-xiaozhi](https://github.com/FoloToy/folo-ai-passport-xiaozhi) (MIT License).
- I Ching text and core divination rules derived from [CyberYAO](https://github.com/XadillaX/CyberYAO) (MIT License).
- Visual references: Arasaka and Cyberpunk 2077 references belong to CD PROJEKT RED and their respective owners. Used here solely for non-commercial open-source maker education.
-167
View File
@@ -1,167 +0,0 @@
<p align="right"><strong>简体中文</strong> · <a href="README.md">English</a></p>
# 荒坂员工牌 (Arasaka Personnel Badge) · AI Passport
> 硬件平台:FoloToy AI Passport (ESP32-C3 · 8 MB Flash · 240 × 320 ST7789 显示屏 · 三物理按键 · ES8311 音频 · CW2017 电量计)
> 固件版本:**v2.6.53**
基于赛博朋克荒坂企业风格打造的智能全功能工牌系统。集成 **5 款内置主题化小程序**、**全套小智 AI 语音交互与 19 项设备控制工具**、**多套矢量情绪表情**、**5 套独立本地身份卡槽** 及 **离线 Web 端侧配置套件**。
页面与选项切换采用 160ms 扫描线视觉反馈,告别多余延迟与虚假动效。全部界面文字、矢量图案与排版深度针对 240 × 320 竖屏优化。
---
## 核心功能全览
```text
┌─────────────────────────────────────────────────────────────┐
│ 工牌首页 (Badge Home) │
│ · 荒坂/自定义企业品牌 · 几何动态徽记 · 头像与工号/权限 │
│ · 实时时间与电池百分比 · 网络连接状态 · 1/5 槽位标识 │
└──────────────┬───────────────────┬───────────────────┬──────┘
│ (按键直达) │ (长按上键) │ (短按 OK)
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ 小程序应用库 │ │ 小智 AI │ │ 员工终端 │
│ (Mini Apps) │ │ (XiaoZhi AI) │ │ (Terminal) │
└───────┬───────┘ └───────────────┘ └───────┬───────┘
│ │
┌─────────┴─────────┐ ┌─────────┴─────────┐
│ 1. 敲木鱼 │ │ · 小程序应用库 │
│ 2. 音效钥匙扣 │ │ · 工牌资料/热点配网│
│ 3. 城市电台 │ │ · 我的二维码 │
│ 4. 赛博摇卦 │ │ · 系统设置 (含小智)│
│ 5. 圣杯决策 │ │ · 返回工牌首页 │
└───────────────────┘ └───────────────────┘
```
### 1. 五款主题化内置小程序 (Mini Apps)
所有内置小程序均由系统统一管理生命周期,实时自适应当前工牌的 5 色主题配色方案(背景色、面板色、强调色、主文字色、辅文字色):
| 小程序 | 标识 (ID) | 功能与特色 | 核心按键操作 |
| --- | --- | --- | --- |
| **敲木鱼** | `zen-muyu` | 矢量敲击动画与解压音效,支持手动敲击与自动连敲;4 档节奏循环;数据持久化保存到 NVS,断电重启不丢失累计功德。 | **OK**:敲击<br>**上键**:切换自动/手动<br>**下键**:切换节奏 (30/60/80/120 次/分)<br>**长按上**:暂停并保存<br>**长按下**:切换音量 (0/20/40/60/80%) |
| **音效钥匙扣** | `voice-keychain` | 精选 24 个音频分类、695 段经典音效,独立轻量解码器,打断即播不积压;长歌名平滑滚动显示。 | **上下键**:选分类/选音效<br>**OK**:进入/播放<br>**长按上**:音量设置<br>**长按下**:停止播放 |
| **城市电台** | `leo-radio` | 集成 LEO Radio 在线收音机,连上 Wi-Fi 即可流式播放国内外精选城市广播频道;支持断点记忆频道。 | **上下键**:快速切台<br>**OK**:播放 / 暂停<br>**长按上**:网络与电台设置 |
| **赛博摇卦** | `cyber-yao` | 基于 CyberYAO 六爻周易起卦模型;投掷 3 枚铜钱自下而上成卦;支持本卦/之卦/动爻/卦爻辞滚屏阅读;支持基于 IP 经度的**真太阳时天文校准**;可一键唤醒小智白话解读。 | **OK**:投掷铜钱成爻 / 结果页呼出小智解读<br>**上下键**:滚屏浏览卦爻辞原文<br>**长按下**:清空重新起卦 |
| **圣杯决策** | `holy-cup` | 传统民间投掷杯筊决策游戏。默念问题后投掷两个杯筊,以一正一反为「圣杯(可行)」、双正为「笑杯(再问)」、双反为「阴杯(暂缓)」;矢量立体杯筊渲染,带投掷次数统计。 | **OK**:再掷一次<br>**长按 OK**:退出返回小程序列表 |
> **全局二级菜单通用退出规则**:在任意小程序或系统子页面中,**长按 OK 键**均会呼出统一步骤菜单:**返回上一级 / 回到首页 / 继续当前页面**,杜绝误触丢进度。
---
### 2. 小智 AI 语音大模型交互 (XiaoZhi AI)
通过独立页面(**员工终端 → 系统设置 → 小智 AI**)或**工牌首页长按上键**即可快速开启全功能小智语音对话:
- **半双工流式自然对话**:说完自动侦测发送,收到回复即时流式播放,按 OK 即可随时打断抢话。
- **252 款多风格矢量表情 (Face Clock)**:
- 支持 4 套可切换风格:**圆萌精灵**、**男生头像 (带高光光头)**、**女生头像 (波波头与发饰)**、**公路之王 (King of the Road)**。
- 每套风格包含 21 种情绪变体,每种情绪拥有 3 款细分造型(共 63 姿态/套,总计 252 种精细表情)。
- 嘴形由实时 PCM 输出振幅驱动,表情数据采用行索引无损 RLE 压缩解码,内存极低。
- 对话中**长按上键**可轮换保存表情风格,**长按下键**直达小智设置。
- **19 项内置 MCP 设备控制与联动工具**:
小智云端支持识别并直接调用本工牌的硬件接口,实现全语音控制:
1. `self.get_device_status`:查询电量、Wi-Fi、屏幕亮度、当前与所有已配置工牌编号和姓名。
2. `self.apps.open`:语音启动指定小程序(木鱼、电台、钥匙扣、摇卦)。
3. `self.audio.search` / `self.audio.play` / `self.audio.play_random`:搜索音效、播报指定 ID 或随机播一段音效。
4. `self.badge.show_qr`:语音立即展示当前工牌二维码并退出对话。
5. `self.badge.switch`:根据编号 (1~5) 或姓名切换当前激活工牌。
6. `self.display.set_brightness`:语音调节屏幕背光亮度 (20% ~ 100%)。
7. `self.xiaozhi.set_volume`:单独调整小智语音回复音量 (0 ~ 100%)。
8. `self.radio.search` / `self.radio.play`:搜索精选网络电台并即刻启播。
9. `self.reminder.set` / `get` / `cancel`:管理多达 8 条持久闹钟提醒,支持秒级倒计时、北京时间钟点、日历日期、工作日/周末重复周期。
10. `self.yao.cast` / `self.yao.get`:语音直接起卦并调用易经本卦/之卦全文字段给出通俗生活建议。
11. `self.badge.get_profile` / `update_profile`:语音直接修改当前工牌的姓名、部门、职位等文本信息。
12. `self.system.action`:执行回到首页 (`home`) 或安全深度睡眠关机 (`shutdown`)。
---
### 3. 多工牌系统与无网配置工具 (5 Badge Profiles)
工牌支持保存 **5 张完全独立的身份卡片**,每张均独立保存自定义姓名、职位、部门、员工编号、头像照片、品牌 Logo 及专属配色方案。
- **快速切换**:在工牌首页**长按 OK 键**即可呼出工牌卡片选择器,上下键选择并瞬间切换,重启自动保持最后激活的工牌。
- **配置工具 (`configure/index.html`)**:
- **USB Web Serial 直连**:使用 Chrome/Edge 浏览器打开离线网页,插入 USB 数据线即可连接。免驱动、免装软件、数据不出本地,完全不上云。
- **手机热点免线配置**:若无电脑,在工牌进入 **系统设置 → 网络设置** 按 OK 开启临时热点,手机连接工牌 Wi-Fi 后访问 `http://192.168.4.1`,即可通过手机浏览器完成全部相同配置。
- **图片与排版自适应**:支持上传最大 10 MB 的个人照片与微信二维码图片,页面自动裁切为 72 × 88 头像及高精细度单色二维码,自动分行排版。
---
## 硬件按键操作速查
| 界面场景 | 按键手势 | 功能与动作说明 |
| --- | --- | --- |
| **工牌首页** | 上键短按 | 直达「小程序列表」 |
| | 上键长按 | 快速启动「小智 AI 语音对话」 |
| | 下键短按 | 一键全屏亮出当前工牌的「个人名片二维码」 |
| | OK 键短按 | 打开「员工终端 (Terminal)」菜单 |
| | OK 键长按 | 打开「5 套工牌档案切换列表」 |
| **员工终端** | 上 / 下键 | 选择菜单项(小程序、工牌资料、我的二维码、系统设置、返回工牌) |
| | OK 键短按 | 进入选中的功能页 |
| | OK 键长按 | 呼出通用返回菜单(上一页 / 首页 / 继续) |
| **我的二维码** | 下键 / OK 键 | 快速关闭二维码返回上一界面 |
| **小智对话** | OK 键短按 | 开启连接 / 暂停聆听 / 打断播报 |
| | 上 / 下键 | 步进调节小智语音音量 (±10%) |
| | 上键长按 | 循环切换并保存小智头像表情风格(精灵/男生/女生/公路之王) |
| | 下键长按 | 快速跳转至「小智 AI 设置」菜单 |
| **通用子页面** | OK 键长按 | 呼出统一三选一退出菜单(返回上一级 / 回到首页 / 继续) |
---
## 存储分区与固件架构
系统针对 ESP32-C3 (8 MB Flash,无 PSRAM) 进行了深度优化与安全隔离:
- **Flash 分区表设计**:
- `factory` (应用固件区):`3.75 MiB` (0x3C0000 字节,起始于 0x10000)
- `voice_data` (音效首段):`2.75 MiB` (起始于 0x3D0000)
- `voice_tail` (音效尾段):`512 KiB` (起始于 0x750000)
- `badge_slots` (工牌 2~5 槽位):`768 KiB` (0xC0000 字节,起始于 0x690000)
- `badge_user` (工牌 1 槽位):`192 KiB` (0x30000 字节,起始于 0x7D0000)
- `nvs` / `otadata` / `phy_init` 保留在安全基线地址。
- **资料防丢升级**:每个工牌槽位均采用 A/B 双份 96 KB 备份与校验和验证,即使固件全量升级或写途中断电,原有的个人信息、头像图片及 Wi-Fi 配置均可完整保留。
---
## 编译与安装说明
### 环境准备
- **ESP-IDF**:v5.5.3 (已激活环境)
- **编译依赖**:Python 3、Git、CMake、Ninja
### 静态验证与编译
```bash
# 1. 执行静态规则与资源覆盖校验
python tools/check_repo.py
# 2. 编译固件
idf.py -B build -D SDKCONFIG=build/sdkconfig build
# 3. 生成全量固件镜像并执行一致性校验
idf.py -B build merge-bin -o FoloToy-AI-Passport-full.bin
python tools/verify_firmware.py build
```
### 烧录固件
```bash
# 分段烧录应用(推荐,保留现有工牌资料与 NVS 存储):
idf.py -p COM6 flash monitor
# 如需使用全量保护工具(自动备份现有 Flash 并校验音效资源):
python tools/flash_badge.py --port COM6 --backup-dir ./my_backup
```
---
## 许可证与致谢
- 本项目软件核心采用 [MIT 许可证](LICENSE)。
- 基于上游 [FoloToy AI Passport](https://github.com/FoloToy/AI-Passport) 硬件基线开发。
- 城市电台小程序基于开源项目 [leo-radio](https://github.com/leo0183/leo-radio) (MIT License)。
- 音效钥匙扣小程序来源于 [Shinku-Chen/ai-passport (feature/voice-keychain)](https://github.com/Shinku-Chen/ai-passport/tree/feature/voice-keychain) (MIT License)。
- 小智 AI 对话协议与接口适配基于 [FoloToy/folo-ai-passport-xiaozhi](https://github.com/FoloToy/folo-ai-passport-xiaozhi) (MIT License)。
- 赛博摇卦周易古籍数据来源于开源项目 [CyberYAO](https://github.com/XadillaX/CyberYAO) (MIT License)。
- 视觉参考:Arasaka 与 Cyberpunk 2077 相关徽标与概念属于 CD PROJEKT RED 及其各自所有者,本项目仅作开源极客软硬件学习与个人把玩。
-65
View File
@@ -1,65 +0,0 @@
<p align="right">
<a href="README.zh_CN.md">简体中文</a> · <strong>English</strong>
</p>
# Assets
See [Zen Muyu asset provenance](muyu-assets.md) for the application background, fonts, sound synthesis, licenses and regeneration steps.
This directory stores reusable fonts, images, music, and sound effects, organized by asset type.
Keep each asset in the matching subdirectory and document its destination, naming, integration method, and source/license. Do not mix binary assets with Markdown documentation.
## Fonts
Store reusable font files and generated font sources in `fonts/`.
- Use descriptive names that include the family, weight, size, and format when relevant.
- Document the source, license, character range, conversion command, and expected destination.
- Check Flash and internal-RAM impact before adding a font; the ESP32-C3 has no PSRAM.
- Do not commit fonts whose license does not permit redistribution.
## Images
Store reusable source images and generated display assets in `images/`.
- Use descriptive names and document dimensions, pixel format, conversion steps, and destination.
- Prefer formats suitable for the 240 × 320 RGB565 display and account for Flash and internal RAM.
- Preserve editable sources where licensing permits, and record the source and license.
- Never commit device QR secrets, credentials, or personal data in images.
## Music and sound effects
Store reusable music and sound-effect sources in `music/`.
- Document the source, license, sample rate, bit depth, channels, conversion command, and destination.
- Prefer 16 kHz, 16-bit mono PCM when it matches the current BSP audio path.
- Check Flash and internal-RAM cost before embedding audio; stream or chunk long recordings.
- Do not commit media without redistribution permission.
## Voice Keychain assets
`audio/voice-keychain/` contains 726 raw Opus clips in 24 packs from Shinku-Chen/ai-passport, feature/voice-keychain, commit `71c45cabc1b2f3b73b4929d71cafd926ccbb11f5`. Audio is copied without re-encoding: 16 kHz mono, little-endian 2-byte packet lengths. `SOURCE.txt` records provenance. Upstream code is MIT; media rights are separate and are not relicensed as MIT. `tools/build_voice_pack.py` generates partition images and the catalog. Noto Sans SC 14px supplies 1071 glyphs via `tools/generate_voice_font.py`; see `fonts/OFL.txt`.
1.9.1 retains one clip per user-approved group (46 groups). `audio/voice-keychain/selection.json` records retained and removed items; retained files are not re-encoded.
- [City Radio integration, MIT source and themed previews](../docs/leo-radio.md): provenance in `assets/radio/`; production LVGL renders in `assets/images/leo-radio/`.
XiaoZhi source license and notice: `xiaozhi/LICENSE`, `xiaozhi/NOTICE`. The caption font uses the existing Noto Sans SC OFL font; generated by `tools/generate_xiaozhi_font.py`. See [integration details](../docs/xiaozhi.md).
[Portrait homepage fonts and offline embedding](../docs/portrait-home.md): Orbitron and Caveat, SIL OFL; source TTF, Latin WOFF2 subsets and license texts in `fonts/`.
Shared 14px UI font: `fonts/ui14-characters.txt` retains legacy coverage; `tools/generate_shared_fonts.py` generates `main/font_ui_14.c` for three UI fonts. It retains Noto Sans SC (SIL OFL) and the original glyph pixels/metrics. Caption additions are checked against the source font cmap to avoid embedding missing-glyph placeholders.
XiaoZhi face: original artwork created for this project, under the repository MIT license, in `images/xiaozhi-face/*.svg`. `tools/generate_face_assets.py` converts the limited SVG vocabulary offline to themed A8 masks in `main/xiaozhi_face_assets.c`. See [expressions and clock](../docs/face-clock.md).
King of the Road SVGs (images/xiaozhi-face/round_*.svg) are redrawn from a character reference supplied by the user. The reference photo itself is not included in the repository or release archive.
Cyber Yao classical text and calculation rules derive from CyberYAO commit
`3c4780feea04737e6e59b6e1849e591710e6656c`. Its MIT notice is in
[cyberyao/LICENSE](cyberyao/LICENSE); the adapted text table is in
`main/yao_text_data.c`. No upstream media or font assets are redistributed.
The Cyber Yao `interpret-request.ogg` is project-generated synthetic Mandarin speech, not an upstream recording. It asks XiaoZhi to query and interpret the retained hexagram. `main/assets/yao_request.h` contains its 60 ms Opus packets for direct uplink; it contains no personal recordings.
Company names use `fonts/NotoSansSC-brand-latin.woff2` (Noto Sans SC, SIL OFL 1.1, `fonts/OFL.txt`), an ASCII/ellipsis subset at weight 700. Generate with `tools/generate_brand_font.py <NotoSansSC.ttf>`. The offline editor embeds it as BadgeBrand; headings and signatures retain their existing fonts.
Loaded 3 of 1369 files, more files were not shown because too many files have changed in this diff. Show more