Customers Contact TR

Lyria by Google DeepMind: The Next Chapter in Music Creation

Artists and developers today constantly seek innovative tools to bring their visions to life. Google DeepMind is at the forefront of this revolution, offering Lyria and Lyria RealTime – state-of-the-art AI models designed to transform how we create, interact with, and perform music. These powerful generative AI models are not just about automation; they are about amplifying human creativity and opening doors to unprecedented musical possibilities.


Lyria: Redefining Music Creation with a Touch of AI Magic

Lyria is your ultimate partner for generating high-quality, instrumental music from simple text prompts. It is a foundation model capable of creating diverse soundscapes and intricate musical pieces.


💡 To learn more about Lyria and see examples of the music it can generate, check out the following video:



Capabilities Designed for the Modern Creator

  • High-Fidelity Audio: Lyria 2, the latest iteration, delivers professional-grade 48kHz stereo audio with detail and richness, capturing subtle nuances across various instruments and playing styles.
  • Granular Creative Control: Musicians and producers can use text prompts to shape the music, controlling elements like key, BPM, and other characteristics.
  • Diverse Musical Possibilities: From classical and jazz to pop and electronic, Lyria allows for composition across a wide spectrum of genres and styles, enabling artists to steer compositions towards their specific tastes.

How Lyria Works & Best Practices for Optimal Results

Lyria operates by generating instrumental music based on your text descriptions, also known as prompts. To achieve your desired musical output, clarity and descriptiveness are key.


When writing your prompts, consider these core elements:

  • Genre & Style: Define the primary musical category and stylistic characteristics (e.g., “electronic dance,” “cinematic,” “lo-fi”).
  • Mood & Emotion: Convey the desired feeling (e.g., “energetic,” “melancholy,” “peaceful”).
  • Instrumentation: Specify the key instruments you want to hear (e.g., “piano,” “string orchestra,” “electronic drums”).
  • Tempo & Rhythm: Set the pace and rhythmic character (e.g., “fast tempo,” “driving beat,” “120 BPM”).

For even greater control, Lyria supports negative prompts, allowing you to explicitly exclude elements you do not want in the generated music, such as “vocals,” “excessive cymbal crashes,” or “distorted guitar”.


Lyria’s Vertex AI Integration & API

Lyria 2 is available on Google Cloud’s Vertex AI, making it accessible for developers and creators within a robust cloud environment. You can generate music directly from the Google Cloud console or by sending requests to the Gemini API.


Interacting with Lyria via API involves sending a POST request to the model’s predict endpoint with your text prompt. The successful response provides the generated audio data, typically base64-encoded as a WAV file. Each generated audio clip is 30 seconds long.


Lyria RealTime: Interactive Live Performance and Dynamic Control

Imagine creating and manipulating music on the fly, in the moment. That is the promise of Lyria RealTime, an interactive, real-time music creation model that unlocks a world of dynamic musical performance and spontaneous creativity.



Real-Time Capabilities for Dynamic Creativity

  • Moment-by-Moment Control: You can steer, shape, and warp the music in real-time, instantly responding to your creative impulses.
  • Advanced Parameter Controls: Blend multiple text prompts to mix genres, change instruments, alter the mood, and directly control parameters like key, tempo, density, and brightness.
  • Production-Quality for Performance: Like Lyria, RealTime also produces professional-grade 48kHz stereo audio, perfect for live performance or as a source of inspiration for your productions.

How Lyria RealTime Works & Best Practices for Live Interaction

Lyria RealTime operates by “jamming” like a musician in a band, playing new music based on its own output and your real-time input. This interactive control is achieved through a persistent, bidirectional, low-latency streaming connection using WebSocket.



To steer the music in real-time, you send new WeightedPrompt messages. Each prompt includes text describing your musical idea and a weight to influence how strongly it affects the ongoing generation. You can also update music generation parameters like BPM, density, or scale in real-time using MusicGenerationConfig.


Best practices for Lyria RealTime include:

  • Robust Audio Buffering: Client applications should implement audio buffering to ensure smooth playback, compensating for network fluctuations.
  • Descriptive Prompting: Use adjectives to describe mood, genre, and instrumentation.
  • Gradual Iteration: Instead of abrupt changes, modify your prompts incrementally to smoothly morph the music.
  • Experiment with Weights: Adjust the weight on WeightedPrompt to fine-tune the influence of new prompts.

Lyria RealTime’s API Integration

Lyria RealTime is accessible via the Gemini API. Developers can initialize a session using Python or JavaScript. This establishes the WebSocket connection for real-time communication.


Key API commands allow you to:

  • Send initial or updated prompts with weights.
  • Configure parameters like BPM, density, brightness, and scale.
  • Control playback and reset the musical context.

Output Format: Raw 16-bit PCM Audio, 48kHz sample rate, 2 stereo channels.


⭐⭐⭐


Whether you are looking to generate stunning, production-ready tracks with Lyria 2 or explore spontaneous, interactive soundscapes with Lyria RealTime, Google DeepMind offers powerful solutions for every musician and developer. These models are not just tools; they are creative partners, designed to accelerate your workflow, inspire new ideas, and unlock unprecedented musical possibilities.


Ready to transform your music creation process? Contact us today to learn how you can integrate Lyria into your business.


Author: Umniyah Abbood

Date Published: Jul 28, 2025



Discover more from Kartaca

Subscribe now to keep reading and get access to the full archive.

Continue reading