> For the complete documentation index, see [llms.txt](https://diffio.ai/llms.txt). This page is also available as HTML at https://diffio.ai/docs/overview/capabilities/audio-restoration/.

# Audio restoration API: what Diffio fixes

Diffio restores speech recordings that are hard to hear because of background noise, echo, reverb, distortion, low bandwidth capture, or low sample rate audio.

## Hear restored speech

Hear restored speech

Real noisy recordings, restored November 3, 2026 with Diffio 4.7 at matched loudness.

**Downtown Denver at night**

Press play, then switch between Original, 4.7 Flash and 4.7 Pro. Your place stays the same.

**Read what's said**

“Right now I'm just walking down Market, just past 33rd. We're on our way to the jazz club to see a couple guys perform tonight. It's pretty chilly again, like yesterday, but not as bad. Snow's lit up by all the neons down here, down on this street. Traffic's pretty low so far.”

Source: A student narrating a walk down a city street for the Kerouac's America project. Recording by kerouacsamerica on Freesound, CC BY 3.0.

**Source & method**

Restored November 3, 2026 with Diffio 4.7 Flash and Diffio 4.7 Pro; the Flash version is the same excerpt from our [speech enhancer test](https://diffio.ai/speech-enhancer-benchmark/). Every version plays at matched loudness. [Source and license](https://diffio.ai/remove-background-noise/#sample-sources).

Hear more: [A full before-and-after example](https://diffio.ai/recording-rescue/) [Restoring old speech recordings](https://diffio.ai/restore-old-recordings/) [How Diffio works](https://diffio.ai/how-it-works/)

## Restoration scope

- Restored audio for playback, and downloads on plans that include them
- Original and restored comparison with waveforms; the upload stays in the project
- Transcript and restoration metadata

Spoken audio it suits

- [Interviews](https://diffio.ai/interview-audio-cleanup/)
- [Lectures](https://diffio.ai/lecture-audio-enhancer/)
- [Podcasts](https://diffio.ai/podcast-audio-enhancer/)
- [Video soundtracks](https://diffio.ai/remove-background-noise-from-video/)

## Problems it fixes

- [Background noise](https://diffio.ai/remove-background-noise/): traffic, wind, crowds, hum, hiss
- [Echo and reverb](https://diffio.ai/remove-echo-from-audio/): far microphones, hard empty rooms
- [Distortion and clipping](https://diffio.ai/fix-distorted-audio/): too loud, peaks cut off
- [Poor microphones and low bandwidth](https://diffio.ai/fix-bad-mic-audio/): calls, laptop mics, low sample rates

## Inputs and limits

Audio formats

MP3 · WAV · M4A · AAC · FLAC · OGG

File size

Up to 2 GB

Length

No length limit in the API

Metering

Per second, 60 s minimum

**Limits in detail**

| Audio formats | MP3, WAV, M4A, AAC, FLAC and OGG. Video uploads are covered in [video support](https://diffio.ai/docs/overview/capabilities/video-support/). |
| --- | --- |
| File size | Up to 2 GB (2,147,483,648 bytes) per file. Larger files are refused by [create a project](https://diffio.ai/docs/api-reference/create-project/) or [complete upload](https://diffio.ai/docs/api-reference/complete-project-upload/) with `413` and code `upload_too_large`. |
| Length | The API enforces no media duration limit. |
| Metering | API usage is metered on the source duration of each generation, rounded up to the next whole second, with a 60 second minimum. See [billing](https://diffio.ai/docs/overview/administration/billing/). |

## Model fit

- [Diffio 4.7 Flash](https://diffio.ai/docs/api-reference/create-generation/) About 30× real time · every plan · high volume work
- [Diffio 4.7 Pro](https://diffio.ai/docs/api-reference/create-generation/) About 10× real time · paid plans · difficult recordings

**Which model to choose**

- **Diffio 4.7 Flash**: (`diffio-4.7-flash` or `diffio-flash`): fast, high quality speech restoration and high volume work where turnaround time matters.
- **Diffio 4.7 Pro**: (`diffio-4.7-pro` or `diffio-pro`): more model work at every restoration step, so it runs slower than Flash. In Diffio's 59-clip test its scores were within Flash's confidence interval, so compare both on difficult recordings.

Run both on the same project to compare them; each generation is billed separately.

The [models page](https://diffio.ai/docs/overview/models/) compares them in detail.

## API example: start a restoration

After the upload is ready (see the [quickstart](https://diffio.ai/docs/developers/quick-start/)), one request starts a Flash restoration; pass `diffio-pro` or `diffio-4.7-pro` for Pro.

1. Request `POST /v2/projects/{project_id}/generations` `model · Idempotency-Key`
2. Response `status: "processing"` `id · project_id · model`

The `Idempotency-Key` header makes a retried request return HTTP `201` with the same generation `id` instead of starting a second one.

**Full request and response**

**Python**

```python
from diffio import DiffioClient

client = DiffioClient()
generation = client.generations.create(
    "62f62565-049f-5e7e-bbd2-9de0cf7ddbfe",
    model="diffio-flash",
    label="Take 1",
    idempotency_key="take-1-flash",
)
```

**Node.js**

```javascript
import { DiffioClient } from "diffio";

const client = new DiffioClient();
const generation = await client.generations.create(
  "62f62565-049f-5e7e-bbd2-9de0cf7ddbfe",
  { model: "diffio-flash", label: "Take 1" },
  { idempotencyKey: "take-1-flash" },
);
```

**cURL**

```bash
curl -X POST "https://api.diffio.ai/v2/projects/62f62565-049f-5e7e-bbd2-9de0cf7ddbfe/generations" \
  -H "Authorization: Bearer $DIFFIO_API_KEY" \
  -H "Idempotency-Key: v2docs-g-mwe8tm1g" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "diffio-flash",
    "label": "Take 1"
  }'
```

**Response**

```json
{
  "id": "ce832a32-a1ce-516a-b8bd-75457bd8517f",
  "object": "generation",
  "project_id": "62f62565-049f-5e7e-bbd2-9de0cf7ddbfe",
  "status": "processing",
  "stage": "preparing",
  "stage_progress": null,
  "queue": null,
  "warnings": [],
  "label": "Take 1",
  "kind": "restore",
  "source_generation_id": null,
  "edit": null,
  "transcript_editable": false,
  "duration_seconds": null,
  "quality_score": null,
  "transcription_status": null,
  "files_available": [],
  "error": null,
  "model": "diffio-4.7-flash",
  "requested_model": "diffio-flash",
  "substituted": false,
  "price_per_hour_usd": 5,
  "stems_status": null,
  "created_at": "2026-11-13T00:33:27.117344Z",
  "updated_at": "2026-11-13T00:33:27.999000Z"
}
```

## Review outputs

[![Completed Diffio project: the project title, the restored waveform, the play control, the Restored toggle and the Background amount slider](https://diffio.ai/media/recording-rescue/flash-result-mobile-stack.jpg) Play, switch Original and Restored, set the background](https://diffio.ai/media/recording-rescue/flash-result.jpg) [![Diffio download dialog: Restored speech or Background noise, the file format menu and the Download restored speech button](https://diffio.ai/media/app-captures/download-dialog-choice-crop.jpg) Download restored speech or the background](https://diffio.ai/media/app-captures/download-dialog-choice-crop.jpg)

**A finished project in the Diffio app. Select a screenshot to open it full size.**

1. [Poll generation](https://diffio.ai/docs/api-reference/get-generation/) until `complete`
2. [Get playback grant](https://diffio.ai/docs/api-reference/get-generation-media/) `files.audio`, valid 6 hours
3. [Get transcript](https://diffio.ai/docs/api-reference/get-transcript/) word-timed JSON

**Project pages and API results in detail**

Project pages let you compare original and restored playback, seek through the waveform, view transcript data when available, and reopen prior results from project history.

Through the API, poll [get a generation](https://diffio.ai/docs/api-reference/get-generation/) until `status` is `complete`, then request URLs from [get a playback grant](https://diffio.ai/docs/api-reference/get-generation-media/) and download `files.audio`. Media URLs need no `Authorization` header and remain valid for 6 hours (`expires_at`).

Once `transcription_status` is `ready` on the generation, call [get a generation's transcript](https://diffio.ai/docs/api-reference/get-transcript/) for normalized word-timed JSON, or fetch raw `files.transcript` from the playback grant.

## Audio restoration questions

### Which audio files can I upload?

MP3, WAV, M4A, AAC, FLAC and OGG files, up to 2 GB each, with no length limit through the API. Video files are covered in [video support](https://diffio.ai/docs/overview/capabilities/video-support/).

### Does Diffio restore music?

No. Diffio restores speech. Music and other non-speech sound are not restored; separated tracks keep background sound on its own track. Both models are best in English.

### Should I use Diffio 4.7 Flash or Pro?

Start with Flash (`diffio-4.7-flash` or `diffio-flash`) for fast, high quality restoration. Pro (`diffio-4.7-pro` or `diffio-pro`) does more model work at every step and runs slower; on a difficult recording, run both on the same project and compare. Each generation is billed separately.

### Does a restoration include a transcript?

Yes. Once `transcription_status` is `ready` on the generation, read the normalized word-timed JSON from [get transcript](https://diffio.ai/docs/api-reference/get-transcript/), or fetch the raw `files.transcript` URL from [get a playback grant](https://diffio.ai/docs/api-reference/get-generation-media/).

### How long do download URLs last?

Six hours (until `expires_at`). Each media URL from [get a playback grant](https://diffio.ai/docs/api-reference/get-generation-media/) needs no Authorization header; request a new grant after it expires.
