---
title: CLI Reference
description: Run Oto headless, denoise WAV files offline, benchmark CPU and latency, and verify fail-closed Voice Isolation from the terminal.
sidebar:
  label: CLI Reference
  order: 5
---

The `oto` binary drives the exact same `oto-engine` and `oto-dsp` pipeline as the menu-bar app—useful for headless setups, scripting, offline WAV cleanup, and measuring real hardware latency.

:::note[Quit the menu-bar app before live CLI commands]
Only one engine instance can hold the virtual microphone lock at a time, and the menu-bar app holds that lock even while idle. Quit **Oto.app** before running `oto run`, `oto latency`, or `oto bench --live`.
:::

## Subcommands

### `oto run`

Runs the virtual microphone engine until `Ctrl-C`, printing state events and live input/output levels. Audio only flows while an app records from **Oto Microphone**.

```bash
oto run [OPTIONS]
```

| Flag | Values | Description |
| --- | --- | --- |
| `--device ID` | Device ID from `oto devices` | Pin a specific physical input microphone. |
| `--strength S` | `light` \| `balanced` \| `strong` | Attenuation strength for Noise Cancellation (default `balanced`). |
| `--tier TIER` | `standard` \| `lite` \| `isolate` | Model tier (`standard` = Oto-1 Clean; `lite` = Oto-1 Lite Clean; `isolate` = fail-closed Oto-1 Isolate). Retired `light` and `max` are rejected with an error; use `standard` or `lite`. |
| `--enhance PRESET` | `off` \| `natural` \| `warm` \| `broadcast` | Presence-gated Voice Enhancer preset (default `off`). |
| `--no-denoise` | Flag | Bypass denoising suppression while keeping the 80 Hz high-pass filter, limiter, and 21.33 ms chain delay. |
| `--set-default` | Flag | Set **Oto Microphone** as the default system input until `oto run` exits, then restore the previous default. |

```bash
# Run Oto-1 Isolate with the Warm voice preset as your system default mic
oto run --tier isolate --enhance warm --set-default
```

### `oto process`

Runs a WAV file (`16`/`24`/`32`-bit PCM or `32`-bit float, any sample rate or channel count) through the live DSP chain offline. Output is written as mono at the input's sample rate, delay-compensated and length-matched by default.

```bash
oto process INPUT.wav OUTPUT.wav [--model MODEL] [--tier TIER] [--strength S] \
            [--enhance PRESET] [--no-denoise] [--chunk-size N] [--no-delay-comp] [--json]
```

```bash
# Clean a noisy recording with Oto-1 Clean and Broadcast voice shaping
oto process raw-interview.wav clean-interview.wav --model oto1-clean --enhance broadcast
```

### `oto devices` & `oto status`

Inspect available physical microphones and verify the Core Audio HAL driver state.

```bash
oto devices   # Lists physical input devices and their IDs for --device
oto status    # Prints driver and device status; exits 1 if the driver isn't installed
```

### `oto latency`

Measures real end-to-end latency through the **Oto Microphone** driver path.

```bash
oto latency [--seconds N] [--device ID] [--strength S] [--tier TIER] \
            [--enhance PRESET] [--no-denoise] [--stimulus tone|speech] [--json]
```

- `--no-denoise` bypasses denoising suppression so the test tone isn't attenuated while keeping the 80 Hz high-pass filter, limiter, and 21.33 ms chain delay.
- `--stimulus speech` injects voiced bursts that denoisers preserve, letting you measure onset latency with denoising active. Exits `1` if fewer than 80% of bursts arrive.

### `oto bench`

Benchmark DSP throughput offline or measure live audio-callback jitter under real streaming conditions.

```bash
# Offline synthetic DSP benchmark
oto bench [--model MODEL] [--tier TIER] [--enhance PRESET] [--seconds N] [--json]

# Live engine benchmark (callback p50/p99/p99.9/max, deadline misses, xruns, CPU, latency)
oto bench --live [--tier TIER] [--enhance PRESET] [--seconds N] [--device ID] [--strength S] [--json]
```

### `oto fault-check`

Injects every Voice Isolation failure condition—start-up, starvation, overflow and flush, inference errors, load failure, and mode-switch preload—at every strength into the `isolate` tier and verifies that **zero raw microphone samples leak** to the output. Exits `1` on any leak or unexpected fallback.

```bash
oto fault-check [--json]
```

### `oto recover-update`

Completes or rolls back an app update interrupted by a crash or power loss, and reopens Oto if it rolled back. Safe to run anytime; exits cleanly if no interrupted update exists.

```bash
oto recover-update
```

## Model & tier names

| `--tier` | Live engine model | `--model` (`process` / `bench`) |
| --- | --- | --- |
| `standard` | Oto-1 Clean *(default)* | `oto1-clean` |
| `isolate` | Oto-1 Isolate *(fail-closed)* | `oto1-isolate` |
| `lite` | Oto-1 Lite Clean *(compact 374K)* | `oto1-lite-clean` |
| — | Oto-1 Lite Isolate *(compact 374K, fail-closed)* | `oto1-lite-isolate` |

`oto process`, `oto latency`, `oto bench`, and `oto fault-check` accept `--json` to print a single machine-readable JSON object to stdout.
