@vibedev-si/dsh-vibedev 0.11.2 → 0.11.4
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 +54 -1
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/client/client.account-center.js +1341 -9
- package/client/client.js +175 -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 +207 -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 +1333 -237
- package/lib/tools/voice-profiles.d.ts +30 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,31 @@
|
|
|
10
10
|
|
|
11
11
|
本插件由 `dsh-media` 改名而来,见下面的「从 dsh-media 升级」。
|
|
12
12
|
|
|
13
|
+
## 0.11.4 用户可见更新
|
|
14
|
+
|
|
15
|
+
**较长的音色样本不再被误判失败,「我的音色」页面重新排版。**
|
|
16
|
+
|
|
17
|
+
- **创建最长可能需要 2–3 分钟,超时后会继续确认**:创建音色的请求单独给了 3 分钟超时(其它请求不变)。如果网关仍没有及时回复(超时、504 或网络中断),插件不会直接报失败,而是继续读音色列表最多 3 分钟,找创建前没有的新音色;找到就当作创建成功。3 分钟内仍没出现,提示「网关处理超时。可能已在网关侧创建,请稍后刷新列表确认;若列表没有,再重试。」(错误码 `VOICE_PROFILE_UNCONFIRMED`,可重试、未扣费)。真正的参数错误(4xx)照旧立即报出。
|
|
18
|
+
- **重试不重复创建**:创建请求的 `Idempotency-Key` 改由样本内容和名称算出(同一份样本 + 同一名称始终相同,换名称就不同)。是否真的去重取决于网关;网关不去重时,靠上面的列表确认兜底。
|
|
19
|
+
- **「我的音色」页面**:页面收窄到和「兑换」页一致的宽度;文件选择改成虚线拖拽区(点击或拖入),选中后显示文件名、时长、大小和「重新选择」;「创建音色」是主色按钮,不能点时在下方说明原因;列表改成标准行(图标、名称、状态胶囊、「时长 · 创建时间」、删除);空列表、读取中、读取失败、网关未开放都有完整的占位。创建等待超过 15 秒会切到「网关处理中」并显示已等待秒数;超时转入「可能已创建,正在确认」,不再直接显示红色报错。
|
|
20
|
+
|
|
21
|
+
## 0.11.3 用户可见更新
|
|
22
|
+
|
|
23
|
+
**音色管理与 Suno 翻唱**:可以用自己的人声建「音色」,再用它做音色翻唱;也可以上传一首歌做翻唱。
|
|
24
|
+
|
|
25
|
+
- **账户中心「我的音色」**:新页面,和「我的订单」「兑换」并列。列表显示名称、状态(创建中 / 可用 / 失败及原因)、时长、创建时间和删除;新建时选本地音频 → 本地检查格式、大小和时长 → 上传 → 填名称 → 创建,之后页面自动刷新到「可用」(2 秒、3 秒、5 秒,之后每 8 秒读一次,最多 5 分钟,并显示已等待的秒数)。删除前会二次确认:删除后音色永久关闭、不可恢复,已生成的歌曲不受影响。
|
|
26
|
+
- **音色要求**:6–60 秒(建议 10–60 秒)、不超过 10 MB,mp3 / wav / m4a / aac / flac / ogg,尽量是不带伴奏的干净人声。插件先在本地检查(WAV、FLAC 直接读文件头测时长,页面里还会用浏览器测时长),上传到 VibeDev 素材库(用途 `audio_reference`)后再用网关测出的时长复核;测不出时长会明确提示,不会提交。**创建音色免费**,不生成歌曲,不扣费。
|
|
27
|
+
- **被拒原因说人话**:服务商拒绝样本时,按对照表翻成中英文提示:和曲库已有录音太像(Suno 的 `matches an existing recording`)→「这段样本和已有录音太像,请换一段干净、独特的人声」;另有太短、太长、格式不对、不是干净人声。对不上的原因照原文(英文)显示,但抹掉链接和令牌。
|
|
28
|
+
- **只用 `vp_…`**:音色 id 一律是网关的 `vp_…`;底层服务商的原始 voice_id 既不显示也不接受,失败原因里像 id 的长串、链接和令牌会被抹掉。
|
|
29
|
+
- **三个新工具**:`voice_profile_create`(`source`、`title`:上传并创建,等到可用或失败)、`voice_profile_list`、`voice_profile_delete`(`id`:只收 `vp_…`,不可恢复,宿主能询问时会先请用户确认)。
|
|
30
|
+
- **`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`。
|
|
31
|
+
- **`mode` 自动推导、不对外暴露**:给了 `voice_id` → `voice_cover`;只给 `source_audio` → `cover`;都没有 → `generate`。`voice_id` 和 `source_audio` 同时给时,意思是「用指定音色翻唱你给的这段音频」,按 `voice_cover` 两个字段都发。
|
|
32
|
+
- **选哪个模型**(没点名模型时,只按目录声明,不按模型名猜):`voice_cover` 用第一个声明了 `audio.supports_voice_cover: true` 的音乐模型(目前是 `suno-v6-voice-vibedev`;`suno-v6-vibedev` 声明为 `false`);一个都没有时直接报错「当前没有支持音色翻唱的模型」,不会退到普通音乐模型(那样 `voice_id` 会被忽略,还照样扣费)。点名了不支持音色翻唱的模型又带 `voice_id` 也会被拒绝。`cover` 和 `generate` 照旧按 `musicModel`,不会自动选到支持音色翻唱的模型(除非 `musicModel` 自己指定了它)。
|
|
33
|
+
- **`mode` 一定显式传**:有 `voice_id` 时请求体里一定是 `mode: "voice_cover"`,绝不会是 `cover`(网关见到 `cover` 会忽略 `voice_id`,当成普通上传翻唱)。
|
|
34
|
+
- **校验**:模型声明了 `mode` 时显式写进请求体。`audio_weight` 在 `generate` 下会直接报参数错误,不会被悄悄忽略;上传失败或拿不到公网 HTTPS 直链时明确报错,不会退化成普通生成。
|
|
35
|
+
- **已知限制**:网关对 `source_audio_url` 的兜底下载上限是 30 MiB,且只有 VibeDev 媒体 URL 支持 multipart 兜底;外部链接必须公开可下载。插件总是先把 `source_audio` 上传到 VibeDev 素材库,再提交素材库给出的链接。
|
|
36
|
+
- **计费**:音色接口(`/v1/audio/voice-profiles`)不算付费请求,调用后不会触发余额刷新;生成歌曲照常按模型价格计费,以网关回执为准。
|
|
37
|
+
|
|
13
38
|
## 0.11.2 用户可见更新
|
|
14
39
|
|
|
15
40
|
**音频、视频直接发给模型**:在对话里附上音频或视频文件,声明支持音频/视频的 VibeDev 模型现在能直接「看到」「听到」文件内容,不用再先转写或抽帧。
|
|
@@ -310,6 +335,9 @@ VibeDev 开着时发布的 `popup` 公告,现在会在下一次读取消息时
|
|
|
310
335
|
| `media_models` | 列出账号可用的媒体模型和价格;视频模型还会列出每种模式接受哪些输入。 |
|
|
311
336
|
| `media_tasks` | 查看进行中和已完成的视频、音频任务。 |
|
|
312
337
|
| `media_account` | 查看用的是哪个 VibeDev 账号;登录或退出(和侧边栏、设置里的登录是同一个)。 |
|
|
338
|
+
| `voice_profile_create` | 用一段 6–60 秒的人声建音色(免费,不生成歌曲),返回 `vp_…` id,等到可用或失败。 |
|
|
339
|
+
| `voice_profile_list` | 列出账号的音色:`vp_…` id、名称、状态(可用 / 创建中 / 失败及原因)、时长和创建时间。 |
|
|
340
|
+
| `voice_profile_delete` | 按 `vp_…` id 永久删除一个音色,不可恢复;已生成的歌曲不受影响。 |
|
|
313
341
|
|
|
314
342
|
### 生成的图片与上下文
|
|
315
343
|
|
|
@@ -333,7 +361,7 @@ VibeDev 开着时发布的 `popup` 公告,现在会在下一次读取消息时
|
|
|
333
361
|
|
|
334
362
|
音频模型是音乐、播客、语音还是转写,只看网关模型目录里 `audio.generation_kind` 的声明,不按模型名称猜;没有声明类型的模型会列出来,但不能用来生成。每个模型只提交它在 `request_fields` 里声明的字段,正文写进 `prompt_field` 指定的字段:
|
|
335
363
|
|
|
336
|
-
- 音乐:`prompt`、`lyrics`、`genre`、`mood`、`gender
|
|
364
|
+
- 音乐:`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
365
|
- 播客:`prompt`、`source_url`;
|
|
338
366
|
- 语音:按模型声明,例如 Seed 是 `text_prompt`、`references`(参考音频)、`audio_config`(输出格式和采样率)、`watermark`。
|
|
339
367
|
|
|
@@ -467,6 +495,31 @@ npm run build
|
|
|
467
495
|
|
|
468
496
|
## English
|
|
469
497
|
|
|
498
|
+
### What changes in 0.11.4
|
|
499
|
+
|
|
500
|
+
**Longer voice samples are no longer reported as failed, and 「我的音色」 (My voices) has a new layout.**
|
|
501
|
+
|
|
502
|
+
- **Creation can take up to 2–3 minutes, and a timeout is followed by a check**: the voice-profile creation request has its own 3-minute timeout (other requests are unchanged). When the gateway still does not answer in time (a timeout, a 504 or a lost connection), the plugin does not report a failure: it reads the voice list for up to 3 more minutes for a profile that was not there before and, when one appears, returns it as created. When none appears it reports "The gateway timed out. The voice may have been created there: refresh the list in a little while to check, and try again only if it is not there." (`VOICE_PROFILE_UNCONFIRMED`, retryable, nothing charged). Real input errors (4xx) still fail at once.
|
|
503
|
+
- **Retrying does not create twice**: the creation's `Idempotency-Key` is now derived from the sample and the name (the same sample under the same name always sends the same key; another name sends another). Whether it deduplicates is up to the gateway; when it does not, the list check above is the fallback.
|
|
504
|
+
- **「我的音色」 page**: narrowed to the width of the Redeem page; the file picker is a dashed drop area (click or drop), showing the file name, length, size and "Choose another" once chosen; "Create voice" is the primary button and says why it is disabled; the list is made of standard rows (icon, name, status pill, "length · created", delete); the empty, loading, failed and unsupported states all have proper placeholders. After 15 s a creation shows "processing" with the seconds waited; a timeout turns into "may already exist, checking" instead of a red error.
|
|
505
|
+
|
|
506
|
+
### What changes in 0.11.3
|
|
507
|
+
|
|
508
|
+
**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.
|
|
509
|
+
|
|
510
|
+
- **「我的音色」 (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.
|
|
511
|
+
- **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.
|
|
512
|
+
- **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.
|
|
513
|
+
- **`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.
|
|
514
|
+
- **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).
|
|
515
|
+
- **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`.
|
|
516
|
+
- **`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.
|
|
517
|
+
- **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).
|
|
518
|
+
- **`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).
|
|
519
|
+
- **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.
|
|
520
|
+
- **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.
|
|
521
|
+
- **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.
|
|
522
|
+
|
|
470
523
|
### What changes in 0.11.2
|
|
471
524
|
|
|
472
525
|
**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.4
|
|
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.
|