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

# Create Audio Clip

> Uploads a WAV file as a new audio clip



## OpenAPI

````yaml post /api/audio_clips
openapi: 3.0.3
info:
  title: Ultravox
  version: 0.1.0
  description: API for the Ultravox service.
servers:
  - url: https://api.ultravox.ai
security: []
paths:
  /api/audio_clips:
    post:
      tags:
        - audio_clips
      description: >-
        Create a new audio clip from a WAV file. The created clip will be
        private to your account.
      operationId: audio_clips_create
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: >-
                    A mono 16-bit PCM WAV file with a sample rate between 16kHz
                    and 48kHz containing at most 60 seconds of audio.
                name:
                  type: string
                  description: Name for the audio clip. Must be unique within your account.
                  example: my_office
                description:
                  type: string
                  description: Optional description for the audio clip.
                  example: Background chatter recorded in our office
              required:
                - file
                - name
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioClip'
          description: ''
      security:
        - apiKeyAuth: []
components:
  schemas:
    AudioClip:
      type: object
      properties:
        audioClipId:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 64
        description:
          type: string
          nullable: true
          maxLength: 240
        created:
          type: string
          format: date-time
          readOnly: true
        duration:
          type: string
          readOnly: true
          description: The duration of the audio.
        sampleRate:
          type: integer
          readOnly: true
          description: The sample rate of the audio in Hz.
        sizeBytes:
          type: integer
          readOnly: true
          description: The size of the audio file in bytes.
        ownership:
          allOf:
            - $ref: '#/components/schemas/OwnershipEnum'
          readOnly: true
      required:
        - audioClipId
        - created
        - duration
        - name
        - ownership
        - sampleRate
        - sizeBytes
    OwnershipEnum:
      enum:
        - public
        - private
      type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.