---
title: "GET /trainingsets"
method: GET
path: "/trainingsets"
tags: ["TrainingSet"]
---

# GET /trainingsets

`GET /trainingsets`

Gets a list of training sets for the authenticated Speech service resource.

## Query parameters

- `skip` integer
- `maxpagesize` integer
- `filter` string
- `api-version` string, required

## Response `200`

Success

- PaginatedTrainingSets — Paginated training set list
  - `value` TrainingSet[], required — Training set list
    - `id` string — Resource id
    - `displayName` string — Training set name
    - `description` string — Training set description
    - `locale` string, required — 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` 'Male' | 'Female' — Voice kind
    - `properties` TrainingSetProperties — Training set properties
      - `utteranceCount` integer — Utterance count in this training set
    - `projectId` string, required — Resource id
    - `status` 'NotStarted' | 'Running' | 'Succeeded' | 'Failed' | 'Disabling' | 'Disabled' — Status of a resource.
    - `createdDateTime` string, date-time — 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).
    - `lastActionDateTime` string, date-time — 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).
  - `nextLink` string, uri — Link to next page.

## Other responses

- `default` — An error occurred.

## Changes

- **2023-12-13** (2023-12-01-preview) `89e3118e5749` — 1 warning
  - the optional response header `x-ms-error-code` removed for the status `default`

[Change history](https://skmtc.dev/azure/apis/cognitiveservices-speech-texttospeech/changes/trainingsets/get.md)

---

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