预设是一种可复用的渲染配置——背景、字幕样式、布局——你可以将其应用到任何项目或导出中。当你需要在多条曲目之间保持一致的视觉风格时,使用预设非常合适。 查看 渲染设置参考 以了解完整的Documentation Index
Fetch the complete documentation index at: https://docs.youka.io/llms.txt
Use this file to discover all available pages before exploring further.
preset 结构以及所有由枚举支持的选项。
client.presets.list(options?)
列出已认证账号拥有的所有预设。
client.presets.get(presetId, options?)
获取单个预设。
client.presets.create(body, options?)
创建一个新的预设。
在 Youka UI 中显示的名称。
完整的预设内容。可使用
渲染设置 参考 查看便于阅读的字段映射,或使用 KaraokePresetSchema.toJSONSchema() 获取机器可读的 schema。将新预设标记为账号默认值。同一时间只能有一个预设作为默认值。
client.presets.update(presetId, body, options?)
对现有预设进行补丁更新。可传入 name、preset、isDefault 的任意子集。
client.presets.delete(presetId, options?)
删除一个预设。
client.presets.setDefault(presetId, options?)
将某个预设标记为新项目的默认预设。这是对 client.presets.update(presetId, { isDefault: true }) 的便捷封装。
发现有效字段
SDK 导出了用于校验预设内容的 Zod schema。你可以在运行时将其转换为 JSON Schema,供智能体与表单构建器使用:应用预设
可在三个节点应用预设:- 在创建项目时
- 在项目设置中
- 在导出时
