按到达顺序拼接音频块,分开首块延迟与整段耗时
本页展示随包原生输入和验收参考。目标产品运行状态:未运行。表格与图片不代表产品已经生成的结果。
input.csv / practice-data.json
本课实际输入字段
| chunkIndex | durationSeconds | controlToneHz |
|---|---|---|
| 1 | 0.45 | 220 |
| 2 | 0.35 | 330 |
| 3 | 0.55 | 440 |
| 4 | 0.25 | 550 |
在迭代入口开始计时
reference.csv:作者验收映射,不是目标API回包
| metric | origin | endpoint | concatenation | expectedDurationSeconds | identity | meaning |
|---|---|---|---|---|---|---|
| firstChunkLatency | request start | first nonempty audio arrival | ||||
| totalLatency | request start | final audio arrival | ||||
| [1, 2, 3, 4] | 1.6 | |||||
| control tones | author sequence fixture, not VoxCPM output |
应当保留的约束
| metric | origin | endpoint | concatenation | expectedDurationSeconds | identity | meaning |
|---|---|---|---|---|---|---|
| firstChunkLatency | request start | first nonempty audio arrival | ||||
| totalLatency | request start | final audio arrival | ||||
| [1, 2, 3, 4] | 1.6 | |||||
| control tones | author sequence fixture, not VoxCPM output |
故意构造的错误样例
| order | fault | writeRate | actualRate |
|---|---|---|---|
| [2, 1, 4, 3] | arrival/order mapping lost | ||
| duration and pitch corrupted | 16000 | 48000 |
先保存真实产品输出,再逐项对照。actualOutput / actualResult 在未执行时保持 not_run,不能把这里的期望值复制成已测结果。