Skip to content

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

Elapsed time 0:00 of 0:16

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

Problems it fixes

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 formatsMP3, WAV, M4A, AAC, FLAC and OGG. Video uploads are covered in video support.
File sizeUp 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.
LengthThe API enforces no media duration limit.
MeteringAPI 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

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 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.

  1. RequestPOST /v2/projects/{project_id}/generationsmodel · Idempotency-Key
  2. Responsestatus: "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",
)

Review outputs

A finished project in the Diffio app. Select a screenshot to open it full size.
  1. Poll generationuntil complete
  2. Get playback grantfiles.audio, valid 6 hours
  3. 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.

Report an issue with this page