AudioCPP Command Usage

August 2, 2026 ยท View on GitHub

Use audiocpp_cli for direct model inference.

audiocpp_cli --task <task> --family <family> --model <model-dir> --backend <backend> [inputs] [outputs]

Common Options

OptionValuesDefaultMeaning
--taskgen, tts, clon, vc, svc, s2s, asr, align, vad, diar, sep, vdesrequiredUser task.
--familymodel family namerequiredSelects the model implementation. Must match a registered loader (audiocpp_cli --list-loaders).
--modellocal model directoryrequiredPath to local model assets.
--backendcpu, cuda, vulkan, metal, bestcpuInference backend.
--modeoffline, streamingofflineRun mode. Most models are offline.
--deviceinteger0Backend device index.
--list-devicesflagoffList available backend devices and exit; combine with --backend/--device to select one.
--threadsinteger4Backend/OpenMP worker threads.
--logflagoffPrint progress and timing logs to stdout.
--log-filepathnot setStream progress and timing logs to a file.
--metricsflagoffPrint compact offline wall time, audio duration, RTF, realtime speed, sample rate, and channel metrics.

Common Inputs And Outputs

OptionUsed byMeaning
--textgeneration, TTS, ASR context, alignment transcriptInput text.
--audiogeneration/editing, ASR, VAD, diarization, separation, conversion, alignmentInput WAV, or - to stream raw PCM from stdin (requires --mode streaming).
--input-formatstreaming ASR with --audio -Raw PCM sample format, s16le or f32le. Default s16le.
--input-ratestreaming ASR with --audio -Raw PCM sample rate in Hz. Default 16000.
--input-channelsstreaming ASR with --audio -Raw PCM channel count. Default 1.
--voice-refvoice clone / voice design / some VC pathsReference voice WAV.
--languagelanguage-aware modelsLanguage code.
--outaudio-producing modelsOutput WAV path.
--out-dirmulti-output or batch modelsOutput directory.
--segments-outVADSpeech segments JSON.
--vad-chunks-outoffline VADVAD-based audio chunk windows JSON.
--turns-outdiarizationSpeaker turns JSON.
--words-outASR/alignmentWord timestamps JSON.
--audio-chunk-secondsASRSplit long audio before model inference, where supported.
--audio-chunk-modeASR/alignmentauto, fixed, vad, or none, where supported.

Common Generation Options

Omit these unless you need explicit control. If --seed is omitted, models that sample use a random seed.

OptionValuesMeaning
--seedintegerReproducible random seed.
--max-tokensintegerMaximum generated tokens for AR/LLM-style models.
--max-stepsintegerMaximum diffusion or generation steps for models that expose it.
--temperaturefloatSampling temperature.
--top-kintegerTop-k sampling limit.
--top-pfloat in (0, 1]Nucleus sampling limit.
--repetition-penaltyfloatPenalize repeated tokens.
--do-sampletrue, falseEnable sampling instead of greedy decode.
--guidance-scalefloatClassifier-free guidance scale.
--num-inference-stepsintegerDiffusion/flow denoising steps.
--text-chunk-sizeinteger charsSplit long text where supported, including TTS text.
--text-chunk-modedefault, tag_aware, japanese, endlineSelect text chunking mode where supported.

Batch Inputs

OptionMeaning
--request-sequence <json>Run multiple JSON requests through one offline model session.
--batch-text-file <txt>One request per non-empty text line.
--batch-text-dir <dir>One request per .txt, .md, or .json file; each file is normalized into a single paragraph.
--batch-audio-dir <dir>One request per .wav file.
`--batch-audio-role audiovoice_ref
`--batch-merge-audio noneconcat`
--batch-manifest-out <json>Write a batch output manifest.

--batch-text-dir reads .txt and .md files as plain text. For .json, use either a JSON string root or an object with a string input or text field.

Use --request-sequence when you want to send multiple requests in one long-lived offline session:

audiocpp_cli --task tts --family pocket_tts \
  --model models/PocketTTS-GGUF/english/pocket-tts-english-q8_0.gguf \
  --backend cuda \
  --request-sequence requests.json \
  --out-dir outputs \
  --metrics

For each request id, --metrics prints metrics[<id>].wall_ms, audio_duration_ms, rtf, x_realtime, sample_rate, and channels.

Model Docs

NeedDoc
Speech, voice clone, long-form TTStts.md
Music and sound generationmusic_generation.md
OmniVoice TTS, voice cloning, voice design, and streamingmodels/omnivoice.md
ASR modelsasr.md
VAD and diarizationspeech_analysis.md
Voice conversion codec and source separationaudio_tools.md