> ## Documentation Index
> Fetch the complete documentation index at: https://api.finevoice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Long Silences

> Detect and trim silence segments exceeding a threshold duration while preserving boundary silence to avoid abrupt cuts.



## OpenAPI

````yaml POST /v1/enhancer/remove_long_silences
openapi: 3.0.1
info:
  title: FineVoice API
  description: >-
    This is the documentation for the FineVoice API. If you have any questions
    or need assistance, please contact support@finevoice.ai.
  version: v1
servers:
  - url: https://apis.finevoice.ai
    description: FineVoice API Gateway
security:
  - BearerAuth: []
paths:
  /v1/enhancer/remove_long_silences:
    post:
      tags:
        - Audio Enhancer
      summary: Remove Long Silences
      description: >-
        Detect and trim silence segments exceeding a threshold duration while
        preserving boundary silence to avoid abrupt cuts.
      operationId: RemoveLongSilences
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveLongSilencesRequest'
      responses:
        '200':
          description: Processed audio returned.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Unauthorized — invalid or missing API key.
        '422':
          description: Validation error — check request body fields.
components:
  schemas:
    RemoveLongSilencesRequest:
      type: object
      description: The remove long silences request payload.
      properties:
        url:
          type: string
          description: Audio URL (http/https).
          example: https://example.com/audio.mp3
        silence_threshold_db:
          type: number
          description: Silence detection threshold in dBFS.
          default: -42
        long_silence_ms:
          type: integer
          description: Silences longer than this value (ms) are trimmed.
          default: 1200
        keep_silence_ms:
          type: integer
          description: Silence padding to preserve at boundaries (ms).
          default: 180
        output_format:
          type: string
          description: 'Output format: `wav`, `mp3`, `flac`, or `m4a`.'
          default: wav
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Bearer token (API key). Format: `Bearer {your_api_key}`'

````