AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Automate Batch Podcast Cleanup and Export DAW Markers with Cleanvoice API v2

平沼慧一 · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Manual audio editing in podcast production studios and high-volume hosting platforms is a crippling engineering bottleneck. When content operations scale from a handful of weekly shows to hundreds of daily user-submitted recordings, dragging and dropping files into a web browser dashboard is untenable. Audio engineers face a dual challenge: they need high-throughput automated cleanup for filler words, lip smacks, and ambient hiss, but they cannot afford the destructive artifacts of "black-box" AI cutting that accidentally chops intentional pauses or word endings.

At 365Finds, our operational verdict is unequivocal: Enterprise media pipelines should never deploy destructive auto-cutting directly to published master feeds without editorial review. The optimal architectural pattern couples the Cleanvoice REST API v2 with non-destructive timeline markers. By passing export_timestamps: true or muted: true, engineering teams can run automated batch processing across raw audio in cloud object storage, generate cleaned reference tracks, and export precision marker files (EDL, CSV, and XML) directly into digital audio workstations (DAWs) like Adobe Premiere Pro, Adobe Audition, and REAPER. This hybrid pipeline reduces human editing time by over 75% while keeping full creative control in the hands of audio engineers.


1. Cleanvoice REST API v2 Architectural Lifecycle

The Cleanvoice v2 REST API is built on an asynchronous, decoupled task model designed for long-running audio transformations. An audio file ranging from a 2-minute snippet to a 2-hour interview requires anywhere from 30 seconds to several minutes of neural processing across acoustic and linguistic models.

+-----------------------------------------------------------------------------------+
|                            Audio Pipeline Architecture                            |
+-----------------------------------------------------------------------------------+
  [Raw Audio Ingest] (S3 / GCS / Local Bucket)
          |
          v
  [Cleanvoice v2 API] ---- POST /v2/edits (API Key + Surgical Config)
          |
          +---> Status Polling Loop / Webhook (GET /v2/edits/{id})
          |       |
          |       +--> PENDING -> PREPROCESSING -> CLASSIFICATION ->
          |            EDITING -> POSTPROCESSING -> EXPORT -> SUCCESS
          v
  [Pipeline Ingestion & Storage]
          +---> Cleaned Audio Track (Direct S3 upload via pre-signed PUT)
          +---> Non-Destructive Timeline Markers (EDL / JSON / CSV)
          |
          v
  [DAW Timeline Alignment] (Premiere Pro / Audition / REAPER)
          |
          +---> Markers highlight AI-detected cuts & filler words
          +---> Sound engineer conducts 5-minute quality audit & master render

Core Authentication & Endpoints

All requests require HTTP Header authentication via X-API-Key (or standard Authorization: Bearer <API_KEY>):


2. Payload Construction: Surgical Audio Cleaning & Timeline Flags

When building automated pipelines, avoiding aggressive over-processing is essential. Cleanvoice v2 provides fine-grained flags inside the config payload object. Passing flat boolean and string options allows you to separate linguistic cuts (filler words, stutters) from acoustic enhancements (noise reduction, volume leveling).

Production Payload Specification

{
  "input": {
    "files": [
      "https://storage.myproduction.com/raw-podcasts/2026-ep142-guest.wav"
    ],
    "config": {
      "fillers": true,
      "mouth_sounds": true,
      "stutters": true,
      "breath": "legacy",
      "long_silences": true,
      "hesitations": true,
      "remove_noise": true,
      "normalize": true,
      "target_lufs": -16,
      "export_timestamps": true,
      "muted": false,
      "export_format": "wav",
      "signed_url": "https://storage.myproduction.com/cleaned/2026-ep142-guest-cleaned.wav?X-Amz-Signature=..."
    }
  }
}

Critical Feature Breakdown

ParameterTypeDefault365Finds Recommendation & Operational Impact
fillersbooleanfalseSet to true for unscripted podcasts. Clears language-specific "um", "uh", "like", and "you know" across 20+ languages.
mouth_soundsbooleanfalseSet to true. Removes micro-clicks, lip smacks, and saliva clicks without dulling high vocal frequencies.
stuttersbooleanfalseSet to true. Trims false starts and syllable repetitions while preserving phrase rhythm.
breathboolean | stringfalseUse "legacy" for clean condenser mic studio recordings to avoid artifacting; use true for phone or untreated room audio.
long_silencesbooleanfalseSet to true. Trims unnatural dead air while retaining natural conversational cadence.
remove_noiseboolean | stringtruetrue activates Noise v2. Eliminates HVAC hum, fan noise, and steady room rumble without phase distortion.
normalizebooleanfalseSet to true. Normalizes overall integrated loudness; defaults to -16 LUFS (the broadcast standard for podcast feeds).
export_timestampsbooleanfalseCrucial for NLE/DAW integration. When true, Cleanvoice compiles edit decision timestamps and marker data into result.timestamps_markers_urls.
mutedbooleanfalseWhen set to true, Cleanvoice mutes detected problem sections instead of cutting audio slices. This preserves 100% of the original track duration, preventing multi-track timeline drift.
signed_urlstringnullPre-signed cloud storage PUT URL. Cleanvoice streams the cleaned output directly to your Amazon S3 or Google Cloud Storage bucket, bypassing intermediary server egress.

3. High-Throughput Batch Processing & Asynchronous Scheduling

In enterprise podcast infrastructure, two common integration mistakes derail scalability:

  1. The Multi-Track Confusion: Passing multiple unrelated audio files into input.files triggers multi-track alignment and bleed cancellation algorithms intended for multiple mics in a single room. For batch processing separate podcast episodes, submit one distinct POST /v2/edits request per file.
  2. Aggressive Polling & Rate Limiting: The Cleanvoice API enforces rate limiting (HTTP 429 with error code E9001). Submitting hundreds of jobs simultaneously and immediately polling every second will saturate the worker pool.

