midasheng-gen

midasheng-gen is a skill for Claude Code from sandraschi/midasheng-gen-mcp. It costs 30 tokens per session (571 once invoked), scanned A, original, Apache-2.0.

A local audio generator that turns structured text descriptions into one 16 kHz audio scene containing speech, music, sound effects, and environmental sounds. It runs on an NVIDIA GPU and can manage, browse, export, or delete generated WAV scenes.

In plain words
What is it for?
Use it to generate mixed audio scenes from tagged captions, inspect scene metadata, download or manage the model, and export the resulting WAV files.
Why use it?
It combines several audio elements in one generation process, reducing the need to create and mix speech, music, effects, and ambience separately.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the midasheng-gen-mcp plugin — 1 skill, 1 MCP server shipped together

Good fit Use it to generate mixed audio scenes from tagged captions, inspect scene metadata, download or manage the model, and export the resulting WAV files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sandraschi/midasheng-gen-mcp/midasheng-gen
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sandraschi/midasheng-gen-mcp --skill midasheng-gen
Clone the repo
git clone --depth 1 https://github.com/sandraschi/midasheng-gen-mcp

Made for: Claude Code.

Or install midasheng-gen-mcp, the plugin that ships this one along with the rest of its 1 skill, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for midasheng-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/sandraschi/midasheng-gen-mcp/midasheng-gen/github.svg)](https://agentmods.dev/skills/sandraschi/midasheng-gen-mcp/midasheng-gen)
Your own site
<a href="https://agentmods.dev/skills/sandraschi/midasheng-gen-mcp/midasheng-gen"><img src="https://agentmods.dev/badge/skills/sandraschi/midasheng-gen-mcp/midasheng-gen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for midasheng-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/sandraschi/midasheng-gen-mcp/midasheng-gen"><img src="https://agentmods.dev/badge/skills/sandraschi/midasheng-gen-mcp/midasheng-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 571 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00571
Opus 5.5 $0.00012 $0.00228
Sonnet 5.5 $0.00006 $0.00114
Haiku 4.5 $0.00003 $0.00057

Measured 2mo ago against content hash 06e335c193b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

midasheng-gen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/midasheng_gen_mcp/skills/midasheng-gen/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MiDashengLM-Gen - Audio Scene Generation

What this server does

MiDashengLM-Gen MCP generates coherent 16 kHz mixed audio scenes from text: speech, music, sound effects, and environmental acoustics in a single autoregressive pass (LLM backbone + per-token flow matching). Apache-2.0, fully local on CUDA (RTX 4090 class: ~12 GB VRAM (fp32)).

Tool surface

audio_scene (portmanteau)

Operations:

  • status: model state, GPU info, torch/transformers versions
  • generate: synchronous scene generation from structured views
  • list: paginated scene browser (limit/offset, has_more)
  • get: single scene metadata
  • delete: remove scene + WAV (requires confirm=True)
  • export: copy a scene WAV to a destination path
  • samples: built-in example captions
  • download_model: fetch the checkpoint from Hugging Face (idempotent)
  • load_model / unload_model: GPU memory management

midasheng_help

Multi-level help: topics overview | generate | prompt_format | model_state | examples.

Prefab cards

  • show_scene_status_card: model + library status
  • show_scene_card: one scene's metadata

Structured caption format

The model consumes tagged views; absent views become <|unknown|>.

<|caption|> overall scene <|asr|> transcript to be spoken <|speech|> speaker characteristics (voice, emotion, style) <|sfx|> sound effects <|music|> music description <|env|> environment / ambience

Best practices

  1. Check audio_scene(operation="status") before generating - the state machine tells you what is missing (not_installed / model_missing / ready) and never fakes success.
  2. Keep the caption view concrete and the asr view clean prose for maximum speech intelligibility.
  3. Use seed for reproducible scenes; raise eval_cfg toward 3.0 for more assertive adherence, lower toward 1.5 for softer interpretation.
  4. List is paginated: pass offset from the previous response.
  5. delete is destructive: confirm=True is required.

Notes

  • Generation blocks up to ~3 minutes on a 4090; the webapp uses the REST job API for async progress.
  • Output: 16 kHz mono WAV, variable length via the learned stop head.
  • 9 languages supported by the checkpoint; emotion control via the speech view.

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 72 lines · 30 tokens per session scan A 06e335c193b9

Subscribe to this mod's changes

midasheng-gen is a skill published in the GitHub repository sandraschi/midasheng-gen-mcp (2 stars, last pushed 15d ago), licensed Apache-2.0. It adds 30 tokens to every session and 571 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

midasheng-gen compared with skills from other repositories

midasheng-gen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
midasheng-gensandraschi/midasheng-gen-mcpSkill215d agoApache-2.0A30Claude Code
rival-search-mcpdamionrashford/RivalSearchMCPSkill137todayMITA151Claude Code
safe-email-operationsWh1isper/mcp-email-serverSkill3815d agoBSD-3-ClauseA39Claude Code
mcp-musescoreghchen99/mcp-musescoreSkill140yesterdayMITA40Codex
triaging-incidentsjschuller/mcp-server-servicenowSkill273d agoMITA89Claude Code
reviewing-update-setsjschuller/mcp-server-servicenowSkill273d agoMITA82Claude Code
reviewing-sla-definitionsjschuller/mcp-server-servicenowSkill273d agoMITA79Claude Code