openrouter-text2music

Uses Google Lyria 3 Pro via OpenRouter to generate ambient sound design and sound effects, intended for non-voice, non-blog intro background music use.

Last repository push
GitHub Stars
163
Forks
23
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "openrouter-text2music" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-73253a337408fa2d101dbe17dc3223faf551392cf9520fb3da845bea2c017ebc. Verify the upstream source and version against https://github.com/QinghongLin/data2story-skill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Uses Google Lyria 3 Pro via OpenRouter to generate ambient sound design and sound effects, intended for non-voice, non-blog intro background music use.

0 Downloads

Introduction source: third_party · QinghongLin · 0.0.1 Reference

SkillPi interpretation

Tasks
Generate atmospheric sound-design / SFX (NOT speech, NOT the front-of-blog BGM) via OpenRouter using Google Lyria 3 Pro.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value65/100

Highlights

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

Highlights

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

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

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

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

Highlights

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

Areas to improve

  • 异常处理覆盖不全 Reported severity: Minor

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

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

Highlights

  • 工具来源明确,使用 OpenRouter API 调用 Google Lyria 模型
  • 响应解析逻辑完善,支持多种音频返回格式
Evidence Verifiability (mean of the first four)74/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

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

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.