openrouter-text2music

通过 OpenRouter 使用 Google Lyria 3 Pro 生成氛围音效设计与特效音,面向非语音、非博客前导背景音乐的用途。

仓库最近推送
GitHub Stars
163
Forks
23
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "openrouter-text2music":https://skillpi.com/zh/skills/deepskill-73253a337408fa2d101dbe17dc3223faf551392cf9520fb3da845bea2c017ebc。安装前核对上游来源和版本:https://github.com/QinghongLin/data2story-skill。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

通过 OpenRouter 使用 Google Lyria 3 Pro 生成氛围音效设计与特效音,面向非语音、非博客前导背景音乐的用途。

0 下载

介绍来源: third_party · QinghongLin · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: openrouter-text2music
description: Generate atmospheric sound-design / SFX (NOT speech, NOT the front-of-blog BGM) via OpenRouter using Google Lyria 3 Pro.

openrouter-text2music

Text → audio via OpenRouter. Default model: google/lyria-3-pro-preview.

Role in Data2Story: atmospheric sound-design / SFX only — never the front BGM. Use this for a sound the story needs that has NO findable real recording: an ambient bed (tension drone, texture, room tone) or best-effort sharp foley (e.g. a glass-shatter texture). Lyria's strength is ambient/textural beds, not crisp transients, so sharp foley is best-effort. The result is an opt-in, event/section-bound, reader-controlled element. The front-of-blog BGM must be a SOURCED real track (sourced_bgm via the Scout) — never generated here.

⚠️ This is a generative audio model, not TTS. It produces 48kHz stereo audio; for narration/voiceover use a dedicated TTS tool (e.g., OpenAI tts-1, ElevenLabs).

Usage

Resolve TOOL_DIR = the directory containing this SKILL.md. Commands below use TOOL_DIR as a symbolic placeholder; replace it with the resolved, quoted path before running Bash.

export OPENROUTER_API_KEY=sk-or-v1-...

python3 TOOL_DIR/scripts/generate_music.py \
  --prompt "Low rumbling tension drone, sub-bass swell, no melody, slowly building unease" \
  --download PROJECT_DIR/assets/sfx_drone.wav

SFX prompting

Describe a TEXTURE, not a song — no genre/BPM/lead/vocals. Examples:

  • "low rumbling tension drone, sub-bass swell, no melody"
  • "sharp glass-shatter texture, brittle high transients" (foley — best-effort)
  • "distant wind and creaking-ice ambience, cold and hollow"

Flags

Flag Default Description
--prompt required Text prompt — describe the atmospheric texture / SFX (mood, materials, motion); avoid song structure
--download required Output audio file path
--model google/lyria-3-pro-preview Alt: google/lyria-3-clip-preview (shorter clips)

Pricing

  • lyria-3-pro-preview: $0.08 per call

Notes

  • Request uses POST /api/v1/chat/completions with modalities: ["audio","text"].
  • Response parsing handles several shapes: message.audio, a content part with type=audio, or a data:audio/... URL embedded in the text content.
  • Output format is typically WAV (48kHz stereo); the script saves whatever bytes the API returns — choose the extension to match.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值65/100

亮点

  • 解决特定场景下难以获取的真实音效生成需求
  • 明确区分氛围音效与背景音乐,定位清晰
触发精准85/100

亮点

  • 触发描述清晰,明确排除语音和背景音乐场景
  • 给出具体的使用限制和边界条件
结构规范75/100

待提升项

  • 缺少 When to Use 章节 原报告严重程度:轻微

    文档结构完整但缺少明确的 When to Use 章节,用户可能不清楚具体适用场景

    改进建议:建议添加 When to Use 章节,明确说明适合使用该 Skill 的具体场景和条件

亮点

  • 文档结构清晰,包含 Usage、Flags、Pricing 等必要章节
  • 提供了端到端的使用示例和参数说明
执行可靠70/100

待提升项

  • 异常处理覆盖不全 原报告严重程度:轻微

    未明确说明如何处理 API 调用失败、网络错误等常见异常情况

    改进建议:建议在文档中补充异常处理说明,包括重试机制、错误码处理等

亮点

  • 工具来源明确,使用 OpenRouter API 调用 Google Lyria 模型
  • 响应解析逻辑完善,支持多种音频返回格式
证据可验 (前四项均值)74/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。