本文へスキップ
Skillpedia
音声とボイス75k · #2679

music

できること

このスキルは、ElevenLabs Musicでテキストのプロンプトから音楽を作成します。インストゥルメンタル、ジングル、歌詞付きの曲が必要なクリエイター向けです。

使う場面

  • ✓プロジェクト用のインストゥルメンタルのBGMが必要なとき。
  • ✓ブランド用のジングルや、歌詞付きの曲が欲しいとき。
  • ✓作曲プランで、曲の構成をより細かく制御したいとき。

スキルのリンク

https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/music/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/music/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ジャジーなピアノのコードが入った、30秒のローファイヒップホップのBGMを作成してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、スタイルの説明と長さをElevenLabs Musicに送り、音声ファイルを保存します。より細かく制御したい場合は、まず曲のセクションを示す作曲プランを作ることもできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

ElevenLabs Music Generation

Generate music from text prompts - supports instrumental tracks, songs with lyrics, and fine-grained control via composition plans.

Setup: See Installation Guide. For JavaScript, use @elevenlabs/* packages only.

Quick Start

Python

from elevenlabs import ElevenLabs

client = ElevenLabs()

audio = client.music.compose(
    prompt="A chill lo-fi hip hop beat with jazzy piano chords",
    music_length_ms=30000
)

with open("output.mp3", "wb") as f:
    for chunk in audio:
        f.write(chunk)

JavaScript

import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import { createWriteStream } from "fs";

const client = new ElevenLabsClient();
const audio = await client.music.compose({
  prompt: "A chill lo-fi hip hop beat with jazzy piano chords",
  musicLengthMs: 30000,
});
audio.pipe(createWriteStream("output.mp3"));

cURL

curl -X POST "https://api.elevenlabs.io/v1/music" \
  -H "xi-api-key: $ELEVENLABS_API_KEY" -H "Content-Type: application/json" \
  -d '{"prompt": "A chill lo-fi beat", "music_length_ms": 30000}' --output output.mp3

Methods

Method Description
music.compose Generate audio from a prompt or composition plan
music.composition_plan.create Generate a structured plan for fine-grained control
music.compose_detailed Generate audio + composition plan + metadata
music.upload Upload an audio file for later inpainting workflows and optionally extract its composition plan

See API Reference for full parameter details.

music.upload is available to enterprise clients with access to the inpainting feature.

Composition Plans

For granular control, generate a composition plan first, modify it, then compose:

plan = client.music.composition_plan.create(
    prompt="An epic orchestral piece building to a climax",
    music_length_ms=60000
)

# Inspect/modify styles and sections
print(plan.positiveGlobalStyles)  # e.g. ["orchestral", "epic", "cinematic"]

audio = client.music.compose(
    composition_plan=plan,
    music_length_ms=60000
)

Content Restrictions

  • Cannot reference specific artists, bands, or copyrighted lyrics
  • bad_prompt errors include a prompt_suggestion with alternative phrasing
  • bad_composition_plan errors include a composition_plan_suggestion

Error Handling

try:
    audio = client.music.compose(prompt="...", music_length_ms=30000)
except Exception as e:
    print(f"API error: {e}")

Common errors: 401 (invalid key), 422 (invalid params), 429 (rate limit).

References

よくある質問

曲の長さはどこまで可能ですか?

長さはミリ秒で指定します。30秒の曲なら30000です。

歌詞を入れられますか?

はい。曲には歌詞を含められ、このスキルでは入れ方も扱います。

作曲プランとは何ですか?

曲の構成を構造化した概要で、各セクションをより細かく制御できます。

詳細

作者による元の説明

Generate music using ElevenLabs Music API. Use when creating instrumental tracks, songs with lyrics, background music, jingles, or any AI-generated music composition. Supports prompt-based generation, composition plans for granular control, and detailed output with metadata.

repo: calesthio/OpenMontage

人気

GitHubのスター
75k
ランキング
#2679
ライセンス
AGPL-3.0
更新日
2026/10/28

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル