Skip to content

示例插件目录

仓库 examples/ 提供可复制安装的最小插件,用于验证热加载与契约。

一览

目录类型id(典型)说明
source-plugin-echoSourcesource.echoecho:正文 变成文本 artifact,可配 token/前缀
asr-plugin-echoASR见 plugin.json演示用转写桩
tts-plugin-echoTTS见 plugin.json演示用合成桩 / 预置网格
tts-plugin-fishspeechTTStts.fishspeechFish Audio 云端或自托管 Fish Speech
schedule-plugin-echoSchedule见 plugin.json演示候选条目
schedule-plugin-github-trendingSchedule见 plugin.jsonGitHub Trending 候选

具体 id / configSchema 以各目录 plugin.json 为准。

通用安装

BokeBox 仓库根目录

bash
# Source
mkdir -p storage/plugins/source
cp -R examples/source-plugin-echo storage/plugins/source/echo

# TTS(Fish Speech)
mkdir -p storage/plugins/tts
cp -R examples/tts-plugin-fishspeech storage/plugins/tts/fishspeech

# Schedule
mkdir -p storage/plugins/schedule
cp -R examples/schedule-plugin-github-trending storage/plugins/schedule/github-trending

然后:

  1. 打开 设置 → 插件(对应 Source / ASR / TTS / Schedule 分区)
  2. 点击 重新扫描
  3. 启用插件并填写配置(若有)

或 API:

bash
curl -s -X POST http://localhost:8787/api/source-plugins/rescan
curl -s -X PATCH http://localhost:8787/api/source-plugins/source.echo \
  -H 'Content-Type: application/json' \
  -d '{"enabled":true}'

(将路径前缀换成 asr-plugins / tts-plugins / schedule-plugins。)

也支持在设置页 上传 zip 安装(以当前 UI 为准)。

source.echo 快速试

启用后,创建 URL 任务时使用:

text
echo:这是一段演示正文

用于验证插件匹配与流水线,不发起真实外网抓取。

tts.fishspeech 要点

字段说明
baseUrl云端 https://api.fish.audio;自托管如 http://127.0.0.1:8080
apiKey云端必填
model云端模型头,如 s2.1-pro-free
referenceId默认音色 id(强烈建议)
format推荐 wav

完整说明见示例内 README。

开发规范