Silence Removal

Automatically detect and remove overly long silence segments from audio while preserving the desired amount of silence between spoken sections.

Create Task

Basic Information

ItemValue
Request MethodPOST
Request Path/task/audio_silence_remove
Content-Typeapplication/json
AuthenticationRaw API key in the Authorization header

Request Body

ParameterTypeRequiredDefaultDescription
file_idstringYes-Uploaded audio file ID
min_silence_lennumberNo1500Minimum silence duration in milliseconds to be removed
desired_silence_lennumberNo1500Silence duration in milliseconds to preserve between non-silent segments

Request Example

curl -X POST https://api.ai-mcn.tv:10000/task/audio_silence_remove \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_id": "537489015178246",
    "min_silence_len": 1500,
    "desired_silence_len": 500
  }'

Success Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "537489015178247",
    "task_type": "audio_silence_remove",
    "status": "queued"
  }
}

Query Task Result

Basic Information

ItemValue
Request MethodGET
Request Path/task/audio_silence_remove/{task_id}
AuthenticationRaw API key in the Authorization header

Output Result (output_result)

ParameterTypeDescription
file_idstringProcessed audio file ID
download_urlstringDownload path for the processed audio
original_durationnumberOriginal duration in seconds
processed_durationnumberProcessed duration in seconds
removed_silence_countnumberNumber of removed silence segments

Success Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "537489015178247",
    "status": "completed",
    "progress": 100,
    "output_result": {
      "file_id": "537489015178248",
      "download_url": "/download/a1/output_trimmed.mp3",
      "original_duration": 180.5,
      "processed_duration": 120.3,
      "removed_silence_count": 15
    },
    "create_time": "2026-04-05T08:00:00Z",
    "update_time": "2026-04-05T08:00:08Z"
  }
}

Error Codes

Error CodeHTTP StatusDescriptionResolution
6013400Missing file_idPass the file_id field
6004404File not foundVerify the file_id
6502401Authentication failedCheck the Authorization header
6202402Insufficient balanceRecharge in the Dashboard