Diffio 3.5
English only recorded speech
Diffio API
Add cloud batch restoration for recorded speech with an API key and the Diffio SDK. Review the API pricing page, then start with the developer quickstart.
Cloud batch workflow
Use the explicit resource workflow when your backend needs control over each stage. The developer quickstart includes complete Python and Node examples.
Create a project for the recorded-speech file. The SDK uploads the file during project creation.
Create project endpoint Create a generation with the supported model ID diffio-2.
Poll generation progress, or configure webhooks to receive completion and failure events.
Request the completed generation download and save the returned speech audio.
Download endpointDiffio processes uploaded recordings as cloud batch jobs rather than as a real-time streaming API. For supported video inputs, API processing restores the speech soundtrack while the picture and other visuals remain unchanged.
For a compact backend integration, restore_audio performs the same cloud batch workflow in one SDK helper call.
Python SDK, one SDK helper call
restore_audioLoad the API key from the environment and write the returned MP3 bytes to disk.
from dotenv import load_dotenv
from diffio import DiffioClient
import os
# pip install diffio python-dotenv
load_dotenv()
client = DiffioClient(apiKey=os.environ["DIFFIO_API_KEY"])
audio_bytes, info = client.restore_audio(
filePath="amelia_earhart.wav",
model="diffio-2",
onProgress=lambda progress: print(progress.status),
)
if info["error"] or audio_bytes is None:
raise SystemExit(info["error"] or "Restore failed")
with open("amelia_restored.mp3", "wb") as handle:
handle.write(audio_bytes)
Before and after demo
Switch between the source broadcast and a completed Diffio restoration while it plays. Use before-and-after listening on representative recordings to evaluate artifacts and intelligibility for your own integration; results depend on the source.
This is a saved Diffio output from the original API overview demo. It is not labeled as a current-model API run because the historical page did not record its model, settings, or processing date.
Amelia Earhart broadcast comparison not loaded.
Review the current model cards for selection details and API pricing for current rates.
English only recorded speech
Multilingual recorded speech