arioso.platforms.elevenlabs.adapter
ElevenLabs Music adapter.
Uses ho.route_to_func to auto-generate the raw callable from the
ElevenLabs OpenAPI spec, then handles parameter translation for
complex fields like composition_plan.
- class arioso.platforms.elevenlabs.adapter.Adapter(config: dict)[source]
ElevenLabs Music adapter with OpenAPI-based function generation.
- generate(prompt: str, *, duration: float = 30.0, instrumental: bool = False, model: str = 'music_v1', output_format: str = 'mp3_44100_128', lyrics: str = '', title: str = '', structure: list | None = None, watermark: bool = False, seed: int | None = None, **kwargs) Song[source]
Generate music using the ElevenLabs Music API.
- Parameters:
prompt – Text description of desired music.
duration – Length in seconds (3-600).
instrumental – If True, generate without vocals.
model – Model ID.
output_format – Output format string (e.g. ‘mp3_44100_128’).
lyrics – Custom lyrics text.
title – Song title.
structure – Song section structure (list of dicts).
watermark – Apply C2PA content watermark.
seed – Random seed (streaming endpoint only).
- Returns:
A Song with audio_bytes populated.