v1.3 W4/W5:讲清失败记卡点(read/plan/calc/check) + 语音讲一遍(录音落盘+三项自评,256 测试)
This commit is contained in:
@@ -629,3 +629,22 @@ python tools/backfill_kp.py --apply # 真写
|
||||
- 只有 `stage` 变了、或今天第一次喂,才 `UPDATE`;`GET /api/children` 不会天天写库。
|
||||
- `get_child()` / `list_children()` / `attempt()` 的返回体都带 `pet: {stage, fed_at, fed_today, graduated, left_today}`,
|
||||
前端优先用服务端的 `stage`(演示模式才本地算)。
|
||||
|
||||
### 四点二十八、语音讲一遍:录音 + 三项自评
|
||||
|
||||
`POST /api/mistakes/<mid>/explain` 现在多认一种 `channel: "audio"`:
|
||||
|
||||
```json
|
||||
{"channel": "audio", "audio_b64": "...", "audio_ext": "webm",
|
||||
"checks": {"wrong_reason": 1, "key_steps": 1, "next_time": 0}}
|
||||
```
|
||||
|
||||
- 音频落 `data/uploads/audio/{mid}_{ts}.{ext}`,单条上限 **8MB**,扩展名白名单
|
||||
`webm/mp3/m4a/aac/wav/ogg`(`services.AUDIO_EXTS`)。
|
||||
- **不转写、不判语义**:判「说没讲清」靠三项勾选(`services.EXPLAIN_CHECKS`),
|
||||
勾全了才 `passed`。理由写在 `prototype/workbench/README.md` 十六:
|
||||
机器判语义现在的误差比家长亲耳听大,先解决「不打字也能提交」。
|
||||
- 返回体多两个字段:`audio`(相对 `data/uploads` 的路径,前端可回放)、
|
||||
`checks`(本次勾选,0/1)。
|
||||
- 没过一样会带 `ask_stuck_at` 与 `retreat`,和打字那条路完全一致。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user