@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
30 lines (29 loc) • 1.03 kB
TypeScript
/**
* Google Lyria 3 Pro Music Handler
*
* Synchronous generation against the Generative Language API. Returns
* audio inline as base64 in the response.
*
* @module music/providers/LyriaMusic
* @see https://ai.google.dev/gemini-api/docs/music-generation
*/
import type { MusicAudioFormat, MusicHandler, MusicOptions, MusicResult } from "../../types/index.js";
/**
* Google Lyria 3 Pro Music Handler.
*
* Auth: `Authorization: Bearer ${GOOGLE_API_KEY}` or query-string
* `?key=${GOOGLE_API_KEY}` (the latter is more compatible with the
* Generative Language endpoints today).
*/
export declare class LyriaMusic implements MusicHandler {
readonly maxDurationSeconds = 30;
readonly supportedFormats: readonly MusicAudioFormat[];
readonly supportedGenres: readonly string[];
private readonly apiKey;
private readonly baseUrl;
private readonly model;
constructor(apiKey?: string);
isConfigured(): boolean;
generate(options: MusicOptions): Promise<MusicResult>;
private buildPrompt;
}