Azure AI Speech Trainingsets API

The Trainingsets API from Azure AI Speech — 3 operation(s) for trainingsets.

GitHub OpenAPI

Operations 5

GET /trainingsets Training sets list #
GET /trainingsets/{id} Training sets get #
PUT /trainingsets/{id} Training sets create #
DELETE /trainingsets/{id} Training sets delete #
POST /trainingsets/{id}:upload Training sets upload data #

Specifications

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/azure-ai-speech:azure-ai-speech-trainingsets-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

azure-ai-speech-trainingsets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Custom voice Trainingsets API
  version: '2026-01-01'
  description: Custom voice API to create and deploy your voice.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
security:
- ApiKeyAuth: []
- OAuth2Auth:
  - https://cognitiveservices.azure.com/.default
tags:
- name: Trainingsets
paths:
  /trainingsets:
    get:
      operationId: TrainingSets_List
      description: Gets a list of training sets for the authenticated Speech service resource.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/CustomListQueryParameters.skip'
      - $ref: '#/components/parameters/CustomListQueryParameters.maxpagesize'
      - $ref: '#/components/parameters/CustomListQueryParameters.filter'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagedTrainingSet'
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        Get all training sets:
          $ref: ./examples/get_trainingsets.json
      x-ms-pageable:
        nextLinkName: nextLink
      tags:
      - Trainingsets
      summary: Training sets list
      x-summary-source: derived
  /trainingsets/{id}:
    get:
      operationId: TrainingSets_Get
      description: Gets the training set identified by the given ID.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: id
        in: path
        description: Resource id
        required: true
        schema:
          type: string
          maxLength: 64
          minLength: 3
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrainingSet'
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        Get a training set:
          $ref: ./examples/get_trainingset.json
      tags:
      - Trainingsets
      summary: Training sets get
      x-summary-source: derived
    put:
      operationId: TrainingSets_Create
      description: Creates a new training set.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: id
        in: path
        description: The ID of the resource.
        required: true
        schema:
          type: string
          maxLength: 64
          minLength: 3
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
      responses:
        '201':
          description: The request has succeeded and a new resource has been created as a result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrainingSet'
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        Create a training set:
          $ref: ./examples/create_trainingset.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrainingSet'
        description: training set definition
        required: true
      tags:
      - Trainingsets
      summary: Training sets create
      x-summary-source: derived
    delete:
      operationId: TrainingSets_Delete
      description: Deletes the training set identified by the given ID.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: id
        in: path
        description: Resource id
        required: true
        schema:
          type: string
          maxLength: 64
          minLength: 3
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
      responses:
        '204':
          description: 'There is no content to send for this request, but the headers may be useful. '
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        Delete a training set:
          $ref: ./examples/delete_trainingset.json
      tags:
      - Trainingsets
      summary: Training sets delete
      x-summary-source: derived
  /trainingsets/{id}:upload:
    post:
      operationId: TrainingSets_UploadData
      description: Uploads data to the specified training set.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/OperationIdHeader'
      - name: id
        in: path
        description: The ID of the resource.
        required: true
        schema:
          type: string
          maxLength: 64
          minLength: 3
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
      responses:
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          headers:
            Operation-Id:
              schema:
                type: string
            Operation-Location:
              schema:
                type: string
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        Upload data to a training set:
          $ref: ./examples/upload_trainingset.json
      x-ms-long-running-operation-options:
        final-state-via: operation-location
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Dataset'
        description: Dataset to be uploaded
        required: true
      tags:
      - Trainingsets
      summary: Training sets upload data
      x-summary-source: derived
