mood-music

Generate mood-based music tracks via the Loudly API.

24.4k|2.6k|Updated Mar 31, 2025
One-click install
npx skills add https://github.com/google-ai-edge/gallery --skill mood-music-google-ai-edge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mood-music
Source: https://github.com/google-ai-edge/gallery/tree/main/skills/featured/mood-music
Command: npx skills add https://github.com/google-ai-edge/gallery --skill mood-music-google-ai-edge

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill enables generating mood-aligned music tracks on-device by querying genre options via Loudly API and producing playable results based on user mood or media input.

Core Features & Use Cases

  • Query available genres from Loudly and map mood or media input to a compatible genre.
  • Generate a track payload with genre, optional genre_blend, duration, energy, and bpm, returning a playable audio URL.
  • Use cases include mood-based background music for apps, playlists for vibes, and media-driven music generation.

Quick Start

First fetch the available genres with get_genres.html, then generate a mood-matching track by calling index.html with a valid genre, optional genre_blend, duration, energy, and bpm.

Frequently Asked Questions about mood-music

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate mood-based background music for an app?

Generating mood-based background music requires querying available genres via the Loudly API, then producing a playable track based on your specified vibe. You must complete a two-step workflow: fetch genres first, then generate the audio track.

Can I use an image or audio input to suggest a music genre?

Yes, image or audio input can be analyzed to suggest a compatible music genre and generate a matching track. The system maps the analyzed media input to a specific genre before producing the playable audio URL.

What parameters do I need to generate a custom music playlist?

Generating a custom music track requires a payload that includes genre, optional genre_blend, duration, energy, and bpm. These parameters define the track's characteristics and return a playable audio URL.

Do I need a Loudly API key to generate mood-matching tracks?

Yes, a Loudly API key is required to generate mood-matching tracks. The key is necessary to authenticate your requests when fetching available genres and producing the playable audio output.

What is the workflow for generating music based on a specific vibe?

The workflow for generating vibe-based music involves two steps: first fetch available genres, then generate the track by calling the system with a valid genre, duration, energy, and bpm parameters to return a playable audio URL.