arioso.base#
Core types and constants for arioso.
Defines the unified output types (Song, AudioResult) and the canonical set of affordance names that all platform adapters map to.
Module Attributes
What a platform's |
Classes
|
Descriptor for a unified parameter affordance. |
|
Unified audio output from any music generation platform. |
|
A generated song with its metadata and audio data. |
Exceptions
|
A platform refused the input audio because it matches a catalogued recording. |
- class arioso.base.Affordance(name, type, description, default=None, minimum=None, maximum=None, title='', multiline=False)[source]#
Bases:
objectDescriptor for a unified parameter affordance.
- title#
Short display name (empty: derived from
name). A platform’sparam_mapentry may give its own (Suno callsaudio_input_strength“Audio Influence”).- Type:
- class arioso.base.AudioResult(audio_bytes=None, audio_url='', audio_array=None, sample_rate=0, format='', duration_seconds=0.0)[source]#
Bases:
objectUnified audio output from any music generation platform.
Exactly one of audio_bytes, audio_url, or audio_array will typically be populated by the platform adapter. Conversion between forms can be done on demand by the caller.
- arioso.base.COMMERCIAL_USE_VALUES = ('yes', 'no', 'conditional', 'unclear', 'provider terms')#
What a platform’s
commercial_useconfig field may say, about using its output commercially: the weights’ licence allows it ("yes"), forbids it ("no"), allows it under conditions such as a revenue cap or use restrictions ("conditional"), the weights are not public and the hosted service’s own terms decide ("provider terms"), or the terms are not settled: the licence is unstated, disputed or withdrawn, or the training-data chain is doubtful ("unclear"). Obligations on redistributing the weights themselves (LGPL, attribution) belong inweights_license, not here. denote’s backends use the same values.
- exception arioso.base.CatalogMatchError(message, *, task_id=None, code=None)[source]#
Bases:
RuntimeErrorA platform refused the input audio because it matches a catalogued recording.
This is a policy refusal (copyright filter), not a transient failure: callers that retry or regenerate in a loop should treat it as final.
- task_id#
The provider task id of the refused generation, if known.
- code#
The provider’s error code (e.g.
413), if given.