For AI agents: every API docs page in one plain-text file is at /docs/llms-full.txt, and the documentation index is at /llms.txt. This page is available as Markdown at https://diffio.ai/docs/overview/capabilities/audio-restoration.md, and every docs URL returns Markdown when requested with Accept: text/markdown.

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. Every version plays at matched loudness. Source and license.
Hear more:A full before-and-after exampleRestoring old speech recordingsHow Diffio 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
Problems it fixes
- Background noise: traffic, wind, crowds, hum, hiss
- Echo and reverb: far microphones, hard empty rooms
- Distortion and clipping: too loud, peaks cut off
- Poor microphones and low bandwidth: 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. |
|---|---|
| File size | Up to 2 GB (2,147,483,648 bytes) per file. Larger files are refused by create a project or complete 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. |
Model fit
- Diffio 4.7 FlashAbout 30× real time · every plan · high volume work
- Diffio 4.7 ProAbout 10× real time · paid plans · difficult recordings
Which model to choose
- Diffio 4.7 Flash (
diffio-4.7-flashordiffio-flash): fast, high quality speech restoration and high volume work where turnaround time matters. - Diffio 4.7 Pro (
diffio-4.7-proordiffio-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 compares them in detail.
API example: start a restoration
After the upload is ready (see the quickstart), one request starts a Flash restoration; pass diffio-pro or diffio-4.7-pro for Pro.
- Request
POST /v2/projects/{project_id}/generationsmodel · Idempotency-Key - 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
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",
){
"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
- Poll generationuntil
complete - Get playback grant
files.audio, valid 6 hours - Get transcriptword-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 until status is complete, then request URLs from get a playback grant 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 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.
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, or fetch the raw files.transcript URL from get a playback grant.
How long do download URLs last?
Six hours (until expires_at). Each media URL from get a playback grant needs no Authorization header; request a new grant after it expires.

