---
title: "POST /trainingsets/{id}:upload"
method: POST
path: "/trainingsets/{id}:upload"
tags: ["TrainingSet"]
---

# POST /trainingsets/{id}:upload

`POST /trainingsets/{id}:upload`

Uploads data to the specified training set.

## Path parameters

- `id` string, required

## Query parameters

- `api-version` string, required

## Headers

- `Operation-Id` string

## Request body

- Dataset — Dataset object
  - `displayName` string — The name of this dataset.
  - `description` string — Optional description of this dataset.
  - `kind` 'AudioAndScript' | 'LongAudio' | 'AudioOnly', required — Dataset kind
  - `audios` AzureBlobContentSource, required — Azure Blob Storage content. With the examples below, it represents files https://contoso.blob.core.windows.net/voicecontainer/jessica/*.wav
    - `containerUrl` string, url, required — Azure Blob Storage container URL with [SAS](https://learn.microsoft.com/azure/storage/common/storage-sas-overview). Need both read and list permissions.
    - `prefix` string — Blob name prefix.
    - `extensions` string[], required — File name extensions.
  - `scripts` AzureBlobContentSource — Azure Blob Storage content. With the examples below, it represents files https://contoso.blob.core.windows.net/voicecontainer/jessica/*.wav
    - `containerUrl` string, url, required — Azure Blob Storage container URL with [SAS](https://learn.microsoft.com/azure/storage/common/storage-sas-overview). Need both read and list permissions.
    - `prefix` string — Blob name prefix.
    - `extensions` string[], required — File name extensions.

## Response `202`

Accepted

## Other responses

- `default` — An error occurred.

---

[API](https://skmtc.net/azure/apis/cognitiveservices-speech-texttospeech.md) · [All operations](https://skmtc.net/azure/apis/cognitiveservices-speech-texttospeech/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/cognitiveservices-speech-texttospeech/versions/ab0685f3cc0d/schema)
