{
  "openapi": "3.0.1",
  "info": {
    "title": "Remove Silence from Audio & Video: Cut Pauses, Jump Cuts",
    "description": "Remove silence from audio and video file URLs: cuts pauses, returns the cleaned file plus a timeline of every removed and kept range. Tune threshold, minimum pause and padding. mp3, wav, m4a or mp4 out, or detect only. Direct files, no YouTube.",
    "version": "0.1",
    "x-build-id": "ItX55AhyX5bkocdOx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-done-right~audio-silence-remover/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-done-right-audio-silence-remover",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/data-done-right~audio-silence-remover/runs": {
      "post": {
        "operationId": "runs-sync-data-done-right-audio-silence-remover",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/data-done-right~audio-silence-remover/run-sync": {
      "post": {
        "operationId": "run-sync-data-done-right-audio-silence-remover",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mediaUrls": {
            "title": "Audio or video URLs",
            "type": "array",
            "description": "Direct links to audio or video files (mp3, wav, m4a, flac, ogg, mp4, mov, webm, mkv). Example: https://example.com/podcast.mp3. YouTube, Spotify, SoundCloud and other streaming-page links are rejected, with no charge.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "remove",
              "detect"
            ],
            "type": "string",
            "description": "'remove' cuts the pauses out and returns a new file plus the timeline. 'detect' only reports where the silences are (for example to feed your own editor or a transcription job) and is always billed as audio.",
            "default": "remove"
          },
          "thresholdDb": {
            "title": "Silence threshold (dB)",
            "minimum": -90,
            "maximum": -5,
            "type": "number",
            "description": "Sound quieter than this counts as silence. -35 suits clean speech; use -45 or lower for quiet recordings or background noise you want kept, -25 to cut a noisy room. Example: -40.",
            "default": -35
          },
          "minSilenceSeconds": {
            "title": "Minimum pause length (seconds)",
            "minimum": 0.05,
            "maximum": 60,
            "type": "number",
            "description": "Only pauses at least this long are cut. 0.5 removes dead air but keeps natural breaths between sentences; 0.3 gives tight jump cuts. Example: 0.4.",
            "default": 0.5
          },
          "paddingSeconds": {
            "title": "Padding kept around speech (seconds)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "This much of each pause stays on both sides of a cut so words are not clipped. Must be less than half of the minimum pause length. Example: 0.1.",
            "default": 0.15
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "auto",
              "mp3",
              "wav",
              "m4a",
              "mp4"
            ],
            "type": "string",
            "description": "File type of the result. mp4 needs a video file as input. Choosing mp3, wav or m4a for a video file returns the cleaned audio only (billed as audio).",
            "default": "auto"
          },
          "audioBitrateKbps": {
            "title": "Audio bitrate (kbps)",
            "minimum": 64,
            "maximum": 320,
            "type": "integer",
            "description": "MP3, M4A and the audio of MP4 output. 128 is fine for speech, 192 to 320 for music. Ignored for WAV.",
            "default": 160
          },
          "videoCrf": {
            "title": "Video quality (CRF)",
            "minimum": 16,
            "maximum": 35,
            "type": "integer",
            "description": "MP4 output only. Lower = better quality and bigger files: 18 is near-lossless, 23 is the default, 28 is small.",
            "default": 23
          },
          "maxHeight": {
            "title": "Max video height (px)",
            "minimum": 0,
            "maximum": 4320,
            "type": "integer",
            "description": "MP4 output only: shrink video taller than this, keeping the aspect ratio (never upscales). 0 = keep the original size. Example: 720. Smaller video encodes faster.",
            "default": 0
          },
          "includeTimeline": {
            "title": "Include the timeline in each row",
            "type": "boolean",
            "description": "Adds 'silences' (every removed range) and 'keptSegments' (every kept range with its position in the output) to each dataset row. Turn off for long files if you only need the totals.",
            "default": true
          },
          "maxMinutesPerRun": {
            "title": "Max billed minutes per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap on the minutes you can be charged in one run. A file that would exceed it is listed as skipped, free. Example: 600 = 10 hours of media.",
            "default": 600
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 2048,
            "type": "integer",
            "description": "Source files above this size are rejected before the download finishes.",
            "default": 500
          },
          "maxDurationMinutes": {
            "title": "Max file duration (minutes)",
            "minimum": 0.1,
            "type": "number",
            "description": "Longer files are rejected without charge. Example: 240 = 4 hours.",
            "default": 240
          },
          "fileTimeoutSecs": {
            "title": "Timeout (seconds)",
            "minimum": 10,
            "maximum": 7200,
            "type": "integer",
            "description": "Applies separately to the download and to the processing of each file.",
            "default": 1800
          },
          "outputStoreName": {
            "title": "Save results in a named store",
            "type": "string",
            "description": "Optional key-value store name. Named stores are kept until you delete them, while a run's own store expires after your plan's retention period. Example: my-clean-audio."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}