arioso.platforms.ace_step.adapter#
ACE-Step adapter (fal.ai): text-to-music and audio-to-audio remix.
ACE-Step is steered by comma-separated style tags, not a sentence, so the
unified prompt (or genre) becomes tags. Its audio-to-audio endpoint
“remixes” an input toward new tags; it also needs original_tags describing
the input, which default to the new tags when not given.
Classes
|
fal.ai ACE-Step adapter. |
- class arioso.platforms.ace_step.adapter.Adapter(config)[source]#
Bases:
objectfal.ai ACE-Step adapter.
- generate(prompt='', *, genre='', lyrics='', instrumental=False, duration=60.0, num_steps=27, guidance=15.0, seed=None, audio_input=None, original_tags='', original_lyrics='', edit_mode='remix', fetch=True, **kwargs)[source]#
Generate music from tags, or remix
audio_inputtoward them.- Parameters:
prompt (
str) – Style tags (comma-separated works best).genrewins when both are given.genre (
str) – Style tags; an alias ofpromptfor this platform.lyrics (
str) – Lyrics to sing. Empty orinstrumental=Truesends[inst], so a remix of a song with vocals comes out instrumental unless you pass its lyrics (or new ones).instrumental (
bool) – Force an instrumental (discardslyrics).duration (
float) – Seconds (text-to-music only; a remix keeps the input’s length).num_steps (
int) –number_of_steps(default 27).guidance (
float) –guidance_scale(default 15).seed (
int) – Random seed.audio_input – Audio to remix (path, bytes, Song, URL, …). When given, the audio-to-audio endpoint is used.
original_tags (
str) – Tags describingaudio_input(defaults to the new tags).original_lyrics (
str) – Lyrics ofaudio_input, if any.edit_mode (
str) –"remix"(default) or"lyrics".fetch (
bool) – Download the result soaudio_bytesis populated.**kwargs – Native fal arguments in
_NATIVE_EXTRAS(scheduler,guidance_type,tag_guidance_scale, …) are passed through; anything else is ignored.
- Return type:
- Returns:
A completed Song.