The audioldm command-line tool supports the following arguments:
| Flag | Long Flag | Description |
|---|
-h | --help | Show this help message and exit |
| N/A | --mode {generation,transfer} | generation: text-to-audio; transfer: style transfer |
-t | --text TEXT | Text prompt for audio generation (Default: "") |
-f | --file_path FILE_PATH | (transfer mode): Original audio for transfer; (generation mode): guidance audio (Default: None) |
| N/A | --transfer_strength STRENGTH | Value 0 to 1 (0: original, 1: complete transfer) (Default: 0.5) |
-s | --save_path SAVE_PATH | Path to save output (Default: "./output") |
| N/A | --model_name NAME | Checkpoint to use (Default: "audioldm-s-full") |
| N/A | --batchsize BATCHSIZE | Number of samples to generate at once (Default: 1) |
| N/A | --ddim_steps STEPS | Sampling steps for DDIM (Default: 200) |
-gs | --guidance_scale SCALE | Large = better quality/relevancy; Small = better diversity (Default: 2.5) |
-dur | --duration DURATION | Duration of samples (Default: 10) |
-n | --n_candidate_gen_per_text N | Number of candidates for automatic quality control (Default: 3) |
--seed | --seed SEED | Integer seed for reproducibility (Default: 42) |
usage: audioldm [-h] [--mode {generation,transfer}] [-t TEXT] [-f FILE_PATH] [--transfer_strength TRANSFER_STRENGTH] [-s SAVE_PATH] [--model_name {audioldm-s-full,audioldm-l-full,audioldm-s-full-v2}] [-ckpt CKPT_PATH]
[-b BATCHSIZE] [--ddim_steps DDIM_STEPS] [-gs GUIDANCE_SCALE] [-dur DURATION] [-n N_CANDIDATE_GEN_PER_TEXT] [--seed SEED]
optional arguments:
-h, --help show this help message and exit
--mode {generation,transfer}
generation: text-to-audio generation; transfer: style transfer
-t TEXT, --text TEXT Text prompt to the model for audio generation, DEFAULT ""
-f FILE_PATH, --file_path FILE_PATH
(--mode transfer): Original audio file for style transfer; Or (--mode generation): the guidance audio file for generating simialr audio, DEFAULT None
--transfer_strength TRANSFER_STRENGTH
A value between 0 and 1. 0 means original audio without transfer, 1 means completely transfer to the audio indicated by text, DEFAULT 0.5
-s SAVE_PATH, --save_path SAVE_PATH
The path to save model output, DEFAULT "./output"
--model_name {audioldm-s-full,audioldm-l-full,audioldm-s-full-v2}
The checkpoint you gonna use, DEFAULT "audioldm-s-full"
-ckpt CKPT_PATH, --ckpt_path CKPT_PATH
(deprecated) The path to the pretrained .ckpt model, DEFAULT None
-b BATCHSIZE, --batchsize BATCHSIZE
Generate how many samples at the same time, DEFAULT 1
--ddim_steps DDIM_STEPS
The sampling step for DDIM, DEFAULT 200
-gs GUIDANCE_SCALE, --guidance_scale GUIDANCE_SCALE
Guidance scale (Large => better quality and relavancy to text; Small => better diversity), DEFAULT 2.5
-dur DURATION, --duration DURATION
The duration of the samples, DEFAULT 10
-n N_CANDIDATE_GEN_PER_TEXT, --n_candidate_gen_per_text N_CANDIDATE_GEN_PER_TEXT
Automatic quality control. This number control the number of candidates (e.g., generate three audios and choose the best to show you). A Larger value usually lead to better quality with heavier computation, DEFAULT 3
--seed SEED
Change this value (any integer number) will lead to a different generation result. DEFAULT 42