components:
  schemas:
    resourceId:
      type: string
      description: Resource ID
      minLength: 3
      maxLength: 64
      pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
    TrainingSet:
      type: object
      description: Training set
      properties:
        id:
          $ref: '#/components/schemas/resourceId'
          description: Resource id
          readOnly: true
        displayName:
          type: string
          description: Training set name
          minLength: 1
        description:
          type: string
          description: Training set description
        locale:
          type: string
          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.'
        voiceKind:
          $ref: '#/components/schemas/VoiceKind'
          description: Voice kind
        properties:
          $ref: '#/components/schemas/TrainingSetProperties'
          description: Training set properties
        projectId:
          $ref: '#/components/schemas/resourceId'
          description: Resource id
        status:
          $ref: '#/components/schemas/Status'
          description: Status of a resource.
        createdDateTime:
          type: string
          format: date-time
          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).'
          readOnly: true
        lastActionDateTime:
          type: string
          format: date-time
          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).'
          readOnly: true
      required:
      - id
      - locale
      - projectId
    Azure.Core.Foundations.InnerError:
      type: object
      description: An object containing more specific information about the error. As per Azure REST API guidelines - https://aka.ms/AzureRestApiGuidelines#handling-errors.
      properties:
        code:
          type: string
          description: One of a server-defined set of error codes.
        innererror:
          $ref: '#/components/schemas/Azure.Core.Foundations.InnerError'
          description: Inner error.
    TrainingSetProperties:
      type: object
      description: Training set properties
      properties:
        utteranceCount:
          type: integer
          format: int32
          description: Utterance count in this training set
        durationInSeconds:
          type: number
          format: double
          description: Total duration of audio in seconds in this training set
        isContextual:
          type: boolean
          description: Indicates whether the training set is composed of contextual data
    PagedTrainingSet:
      type: object
      description: Paged collection of TrainingSet items
      properties:
        value:
          type: array
          description: The TrainingSet items on this page
          items:
            $ref: '#/components/schemas/TrainingSet'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    VoiceKind:
      type: string
      description: Voice kind
      enum:
      - Male
      - Female
      x-ms-enum:
        name: VoiceKind
        modelAsString: true
        values:
        - name: Male
          value: Male
          description: Male
        - name: Female
          value: Female
          description: Female
    Azure.Core.Foundations.Error:
      type: object
      description: The error object.
      properties:
        code:
          type: string
          description: One of a server-defined set of error codes.
        message:
          type: string
          description: A human-readable representation of the error.
        target:
          type: string
          description: The target of the error.
        details:
          type: array
          description: An array of details about specific errors that led to this reported error.
          items:
            $ref: '#/components/schemas/Azure.Core.Foundations.Error'
        innererror:
          $ref: '#/components/schemas/Azure.Core.Foundations.InnerError'
          description: An object containing more specific information than the current object about the error.
      required:
      - code
      - message
    Status:
      type: string
      description: Status of a resource.
      enum:
      - NotStarted
      - Running
      - Succeeded
      - Failed
      - Disabling
      - Disabled
      x-ms-enum:
        name: Status
        modelAsString: true
        values:
        - name: NotStarted
          value: NotStarted
          description: NotStarted
        - name: Running
          value: Running
          description: Running
        - name: Succeeded
          value: Succeeded
          description: Succeeded
        - name: Failed
          value: Failed
          description: Failed
        - name: Disabling
          value: Disabling
          description: Disabling
        - name: Disabled
          value: Disabled
          description: Disabled
    AzureBlobContentSource:
      type: object
      description: 'Azure Blob Storage content. With the examples below, it represents files

        https://contoso.blob.core.windows.net/voicecontainer/jessica/*.wav'
      properties:
        containerUrl:
          type: string
          format: uri
          description: 'Azure Blob Storage container URL with

            [SAS](https://learn.microsoft.com/azure/storage/common/storage-sas-overview).

            Need both read and list permissions.'
        prefix:
          type: string
          description: Blob name prefix.
        extensions:
          type: array
          description: File name extensions.
          items:
            type: string
      required:
      - containerUrl
      - extensions
    Azure.Core.Foundations.ErrorResponse:
      type: object
      description: A response containing error details.
      properties:
        error:
          $ref: '#/components/schemas/Azure.Core.Foundations.Error'
          description: The error object.
      required:
      - error
    DatasetKind:
      type: string
      description: Dataset kind
      enum:
      - AudioAndScript
      - LongAudio
      - AudioOnly
      x-ms-enum:
        name: DatasetKind
        modelAsString: true
        values:
        - name: AudioAndScript
          value: AudioAndScript
          description: AudioAndScript
        - name: LongAudio
          value: LongAudio
          description: LongAudio
        - name: AudioOnly
          value: AudioOnly
          description: AudioOnly
    Dataset:
      type: object
      description: Dataset object
      properties:
        displayName:
          type: string
          description: The name of this dataset.
        description:
          type: string
          description: Optional description of this dataset.
        kind:
          $ref: '#/components/schemas/DatasetKind'
          description: Dataset kind
        processAs:
          $ref: '#/components/schemas/DatasetProcessAs'
          description: 'Dataset processing method. If not specified, the default processing method will

            be used.'
        audios:
          $ref: '#/components/schemas/AzureBlobContentSource'
          description: 'Azure Blob Storage content. With the examples below, it represents files

            https://contoso.blob.core.windows.net/voicecontainer/jessica/*.wav'
        scripts:
          $ref: '#/components/schemas/AzureBlobContentSource'
          description: 'Azure Blob Storage content. With the examples below, it represents files

            https://contoso.blob.core.windows.net/voicecontainer/jessica/*.wav'
      required:
      - kind
      - audios
    DatasetProcessAs:
      type: string
      description: 'Dataset processing method. If not specified, the default processing method will

        be used.'
      enum:
      - Segmented
      - Contextual
      x-ms-enum:
        name: DatasetProcessAs
        modelAsString: true
        values:
        - name: Segmented
          value: Segmented
          description: The default processing mode that works with all supported languages.
        - name: Contextual
          value: Contextual
          description: 'An enhanced mode that retains the audio as a whole to keep the contextual

            information for more natural intonations.'
  parameters:
    OperationIdHeader:
      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
      x-ms-client-name: operationId
      schema:
        type: string
        maxLength: 64
        minLength: 3
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
    CustomListQueryParameters.maxpagesize:
      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
    CustomListQueryParameters.filter:
      name: filter
      in: query
      description: 'Filter condition.

        - **Supported properties:** projectId, createdDateTime, locale, kind

        - **Operators:**

        - eq, ne are supported for all properties.

        - gt, ge, lt, le are supported for createdDateTime.

        - **Example:**

        - ```filter=projectId eq ''Jessica''``` (filter by project ID)

        - ```filter=kind eq ''ProfessionalVoice''``` (filter project by kind)

        - ```filter=locale eq ''en-US''``` (filter training set and model by locale)

        - ```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
    CustomListQueryParameters.skip:
      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
    Azure.Core.Foundations.ApiVersionParameter:
      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
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: Ocp-Apim-Subscription-Key
      in: header
    OAuth2Auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            https://cognitiveservices.azure.com/.default: ''
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
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
    format: uri
    x-ms-skip-url-encoding: true