Lyria Music Generation for Openclaw

A high-performance AI music generation skill that creates 30-second instrumental tracks using Google Lyria.

menopeter
v1.0.0
Mar 4, 2026
0
758
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install google-lyria-integration

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install google-lyria-integration using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Lyria Music Generation?

The Lyria skill enables developers and creators to generate high-quality, 30-second instrumental music tracks directly within their AI agent environment. By leveraging the Google Lyria model via Vertex AI, this Openclaw Skills integration allows for precise control over genre, mood, instruments, and musical keys. It is specifically designed to streamline the creation of background audio for digital content creators and developers looking to automate media workflows.

This tool bridges the gap between text-based AI agents and high-fidelity audio production. Whether you need a lo-fi study beat or an epic cinematic transition, this skill provides a programmatic way to generate and iterate on musical ideas. It integrates seamlessly into the Openclaw Skills ecosystem to provide a standardized approach to AI-driven audio generation.

Lyria Music Generation Use Cases

  • Short-Form Content Creation: Generate background music for TikTok, YouTube Shorts, and Instagram Reels.
  • Video Transitions: Create 15-30 second audio bridges for professional video editing.
  • Iterative Music Prototyping: Quickly test different musical styles, keys, and instrumentations for creative projects.
  • Audio Looping: Produce repeating segments for background ambience in longer media content using Openclaw Skills.

How Lyria Music Generation Works

  1. The skill verifies the local environment configuration and ensures a valid Google Cloud bearer token is present.
  2. User provides a natural language prompt specifying musical characteristics like tempo, key, and instruments.
  3. The skill processes the prompt and sends a request to the Lyria-002 model via the Google Vertex AI endpoint.
  4. A high-quality 30-second WAV file is generated and saved to the local workspace.
  5. The agent delivers the file path to the user for immediate review or further refinement using Openclaw Skills logic.

Lyria Music Generation Setup

To get started with this music generation tool in your Openclaw Skills environment, follow these steps:

1. Initialize Workspace

mkdir -p ~/.openclaw/workspace/lyria/generated_music

2. Authenticate with Google Cloud

Ensure the gcloud CLI is installed and run:

gcloud auth login
gcloud auth print-access-token

3. Configure Local Settings

Create ~/.openclaw/workspace/lyria/config.json with your project details:

{
  "project_id": "your-project-id",
  "location": "us-central1",
  "bearer_token": "your-token-here",
  "output_dir": "~/.openclaw/workspace/lyria/generated_music"
}

Lyria Music Generation Data Schema & Taxonomy

This skill manages data within a dedicated directory structure for the Openclaw Skills framework:

Path Description
config.json Stores project ID, location, and the temporary bearer token.
generated_music/ Directory containing all output .wav files.
*.wav Audio files named via timestamp (e.g., music_20260302.wav) or custom names.

All metadata regarding generation parameters is passed via the Lyria-002 API endpoint.

Lyria Music Generation Advanced Features

  • Shell Wrapper Integration: Use a simplified bash script for rapid one-line music generation commands.
  • Custom Naming Conventions: Programmatically define filenames for better asset management within Openclaw Skills.
  • Prompt Engineering: Support for complex exclusion parameters (e.g., "no drums") and specific BPM feel.
  • Multi-Script Support: Toggle between direct Python execution for deeper integration or shell scripts for quick usage.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*