music-generation

作成者: google-gemini

Interactions APIを通じてLyriaを使用し、アンビエントな背景音楽を生成します。

npx skills add https://github.com/google-gemini/gemini-managed-agents-templates --skill music-generation

Music Generation

Generate background music for the radio show using the Lyria model via the Interactions API.

Embedded Script

python3 skills/music-generation/scripts/generate_music.py --workspace ./workspace --mood tech

Arguments

ArgumentDefaultDescription
--workspaceworkspaceRoot workspace directory
--mooddefaultMusic mood (see moods below)

Moods

MoodStylePair with --style
tech (default)Clean synths, electronic pulse, Silicon Valley startup vibeexplainer, debate
chillSoft pads, gentle piano, lo-fi warmthroundtable, explainer
debateBuilding tension, brass-like synths, panel discussion openerdebate, interview

What it does

  1. Selects the music prompt based on --mood.
  2. Calls the Interactions API with the lyria-3-clip-preview model.
  3. Generates a ~30-second music clip.
  4. Saves as MP3 to {workspace}/audio/music/background.mp3.
  5. Gracefully handles failures — the pipeline continues without music.

Dependencies

  • google-genai (>= 2.0.0)

Output

  • File: {workspace}/audio/music/background.mp3
  • Format: MP3
  • Duration: ~30 seconds

Fallback

Lyria is experimental. If generation fails with a policy error or returns no music, the script will attempt to retry once with a simpler fallback prompt: "Create a 30-second simple ambient background track. Instrumental only, calm and neutral."

If the fallback attempt also fails, the pipeline proceeds without background music — the audio-mixing step handles this gracefully.

google-geminiのその他のスキル

greeter
google-gemini
フレンドリーな挨拶スキル
official
code-reviewer
google-gemini
ローカル変更とリモートプルリクエストに対する自動コードレビュー。正確性、保守性、セキュリティにわたる構造化分析を提供。ローカルファイルシステムの変更(ステージ済みおよび未ステージ)とリモートPR(番号またはURL指定)の両方をサポートし、GitHub CLIによる自動チェックアウトを実行。コードを正確性、保守性、可読性、効率性、セキュリティ、エッジケース処理、テストカバレッジの7つの観点で分析。オプションで事前検証スイート(例:npm run preflight)を実行し、問題を検出。
official
review-duplication
google-gemini
コードレビュー中にこのスキルを使用して、コードベース内の重複機能、車輪の再発明、既存の再利用の失敗などを積極的に調査します。
official
reconciliation
google-gemini
読み込まれた経費を事前解析済みの請求書データベースと照合し、金額の不一致、請求書の欠落、業者の不一致などの差異をフラグ付けします…
official
agent-tui
google-gemini
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications…
official
async-pr-review
google-gemini
ユーザーが非同期PRレビューを開始したい、PRのバックグラウンドチェックを実行したい、または以前に開始した非同期PRのステータスを確認したい場合に、このスキルをトリガーしてください…
official
ci
google-gemini
Gemini CLI向けの高性能でフェイルファストな専門スキル
official
critique
google-gemini
リポジトリのスクリプトとGitHub Actionsワークフローを監査・修正し、技術的な堅牢性とセキュリティを確保する専門知識。
official