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

# Transcribe Audio

> Transcribe audio into text with word-level timestamps. Pass one or more audio file URLs in `audio_urls`. Returns the full transcript and an array of timed segments.



## OpenAPI

````yaml api-reference/openapi/content.json POST /api/content/transcribe
openapi: 3.1.0
info:
  title: Recoup API - Content
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.recoupable.dev
security: []
paths:
  /api/content/transcribe:
    post:
      description: >-
        Transcribe audio into text with word-level timestamps. Pass one or more
        audio file URLs in `audio_urls`. Returns the full transcript and an
        array of timed segments.
      requestBody:
        description: Audio transcription parameters
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentCreateAudioRequest'
      responses:
        '200':
          description: Song transcribed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentCreateAudioResponse'
        '400':
          description: Validation failed — invalid or missing request body fields
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentErrorResponse'
        '401':
          description: Unauthorized — invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentErrorResponse'
      security:
        - apiKeyAuth: []
        - bearerAuth: []
components:
  schemas:
    ContentCreateAudioRequest:
      type: object
      required:
        - audio_urls
      properties:
        audio_urls:
          type: array
          items:
            type: string
            format: uri
          minItems: 1
          description: Audio file URLs to transcribe
        language:
          type: string
          default: en
          description: Language code for transcription (e.g. en, es, fr). Defaults to en.
        chunk_level:
          type: string
          enum:
            - none
            - segment
            - word
          default: word
          description: Granularity of timestamp chunks. Defaults to word-level.
        diarize:
          type: boolean
          default: false
          description: Enable speaker diarization. Defaults to false.
        model:
          type: string
          description: fal.ai model ID. Defaults to fal-ai/whisper
    ContentCreateAudioResponse:
      type: object
      required:
        - audioUrl
        - fullLyrics
        - segments
        - segmentCount
      properties:
        audioUrl:
          type: string
          description: URL of the transcribed audio
        fullLyrics:
          type: string
          description: Complete transcribed lyrics as a single string
        segments:
          type: array
          items:
            $ref: '#/components/schemas/ContentCreateAudioSegment'
          description: Timestamped lyric segments
        segmentCount:
          type: number
          description: Total number of segments returned
    ContentErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
          example: Unauthorized
    ContentCreateAudioSegment:
      type: object
      required:
        - start
        - end
        - text
      properties:
        start:
          type: number
          description: Segment start time in seconds
        end:
          type: number
          description: Segment end time in seconds
        text:
          type: string
          description: Transcribed text for this segment
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).
    bearerAuth:
      type: http
      scheme: bearer

````