TrainingSet

Uploads data to the specified training set.

post/trainingsets/{id}:upload

Path parameters

idstring required

The ID of the resource.

Query parameters

api-versionstring required

The API version to use for this operation.

Headers

Operation-Idstring

ID of the status monitor for the operation. If the Operation-Id header matches an existing operation and the request is not identical to the prior request, it will fail with a 400 Bad Request.

Request body

displayNamestring

The name of this dataset.

descriptionstring

Optional description of this dataset.

kind'AudioAndScript' | 'LongAudio' | 'AudioOnly' required

Dataset kind

Example request

{
  "audios": {
    "containerUrl": "https://contoso.blob.core.windows.net/voicecontainer?mySasToken",
    "prefix": "jessica",
    "extensions": [
      ".wav"
    ]
  },
  "scripts": {
    "containerUrl": "https://contoso.blob.core.windows.net/voicecontainer?mySasToken",
    "prefix": "jessica",
    "extensions": [
      ".wav"
    ]
  }
}

Response

Accepted

Changes

Changed in 1 of the 6 revisions of this API.1

  • 2023-12-01-preview89e3118e57491See the full diff
    • the optional response header x-ms-error-code removed for the status default

      optional-response-header-removed