goldens/capabilities/music.v1.json 1.6 KiB 71 lines Raw
1 {2   "capability": "music",3   "channels": [4     {5       "channel": "pcm",6       "mime": "audio/pcm; enc=<s16le|f32le>; rate=<hz>; channels=<n>",7       "payload": "one run of audio bytes"8     },9     {10       "channel": "progress",11       "mime": "application/json",12       "payload": "{stage, pct} during generation"13     }14   ],15   "meta": [16     {17       "key": "model",18       "meaning": "the served name that ran the job",19       "type": "string"20     },21     {22       "key": "rate",23       "meaning": "the sample rate in hertz, measured by the plugin",24       "type": "uint"25     },26     {27       "key": "channels",28       "meaning": "the channel count, measured by the plugin",29       "type": "uint"30     },31     {32       "key": "format",33       "meaning": "the sample format that the plugin used",34       "type": "string"35     },36     {37       "key": "duration_ms",38       "meaning": "the length of the audio that the job made",39       "type": "uint"40     }41   ],42   "parameters": [43     {44       "default": "catalogue",45       "meaning": "the length of the audio to make, in seconds",46       "name": "duration_s",47       "type": "uint"48     },49     {50       "default": "none",51       "meaning": "a fixed seed for a repeatable job",52       "name": "seed",53       "type": "uint"54     }55   ],56   "parts": [57     {58       "kind": "text",59       "meaning": "a description of the music to make.",60       "required": "yes, one or more",61       "role": "prompt"62     },63     {64       "kind": "audio",65       "meaning": "audio whose style or mood the job follows.",66       "required": "no",67       "role": "conditioning"68     }69   ],70   "version": 171 }