UNPKG

@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

31 lines (30 loc) • 1.13 kB
/** * ElevenLabs Music / Sound Generation Handler * * Distinct from ElevenLabs TTS — uses the `/v1/sound-generation` endpoint * (synchronous; returns binary audio directly, no polling). * * @module music/providers/ElevenLabsMusic * @see https://elevenlabs.io/docs/api-reference/sound-generation */ import type { MusicAudioFormat, MusicHandler, MusicOptions, MusicResult } from "../../types/index.js"; /** * ElevenLabs Music / Sound Generation Handler. * * Auth: `xi-api-key: ${ELEVENLABS_API_KEY}` (shares the same env var as * ElevenLabs TTS — same account; different endpoint). * * Best for: short sound effects (ambient drones, hits, foley) and short * music loops up to 22 seconds. */ export declare class ElevenLabsMusic implements MusicHandler { readonly maxDurationSeconds = 22; readonly supportedFormats: readonly MusicAudioFormat[]; readonly supportedGenres: readonly string[]; private readonly apiKey; private readonly baseUrl; constructor(apiKey?: string); isConfigured(): boolean; generate(options: MusicOptions): Promise<MusicResult>; private buildPrompt; }