npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@spcookie/erii-plugin-tts-bytedance-seed

v1.0.1

Published

Erii TTS Bytedance Seed plugin

Readme

tts-bytedance-seed

火山引擎豆包语音合成 2.0 单向流式 SSML 插件。插件调用 POST https://openspeech.bytedance.com/api/v3/tts/unidirectional,逐帧读取 HTTP Chunked JSON 响应, 拼接 Base64 音频后作为 OneBot 群语音发送。

配置

在插件配置中填写 api-key,或设置环境变量 BYTEDANCE_SEED_TTS_API_KEY

  • resource-id:豆包语音合成模型 2.0 使用 seed-tts-2.0;声音复刻模型 2.0 使用 seed-icl-2.0
  • model:具体模型版本,默认 seed-tts-2.0-standard
  • speakers.default:默认音色 ID。可通过 speakers.<botKey> 给不同机器人配置不同音色。
  • audio.formatmp3pcmogg_opuswav。流式合成推荐 pcm,直接发送 OneBot 群语音推荐 mp3
  • audio.sample-rate:支持 8000160002205024000320004410048000
  • audio.bit-rate:MP3 比特率,范围 64000160000

SSML 输入

工具参数必须是完整的 Universal SSML 文档,且只能有一个 <speak> 根元素。插件会拒绝空内容、无效 XML、 超过 150 字符的 SSML,以及豆包语音合成模型 2.0/声音复刻模型 2.0 不支持的 <break><soundEvent> 标签。

<speak>订单号是<say-as interpret-as="characters">A1024</say-as>。</speak>

可使用 <phoneme><say-as><sub>,以及 <speak>effectbgmbackgroundMusicVolume 属性,但最终能力取决于配置音色。官方当前仅支持中文普通话音色调用 SSML; 方言、小语种、声音复刻音色以及名称含 _saturn_bigtts 的音色可能不支持 SSML。

流式响应

插件按换行分隔读取 JSON 帧。code=0 的帧携带 Base64 音频,code=20000000done=true 表示流结束。若服务返回错误码、无效 JSON/Base64,或连接在结束帧前中断,插件会返回包含服务端 X-Tt-Logid 的错误信息。