@vibedev-si/dsh-vibedev 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -1
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/client/client.account-center.js +1029 -9
- package/client/client.js +141 -2
- package/lib/account/center-contract.d.ts +2 -0
- package/lib/account/voice-profile-routes.d.ts +33 -0
- package/lib/audio/request.d.ts +53 -3
- package/lib/audio/voice-profiles.d.ts +184 -0
- package/lib/contracts.d.ts +2 -2
- package/lib/gateway/catalog.d.ts +5 -0
- package/lib/gateway/paid-path.d.ts +11 -0
- package/lib/index.js +1271 -237
- package/lib/tools/voice-profiles.d.ts +30 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,23 @@
|
|
|
10
10
|
|
|
11
11
|
本插件由 `dsh-media` 改名而来,见下面的「从 dsh-media 升级」。
|
|
12
12
|
|
|
13
|
+
## 0.11.3 用户可见更新
|
|
14
|
+
|
|
15
|
+
**音色管理与 Suno 翻唱**:可以用自己的人声建「音色」,再用它做音色翻唱;也可以上传一首歌做翻唱。
|
|
16
|
+
|
|
17
|
+
- **账户中心「我的音色」**:新页面,和「我的订单」「兑换」并列。列表显示名称、状态(创建中 / 可用 / 失败及原因)、时长、创建时间和删除;新建时选本地音频 → 本地检查格式、大小和时长 → 上传 → 填名称 → 创建,之后页面自动刷新到「可用」(2 秒、3 秒、5 秒,之后每 8 秒读一次,最多 5 分钟,并显示已等待的秒数)。删除前会二次确认:删除后音色永久关闭、不可恢复,已生成的歌曲不受影响。
|
|
18
|
+
- **音色要求**:6–60 秒(建议 10–60 秒)、不超过 10 MB,mp3 / wav / m4a / aac / flac / ogg,尽量是不带伴奏的干净人声。插件先在本地检查(WAV、FLAC 直接读文件头测时长,页面里还会用浏览器测时长),上传到 VibeDev 素材库(用途 `audio_reference`)后再用网关测出的时长复核;测不出时长会明确提示,不会提交。**创建音色免费**,不生成歌曲,不扣费。
|
|
19
|
+
- **被拒原因说人话**:服务商拒绝样本时,按对照表翻成中英文提示:和曲库已有录音太像(Suno 的 `matches an existing recording`)→「这段样本和已有录音太像,请换一段干净、独特的人声」;另有太短、太长、格式不对、不是干净人声。对不上的原因照原文(英文)显示,但抹掉链接和令牌。
|
|
20
|
+
- **只用 `vp_…`**:音色 id 一律是网关的 `vp_…`;底层服务商的原始 voice_id 既不显示也不接受,失败原因里像 id 的长串、链接和令牌会被抹掉。
|
|
21
|
+
- **三个新工具**:`voice_profile_create`(`source`、`title`:上传并创建,等到可用或失败)、`voice_profile_list`、`voice_profile_delete`(`id`:只收 `vp_…`,不可恢复,宿主能询问时会先请用户确认)。
|
|
22
|
+
- **`audio_generate` 新参数**(只发给在目录 `request_fields` 里声明了对应字段的模型):`voice_id`(`vp_…`,音色翻唱)、`source_audio`(要翻唱的歌:工作区文件、`chat:1` 音频 / `chat:video:1` 视频附件或 https 链接;音频 mp3/wav/m4a/aac/flac/ogg 或视频 mp4/mov/webm,本地上限 10 MiB(建议控制在 10 MB 以内,超大的请先剪辑或压缩);先上传到素材库,拿到公网 HTTPS 直链后写入 `source_audio_url`)、`audio_weight`(参考音频依赖度,0–1 含端点,只对上传翻唱 / 音色翻唱有效)、`style`、`title`、`instrumental`。
|
|
23
|
+
- **`mode` 自动推导、不对外暴露**:给了 `voice_id` → `voice_cover`;只给 `source_audio` → `cover`;都没有 → `generate`。`voice_id` 和 `source_audio` 同时给时,意思是「用指定音色翻唱你给的这段音频」,按 `voice_cover` 两个字段都发。
|
|
24
|
+
- **选哪个模型**(没点名模型时,只按目录声明,不按模型名猜):`voice_cover` 用第一个声明了 `audio.supports_voice_cover: true` 的音乐模型(目前是 `suno-v6-voice-vibedev`;`suno-v6-vibedev` 声明为 `false`);一个都没有时直接报错「当前没有支持音色翻唱的模型」,不会退到普通音乐模型(那样 `voice_id` 会被忽略,还照样扣费)。点名了不支持音色翻唱的模型又带 `voice_id` 也会被拒绝。`cover` 和 `generate` 照旧按 `musicModel`,不会自动选到支持音色翻唱的模型(除非 `musicModel` 自己指定了它)。
|
|
25
|
+
- **`mode` 一定显式传**:有 `voice_id` 时请求体里一定是 `mode: "voice_cover"`,绝不会是 `cover`(网关见到 `cover` 会忽略 `voice_id`,当成普通上传翻唱)。
|
|
26
|
+
- **校验**:模型声明了 `mode` 时显式写进请求体。`audio_weight` 在 `generate` 下会直接报参数错误,不会被悄悄忽略;上传失败或拿不到公网 HTTPS 直链时明确报错,不会退化成普通生成。
|
|
27
|
+
- **已知限制**:网关对 `source_audio_url` 的兜底下载上限是 30 MiB,且只有 VibeDev 媒体 URL 支持 multipart 兜底;外部链接必须公开可下载。插件总是先把 `source_audio` 上传到 VibeDev 素材库,再提交素材库给出的链接。
|
|
28
|
+
- **计费**:音色接口(`/v1/audio/voice-profiles`)不算付费请求,调用后不会触发余额刷新;生成歌曲照常按模型价格计费,以网关回执为准。
|
|
29
|
+
|
|
13
30
|
## 0.11.2 用户可见更新
|
|
14
31
|
|
|
15
32
|
**音频、视频直接发给模型**:在对话里附上音频或视频文件,声明支持音频/视频的 VibeDev 模型现在能直接「看到」「听到」文件内容,不用再先转写或抽帧。
|
|
@@ -310,6 +327,9 @@ VibeDev 开着时发布的 `popup` 公告,现在会在下一次读取消息时
|
|
|
310
327
|
| `media_models` | 列出账号可用的媒体模型和价格;视频模型还会列出每种模式接受哪些输入。 |
|
|
311
328
|
| `media_tasks` | 查看进行中和已完成的视频、音频任务。 |
|
|
312
329
|
| `media_account` | 查看用的是哪个 VibeDev 账号;登录或退出(和侧边栏、设置里的登录是同一个)。 |
|
|
330
|
+
| `voice_profile_create` | 用一段 6–60 秒的人声建音色(免费,不生成歌曲),返回 `vp_…` id,等到可用或失败。 |
|
|
331
|
+
| `voice_profile_list` | 列出账号的音色:`vp_…` id、名称、状态(可用 / 创建中 / 失败及原因)、时长和创建时间。 |
|
|
332
|
+
| `voice_profile_delete` | 按 `vp_…` id 永久删除一个音色,不可恢复;已生成的歌曲不受影响。 |
|
|
313
333
|
|
|
314
334
|
### 生成的图片与上下文
|
|
315
335
|
|
|
@@ -333,7 +353,7 @@ VibeDev 开着时发布的 `popup` 公告,现在会在下一次读取消息时
|
|
|
333
353
|
|
|
334
354
|
音频模型是音乐、播客、语音还是转写,只看网关模型目录里 `audio.generation_kind` 的声明,不按模型名称猜;没有声明类型的模型会列出来,但不能用来生成。每个模型只提交它在 `request_fields` 里声明的字段,正文写进 `prompt_field` 指定的字段:
|
|
335
355
|
|
|
336
|
-
- 音乐:`prompt`、`lyrics`、`genre`、`mood`、`gender
|
|
356
|
+
- 音乐:`prompt`、`lyrics`、`genre`、`mood`、`gender`;声明了的模型(如 `suno-v6-vibedev`、`suno-v6-voice-vibedev`)还接受 `style`、`title`、`instrumental`、`voice_id`(`vp_…` 音色)、`source_audio_url`(由 `source_audio` 上传得到)、`audio_weight`(0–1,仅翻唱)和自动推导的 `mode`(`generate` / `cover` / `voice_cover`);
|
|
337
357
|
- 播客:`prompt`、`source_url`;
|
|
338
358
|
- 语音:按模型声明,例如 Seed 是 `text_prompt`、`references`(参考音频)、`audio_config`(输出格式和采样率)、`watermark`。
|
|
339
359
|
|
|
@@ -467,6 +487,23 @@ npm run build
|
|
|
467
487
|
|
|
468
488
|
## English
|
|
469
489
|
|
|
490
|
+
### What changes in 0.11.3
|
|
491
|
+
|
|
492
|
+
**Voice profiles and Suno covers**: make a voice profile from your own singing voice and use it for voice covers, or cover an uploaded song.
|
|
493
|
+
|
|
494
|
+
- **「我的音色」 (My voices) in the account center**: a new page next to My orders and Redeem. The list shows the name, status (creating / ready / failed with the reason), length, creation time and Delete. A new voice: choose a recording → checked locally (type, size, length) → uploaded → named → created, then the page reads the list again until it is ready (after 2 s, 3 s, 5 s, then every 8 s for up to 5 minutes, showing the seconds waited). Deleting asks first and says plainly that the voice is closed for good and cannot be restored, and that songs already made are not affected.
|
|
495
|
+
- **Voice samples**: 6–60 s (10–60 s recommended), at most 10 MB, mp3 / wav / m4a / aac / flac / ogg, ideally clean solo vocals. Checked locally first (WAV and FLAC lengths come from the header; the page also measures in the browser), uploaded to the VibeDev media library (purpose `audio_reference`), and the length the gateway measures is checked again; a length that cannot be measured is reported and nothing is submitted. **Creating a voice is free** and makes no song.
|
|
496
|
+
- **Refusals in plain words**: a provider's refusal of a sample is mapped to plain zh/en words: too similar to an existing recording (Suno's `matches an existing recording`) → "This sample is too similar to an existing recording. Use a different clean, original vocal."; also too short, too long, unsupported format and not a clean vocal. A reason none of these matches is shown as it came (in English), with links and tokens scrubbed.
|
|
497
|
+
- **`vp_…` only**: voice ids are always the gateway's `vp_…`; a provider's own voice id is never shown or accepted, and id-like strings, links and tokens are scrubbed from failure reasons.
|
|
498
|
+
- **Three new tools**: `voice_profile_create` (`source`, `title`: upload and create, waiting until ready or failed), `voice_profile_list`, `voice_profile_delete` (`id`, `vp_…` only, permanent; asks the user first when the host can).
|
|
499
|
+
- **New `audio_generate` parameters**, sent only to models whose `request_fields` declare them: `voice_id` (`vp_…`, voice cover), `source_audio` (the song to cover: a workspace file, `chat:1` audio / `chat:video:1` video attachment or an https link; audio mp3/wav/m4a/aac/flac/ogg or video mp4/mov/webm, held to 10 MiB locally (keep it under 10 MB; trim or compress a larger file first); uploaded to the media library and its public HTTPS link sent as `source_audio_url`), `audio_weight` (how closely the result follows the reference audio, 0–1 inclusive, covers only), `style`, `title`, `instrumental`.
|
|
500
|
+
- **`mode` is derived, never a parameter**: `voice_id` given → `voice_cover`; only `source_audio` → `cover`; neither → `generate`. `voice_id` together with `source_audio` means covering that audio in the chosen voice: `voice_cover`, with both fields sent.
|
|
501
|
+
- **Which model** (when none is named; by catalog declaration only, never by a model's name): a voice cover uses the first music model declaring `audio.supports_voice_cover: true` (today `suno-v6-voice-vibedev`; `suno-v6-vibedev` declares `false`). When none does, it is an error ("no model supports voice covers"), never a fallback to a plain music model, which would ignore `voice_id` and still charge. Naming a model without voice-cover support together with `voice_id` is refused too. Covers and plain songs follow `musicModel` as before and are not given a voice-cover model automatically (unless `musicModel` names it).
|
|
502
|
+
- **`mode` is always explicit**: with `voice_id` the body always says `mode: "voice_cover"`, never `cover` (the gateway ignores `voice_id` under `cover` and treats it as a plain cover).
|
|
503
|
+
- **Checks**: the mode is sent as `mode` when the model declares the field. `audio_weight` without a cover is a parameter error, never silently dropped; a failed upload or a missing public HTTPS link is an explicit error, never a quiet fallback to a plain generation.
|
|
504
|
+
- **Known limits**: the gateway's fallback download of `source_audio_url` is capped at 30 MiB, and only VibeDev media URLs get the multipart fallback; an external link must be publicly downloadable. The plugin always uploads `source_audio` to the VibeDev media library first and submits the library's link.
|
|
505
|
+
- **Billing**: the voice-profile endpoints (`/v1/audio/voice-profiles`) are not paid requests and trigger no balance refresh; songs are billed at the model's price as before, per the gateway receipt.
|
|
506
|
+
|
|
470
507
|
### What changes in 0.11.2
|
|
471
508
|
|
|
472
509
|
**Audio and video reach the model directly**: attach an audio or video file in the chat, and VibeDev models that declare audio/video input now take the file's content itself, with no transcription or frame extraction first.
|
package/THIRD-PARTY-NOTICES.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.11.
|
|
1
|
+
THIRD-PARTY NOTICES · @vibedev-si/dsh-vibedev 0.11.3
|
|
2
2
|
|
|
3
3
|
This package bundles code from the projects below. Each is used under the licence that
|
|
4
4
|
follows its name; the licence texts are reproduced as the projects ship them.
|