主题
sfx_ingest
POST /sfx/ingest
接口说明
音效入库(管理口,带 Key)。两种用法:服务器上已有音频走 ingest_file 登记;synth=true 直接离线合成首批兜底音效(精选源到位后再覆盖,sfx_id 不变)。
参数
| 参数 | 必填 | 默认值 | 说明 |
|---|---|---|---|
synth | 否 | — | true = 离线合成兜底音效,忽略其余字段 |
categories | 否 | — | synth 时按分类合成,逗号分隔 |
sfx_id | 是 | — | 非 synth 时必填 |
src_path | 是 | — | 非 synth 时必填,服务器本地路径 |
category | 是 | — | 非 synth 时必填 |
license | 是 | — | 非 synth 时必填 |
name | 否 | "" | 音效名 |
tags | 否 | [] | 标签数组 |
source | 否 | "" | 来源 |
notes | 否 | "" | 备注 |
返回
登记条目;synth 时返回 {registered, items[], note}