---
agentTools:
  projectIndex: https://uberduck.readme.io/llms.txt
---

# Add Reference Audio

Submit reference audio.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Uberduck Text To Speech API",
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://api.uberduck.ai"
    },
    {
      "url": "http://localhost:8003"
    }
  ],
  "paths": {
    "/reference-audio": {
      "post": {
        "summary": "Add Reference Audio",
        "description": "Submit reference audio.",
        "operationId": "add_reference_audio_reference_audio_post",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_add_reference_audio_reference_audio_post"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddReferenceAudioResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBasic": []
          },
          {
            "HTTPBearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AddReferenceAudioResponse": {
        "title": "AddReferenceAudioResponse",
        "required": [
          "uuid"
        ],
        "type": "object",
        "properties": {
          "uuid": {
            "title": "Uuid",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "transcription": {
            "title": "Transcription",
            "type": "string"
          }
        }
      },
      "Body_add_reference_audio_reference_audio_post": {
        "title": "Body_add_reference_audio_reference_audio_post",
        "type": "object",
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "reference_audio": {
            "title": "Reference Audio",
            "type": "string",
            "format": "binary"
          },
          "transcription": {
            "title": "Transcription",
            "type": "string"
          },
          "is_private": {
            "title": "Is Private",
            "type": "boolean",
            "default": false
          },
          "save": {
            "title": "Save",
            "type": "boolean",
            "default": false
          },
          "transcribe": {
            "title": "Transcribe",
            "type": "boolean",
            "default": false
          }
        }
      },
      "HTTPValidationError": {
        "title": "HTTPValidationError",
        "type": "object",
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "ValidationError": {
        "title": "ValidationError",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "type": "object",
        "properties": {
          "loc": {
            "title": "Location",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "HTTPBasic": {
        "type": "http",
        "scheme": "basic"
      },
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 90,
      "2": 123,
      "3": 202,
      "4": 119,
      "5": 115,
      "6": 54,
      "7": 49,
      "8": 97,
      "9": 213,
      "10": 116,
      "11": 44
    }
  }
}
```