music-generation

द्वारा google-gemini

इंटरैक्शन्स 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 की और Skills

greeter
google-gemini
एक मैत्रीपूर्ण अभिवादन कौशल
official
code-reviewer
google-gemini
स्थानीय परिवर्तनों और दूरस्थ पुल अनुरोधों के लिए स्वचालित कोड समीक्षा, जिसमें शुद्धता, रखरखाव क्षमता और सुरक्षा पर संरचित विश्लेषण शामिल है। स्थानीय फ़ाइल सिस्टम परिवर्तनों (स्टेज्ड और अनस्टेज्ड) और दूरस्थ PRs (संख्या या URL द्वारा) को स्वचालित GitHub CLI चेकआउट के साथ समर्थन करता है। कोड का सात आयामों में विश्लेषण करता है: शुद्धता, रखरखाव क्षमता, पठनीयता, दक्षता, सुरक्षा, एज केस हैंडलिंग और परीक्षण कवरेज। वैकल्पिक
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