Microsoft Azure Training Set API

The TrainingSet API from Microsoft Azure, for trainingset.

GitHub OpenAPI
Business capability
Artificial Intelligence Management BC-610.60

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /trainingsets List custom voice training sets · Microsoft Azure Get Trainingsets #
Ask an LLM
“Which training sets exist on my Speech resource for custom voice?”
“Can I page through or filter my custom voice training sets?”
Tell an agent
List my custom voice training sets.
Show training sets matching {filter}, {page_size} per page.
GET /trainingsets/{id} Get a custom voice training set · Microsoft Azure Get Trainingsets Id #
Ask an LLM
“What is the status of a particular custom voice training set?”
“How do I look up a training set's locale and voice kind by its ID?”
Tell an agent
Get training set {id}.
Show the details and status of training set {id}.
DELETE /trainingsets/{id} Delete a custom voice training set · Microsoft Azure Delete Trainingsets Id #
Ask an LLM
“How do I remove a custom voice training set I no longer use?”
“Can I delete a training set and its uploaded recordings?”
Tell an agent destructive · confirm first
Delete training set {id}.
Remove the custom voice training set {id} permanently.
PUT /trainingsets/{id} Create a custom voice training set · Microsoft Azure Put Trainingsets Id #
Ask an LLM
“How do I start a new training set for a custom neural voice project?”
“Which locale and project do I need to give when creating a training set?”
Tell an agent
Create training set {id} in project {project} for locale {locale}.
Make a new training set {id} named {name}.
POST /trainingsets/{id}:upload Upload recordings to a voice training set · Microsoft Azure Post Trainingsets Id:upload #
Ask an LLM
“How do I upload audio files and scripts into a custom voice training set?”
“What kind of data can I add to an existing training set?”
Tell an agent
Upload the audio in {audios} to training set {id} as {kind} data.
Add audio {audios} with scripts {scripts} to training set {id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-trainingset-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-trainingset-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Custom voice Training Set API
  description: Custom voice API to create and deploy your voice.
  contact:
    name: Azure AI - Speech Services
    url: https://learn.microsoft.com/azure/ai-services/speech-service/
  version: 2023-12-01-preview
security:
- subscription_key: []
  AADToken: []
tags:
- name: TrainingSet
paths:
  /trainingsets:
    get:
      tags:
      - TrainingSet
      description: Gets a list of training sets for the authenticated Speech service resource.
      operationId: microsoftAzureTrainingsetsList
      parameters:
      - $ref: '#/components/parameters/QuerySkip'
      - $ref: '#/components/parameters/QueryMaxPageSize'
      - $ref: '#/components/parameters/QueryFilter'
      - $ref: '#/components/parameters/QueryApiVersion'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedTrainingSets'
        default:
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
        itemName: value
      x-ms-examples:
        Get all training sets:
          $ref: ./examples/get_trainingsets.json
      summary: Microsoft Azure Get Trainingsets
  /trainingsets/{id}:
    get:
      tags:
      - TrainingSet
      description: Gets the training set identified by the given ID.
      operationId: microsoftAzureTrainingsetsGet
      parameters:
      - $ref: '#/components/parameters/PathId'
      - $ref: '#/components/parameters/QueryApiVersion'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrainingSet'
        default:
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Get a training set:
          $ref: ./examples/get_trainingset.json
      summary: Microsoft Azure Get Trainingsets Id
    delete:
      tags:
      - TrainingSet
      description: Deletes the training set identified by the given ID.
      operationId: microsoftAzureTrainingsetsDelete
      parameters:
      - $ref: '#/components/parameters/PathId'
      - $ref: '#/components/parameters/QueryApiVersion'
      responses:
        '204':
          description: No Content
        default:
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Delete a training set:
          $ref: ./examples/delete_trainingset.json
      summary: Microsoft Azure Delete Trainingsets Id
    put:
      tags:
      - TrainingSet
      description: Creates a new training set.
      operationId: microsoftAzureTrainingsetsCreate
      parameters:
      - $ref: '#/components/parameters/PathId'
      - $ref: '#/components/parameters/QueryApiVersion'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrainingSet'
        default:
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Create a training set:
          $ref: ./examples/create_trainingset.json
      summary: Microsoft Azure Put Trainingsets Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrainingSet'
        description: training set definition
        required: true
  /trainingsets/{id}:upload:
    post:
      tags:
      - TrainingSet
      description: Uploads data to the specified training set.
      operationId: microsoftAzureTrainingsetsUploaddata
      parameters:
      - $ref: '#/components/parameters/HeaderOperationId'
      - $ref: '#/components/parameters/PathId'
      - $ref: '#/components/parameters/QueryApiVersion'
      responses:
        '202':
          description: Accepted
          headers:
            Operation-Id:
              description: ID of the operation.
              schema:
                type: string
            Operation-Location:
              description: The location of the operation job. Use this URL to monitor operation status.
              schema:
                type: string
                format: uri
        default:
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: operation-location
      x-ms-examples:
        Upload data to a training set:
          $ref: ./examples/upload_trainingset.json
      summary: Microsoft Azure Post Trainingsets Id:upload
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Dataset'
        description: Dataset to be uploaded
        required: true
components:
  schemas:
    AzureBlobContentSource:
      description: Azure Blob Storage content. With the examples below, it represents files https://contoso.blob.core.windows.net/voicecontainer/jessica/*.wav
      type: object
      required:
      - containerUrl
      - extensions
      properties:
        containerUrl:
          description: Azure Blob Storage container URL with [SAS](https://learn.microsoft.com/azure/storage/common/storage-sas-overview). Need both read and list permissions.
          type: string
          format: url
          example: https://contoso.blob.core.windows.net/voicecontainer?mySasToken
        prefix:
          description: Blob name prefix.
          type: string
          example: jessica
        extensions:
          description: File name extensions.
          type: array
          items:
            type: string
            example: .wav
    TrainingSet:
      description: Training set
      required:
      - locale
      - projectId
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ResourceId'
        displayName:
          description: Training set name
          minLength: 1
          type: string
        description:
          description: Training set description
          type: string
        locale:
          description: The locale of the training dataset. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts.
          type: string
          example: en-US
        voiceKind:
          $ref: '#/components/schemas/VoiceKind'
        properties:
          $ref: '#/components/schemas/TrainingSetProperties'
        projectId:
          $ref: '#/components/schemas/ResourceId'
        status:
          $ref: '#/components/schemas/Status'
        createdDateTime:
          description: The timestamp when the object was created. The timestamp is encoded as ISO 8601 date and time format ("YYYY-MM-DDThh:mm:ssZ", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).
          format: date-time
          type: string
          readOnly: true
        lastActionDateTime:
          description: The timestamp when the current status was entered. The timestamp is encoded as ISO 8601 date and time format ("YYYY-MM-DDThh:mm:ssZ", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).
          format: date-time
          type: string
          readOnly: true
    Error:
      description: Top-level error follows Microsoft Azure REST API Guidelines which is available at https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors. This contains an top-level error with error code, message, details, target and an inner error with more descriptive details.
      required:
      - code
      - message
      type: object
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        target:
          description: The source of the error. For example it would be "model" or "model id" in case of invalid model.
          type: string
        message:
          description: Top-level error message.
          type: string
        details:
          description: Additional supportive details regarding the error and/or expected policies.
          type: array
          items:
            $ref: '#/components/schemas/Error'
        innererror:
          $ref: '#/components/schemas/InnerError'
    InnerError:
      description: Inner error follows Microsoft Azure REST API Guidelines which is available at https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors. This contains required properties error code, message and optional properties target, inner error(this can be nested).
      type: object
      properties:
        code:
          description: Detailed error code to help diagnostic.
          type: string
        target:
          description: The source of the error. For example it would be "model" or "model id" in case of invalid model.
          type: string
        message:
          description: Detailed error message.
          type: string
        innererror:
          $ref: '#/components/schemas/InnerError'
    ErrorResponse:
      description: Error response follows Microsoft Azure REST API Guidelines which is available at https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.
      required:
      - error
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
    Dataset:
      description: Dataset object
      required:
      - kind
      - audios
      type: object
      properties:
        displayName:
          description: The name of this dataset.
          type: string
        description:
          description: Optional description of this dataset.
          type: string
        kind:
          $ref: '#/components/schemas/DatasetKind'
        audios:
          $ref: '#/components/schemas/AzureBlobContentSource'
        scripts:
          $ref: '#/components/schemas/AzureBlobContentSource'
    Status:
      description: Status of a resource.
      enum:
      - NotStarted
      - Running
      - Succeeded
      - Failed
      - Disabling
      - Disabled
      type: string
      x-ms-enum:
        name: Status
        modelAsString: true
    PaginatedTrainingSets:
      description: Paginated training set list
      required:
      - value
      type: object
      properties:
        value:
          description: Training set list
          type: array
          items:
            $ref: '#/components/schemas/TrainingSet'
        nextLink:
          description: Link to next page.
          format: uri
          type: string
    VoiceKind:
      description: Voice kind
      enum:
      - Male
      - Female
      type: string
      x-ms-enum:
        name: VoiceKind
        modelAsString: true
    ErrorCode:
      description: Top-level error code
      enum:
      - BadRequest
      - BadArgument
      - Unauthorized
      - Forbidden
      - NotFound
      - UnsupportedMediaType
      - TooManyRequests
      - InternalServerError
      - ServiceUnavailable
      type: string
      x-ms-enum:
        name: ErrorCode
        modelAsString: true
    TrainingSetProperties:
      description: Training set properties
      type: object
      properties:
        utteranceCount:
          description: Utterance count in this training set
          format: int32
          type: integer
      readOnly: true
    DatasetKind:
      description: Dataset kind
      enum:
      - AudioAndScript
      - LongAudio
      - AudioOnly
      type: string
      x-ms-enum:
        name: DatasetKind
        modelAsString: true
    ResourceId:
      description: Resource id
      type: string
      pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
      minLength: 3
      maxLength: 64
  parameters:
    QueryApiVersion:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: apiVersion
      schema:
        type: string
        minLength: 1
    QuerySkip:
      name: skip
      in: query
      description: The number of result items to skip.
      required: false
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
        default: 0
    HeaderOperationId:
      name: Operation-Id
      in: header
      description: 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.
      required: false
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 64
        minLength: 3
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
    QueryFilter:
      name: filter
      in: query
      description: "Filter condition.\n  - **Supported properties:** projectId, createdDateTime, locale, kind\n  - **Operators:**\n    - eq, ne are supported for all properties.\n    - gt, ge, lt, le are supported for createdDateTime.\n  - **Example:**\n    - ```filter=projectId eq 'Jessica'``` (filter by project ID)\n    - ```filter=kind eq 'ProfessionalVoice'``` (filter project by kind)\n    - ```filter=locale eq 'en-US'``` (filter training set and model by locale)\n    - ```filter=createdDateTime gt 2022-12-30T23:59:59.99Z``` (filter resource created time after 2023-11-01)"
      required: false
      x-ms-parameter-location: method
      schema:
        type: string
    PathId:
      name: id
      in: path
      description: The ID of the resource.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 64
        minLength: 3
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
    QueryMaxPageSize:
      name: maxpagesize
      in: query
      description: The maximum number of items to include in a single response.
      required: false
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
        default: 100
  securitySchemes:
    subscription_key:
      type: apiKey
      name: Ocp-Apim-Subscription-Key
      in: header
      description: Provide your Speech resource key here.
    AADToken:
      type: oauth2
      flows:
        implicit:
          scopes:
            https://cognitiveservices.azure.com/.default: https://cognitiveservices.azure.com/.default
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: These are the [Microsoft identity platform](entra/identity-platform/v2-overview) flows.
x-ms-parameterized-host:
  hostTemplate: '{endpoint}/customvoice'
  useSchemePrefix: false
  parameters:
  - name: endpoint
    in: path
    description: 'Supported Cognitive Services endpoints (protocol and hostname, for example: https://eastus.api.cognitive.microsoft.com).'
    required: true
    type: string