algorithmic-art
Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric,…
将某个话题或者网页内容总结合成为播客音频(Podcast)。基于火山引擎豆包语音播客合成协议生成最终音频。
$ npx -y skills add bytedance/agentkit-samples --skill byted-podcast-gen --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/byted-podcast-genContext preview
The summary Claude sees to decide when to auto-load this skill.
将某个话题或者网页内容总结合成为播客音频(Podcast)。基于火山引擎豆包语音播客合成协议生成最终音频。
name: byted-podcast-gen description: 将某个话题或者网页内容总结合成为播客音频(Podcast)。基于火山引擎豆包语音播客合成协议生成最终音频。 license: Complete terms in LICENSE
基于火山引擎豆包语音合成 WebSocket 协议(PodcastTTS,`/api/v3/sami/podcasttts`)将某个话题合成为播客音频并保存为本地文件。支持:
1. 用户提到 `生成播客` 或 `播客合成` 等相关关键词。 2. 用户需要为某个话题生成播客形式的音频文件。 3. 用户需要某个网页或文件内容生成播客形式的音频文件。 4. 用户需要为用户上传的文件内容或者一个长上下文生成播客形式的音频文件。
**当你收到用户请求生成播客时:**
1. 分析用户需要合成播客的内容,准备要合成的输入:`prompt_text`(原始话题,一般不超过 20 个字)或 `input_url`(网页地址或文件下载地址) 或者 `text`(用户上传文件读取出来的内容或者是一个比较长的文本,一般超过 200 个字)。 2. 运行脚本前先 `cd` 到本技能目录:`skills/byted-podcast-gen`。 3. 配置鉴权(环境变量或命令行参数)。 4. 执行脚本:`python scripts/podcast.py [参数]`。参考下面示例部分。 5. 根据脚本输出的 JSON 里的 `audio_path` / `texts` / `audio_url` 使用生成结果,如果有 `audio_url` 是一个带过期时间的 URL, 原封不动的返回给用户, `audio_path` 是本地文件路径, 可以给用户提供下载。
| 参数 | 简写 | 必填 | 说明 | |------|------|------|------| | `--text` | | 否 | 输入原始长文本(`action=0` 时使用) | | `--input_url` | | 否 | 输入文本的 URL(`action=0` 时使用,二选一) | | `--prompt_text` | | 否 | 提示词文本(`action=4` 时必填) | | `--action` | | 否 | 播客类型:`0`(原始文本/URL)、`4`(prompt);默认 `4` | | `--speaker_info` | | 否 | 说话人配置 JSON(默认 `{"random_order":false}`) | | `--encoding` | | 否 | 音频格式:`mp3`(默认)、`wav`、`ogg_opus` | | `--output` | | 否 | 最终音频输出文件路径(默认自动生成到 `output/`) |
脚本输出 JSON,包含:
# 基于话题生成播客音频 ptompt_text="豆包语音合成服务" python scripts/podcast.py --prompt_text $ptompt_text --action 4 # 基于网页内容生成播客音频 url="https://www.volcengine.com/docs/6561/1668014?lang=zh" python scripts/podcast.py --input_url $url --action 0 # 基于长文本内容生成播客音频 text="欢迎收听本期节目,我们聊聊人工智能的关键拐点……" python scripts/podcast.py --text $text --action 0
欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。
Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric,…
Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution…
根据文字描述生成视频,一个生成图片和视频的工作流技能。依赖 skills: byted-web-search, image-generate, video-generate。注意:此…
Manage AgentKit skills, SkillHub/skillhub, skill centers, and skill spaces. Use this skill…
Upload files or directories to TOS-compatible object storage for Volcano Engine or BytePlus…
根据用户的功能需求,完成与 VeADK-Go 相关的功能; 包括:直接根据需求生成 Agent;将Enio Agent转换为VeADK-Go Agent。