Generate a sample pack
generate_samplesExtract one-shot drum hits and loops from a finished track by reusing an existing Audial analysis or processing a local audio file into a new sample pack.
Instructions
Extract a sample pack (one-shots and loops) from a track.
Use when the user wants drum hits or loops taken from a finished track. With the
analysis_id from segment, the pack is built from that analysis's sections and the stems
Audial made for it: nothing is uploaded and it is included in the analysis's run (right
after a new analysis it waits a few minutes for the stems). With file_path it runs the
sample-pack pipeline: prepares the track (analysis and stems together), then builds the
pack; one call, counted as one run, each step reported as it starts and finishes. If that
call times out the job keeps running: pipeline_status finds it. Samples go to a new
results folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| genre | No | Genre hint. | |
| job_type | No | Sample pack job type accepted by Audial (default engine choice when omitted). | |
| file_path | No | Full path to a local audio file (.wav, .mp3, .aif, .aiff, .flac, .m4a, .ogg, .aac). ~ is expanded. Give this or analysis_id. | |
| components | No | Which components to sample, e.g. ['drums', 'bass']. | |
| analysis_id | No | The analysis_id a segment result returned (in its metadata and summary). Reuses that analysis: nothing is uploaded and it does not count as another run. Give this or file_path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| files | Yes | ||
| summary | Yes | ||
| metadata | Yes | ||
| output_dir | Yes | ||
| execution_id | Yes |