Architectural Best Practice: Queue-Worker Pattern

Deploy a lightweight worker using Python (asyncio or Celery) or Node.js (BullMQ). The ingest worker submits edit tasks, collects job IDs, waits an initial 30 seconds (short files often finish within half a minute), and then executes an exponential backoff polling routine capped at 10 to 30-second intervals.

Automated Batch Ingest & Polling Script (Python)

import os
import time
import requests
from typing import Dict, Any, List

CLEANVOICE_API_KEY = os.environ.get("CLEANVOICE_API_KEY")
BASE_URL = "https://api.cleanvoice.ai/v2"

HEADERS = {
    "X-API-Key": CLEANVOICE_API_KEY,
    "Content-Type": "application/json"
}

def submit_podcast_job(audio_url: str, output_storage_put_url: str) -> str:
    """Submits a single podcast cleanup job to Cleanvoice v2."""
    payload = {
        "input": {
            "files": [audio_url],
            "config": {
                "fillers": True,
                "mouth_sounds": True,
                "stutters": True,
                "breath": "legacy",
                "long_silences": True,
                "remove_noise": True,
                "normalize": True,
                "target_lufs": -16,
                "export_timestamps": True,
                "export_format": "wav",
                "signed_url": output_storage_put_url
            }
        }
    }
    
    response = requests.post(f"{BASE_URL}/edits", json=payload, headers=HEADERS)
    response.raise_for_status()
    data = response.json()
    return data["id"]

def poll_edit_result(edit_id: str, initial_delay: int = 30, max_timeout: int = 1200) -> Dict[str, Any]:
    """Polls Cleanvoice API with exponential backoff until task completion."""
    time.sleep(initial_delay)
    start_time = time.time()
    delay = 10

    while time.time() - start_time < max_timeout:
        resp = requests.get(f"{BASE_URL}/edits/{edit_id}", headers=HEADERS)
        
        if resp.status_code == 429:
            # Handle rate limit E9001
            time.sleep(delay)
            delay = min(delay * 1.5, 30)
            continue
            
        resp.raise_for_status()
        body = resp.json()
        status = body.get("status")

        if status == "SUCCESS":
            return body.get("result", {})
        elif status in ["FAILURE", "RETRY"]:
            raise RuntimeError(f"Edit {edit_id} terminated with status: {status}")
        
        # In-flight statuses: PENDING, PREPROCESSING, CLASSIFICATION, EDITING, POSTPROCESSING, EXPORT
        time.sleep(delay)
        delay = min(delay * 1.2, 25)
        
    raise TimeoutError(f"Job {edit_id} timed out after {max_timeout} seconds.")

# Example Batch Execution Workflow
if __name__ == "__main__":
    episodes = [
        {"id": "ep101", "src": "https://pub-storage.internal/audio/ep101.wav", "dst": "https://pub-storage.internal/cleaned/ep101.wav?sig=xxx"},
        {"id": "ep102", "src": "https://pub-storage.internal/audio/ep102.wav", "dst": "https://pub-storage.internal/cleaned/ep102.wav?sig=yyy"},
    ]
    
    active_tasks = {}
    for ep in episodes:
        job_id = submit_podcast_job(ep["src"], ep["dst"])
        active_tasks[ep["id"]] = job_id
        print(f"Dispatched episode {ep['id']} -> Cleanvoice Job {job_id}")

    for ep_id, jid in active_tasks.items():
        result = poll_edit_result(jid)
        markers = result.get("timestamps_markers_urls", [])
        print(f"Episode {ep_id} Cleaned Successfully. Timeline Markers: {markers}")

4. Exporting and Ingesting Non-Destructive Timeline Markers

The centerpiece of a professional broadcast setup is non-destructive validation. When export_timestamps: true is configured, Cleanvoice returns granular decision timestamps mapping the start time, end time, classification label (FILLER_SOUND, STUTTER, MOUTH_CLICK, SILENCE), and confidence metrics.

Depending on your pipeline, Cleanvoice delivers ready-to-import timeline files or raw JSON timestamp arrays accessible via result.timestamps_markers_urls:

DAW Integration Workflows

  1. Adobe Premiere Pro & Adobe Audition:
    • Download the generated .EDL (Edit Decision List) or XML sequence file.
    • In Premiere Pro, choose File > Import and select the .EDL or .XML marker file.
    • Markers immediately populate on the sequence timecode with colored cue flags identifying every modified region. Audio engineers can press Shift + M to jump between AI-flagged cuts, verifying pronunciation before rendering the final mix.
  2. Cockos REAPER:
    • Cleanvoice provides CSV or standard marker formats directly compatible with the REAPER Region/Marker Manager.
    • By navigating to View > Region/Marker Manager > Options > Import Markers/Regions, the audio technician superimposes the cuts onto the multi-track session.
    • If "muted": true was passed, the raw audio file remains perfectly aligned with guest remote tracks, while REAPER's mute envelope highlights every suppressed mouth click or hesitation.
  3. DaVinci Resolve Fairlight:
    • In the Fairlight audio workspace, import the timeline EDL markers onto your audio tracks. Fairlight instantly flags audio edits as timeline markers with associated label metadata.

5. Production Optimization & Pitfalls to Avoid

By coupling Cleanvoice REST API v2 batch scheduling with non-destructive marker export, engineering teams turn an unwieldy manual editing process into an automated, fault-tolerant assembly line that protects both acoustic quality and human editorial standards.


References