# Get TTS Voices

Get a list of available TTS voices supported by the Voice applications.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "TTS API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.cm.com"
    }
  ],
  "paths": {
    "/voice-tts/v1/voices": {
      "get": {
        "tags": [
          "Voices"
        ],
        "summary": "Get TTS Voices",
        "description": "Get a list of available TTS voices supported by the Voice applications.",
        "parameters": [
          {
            "name": "IsPremium",
            "in": "query",
            "description": "Whether only premium or non-premium voices should be returned. If left empty, both premium and non premium voices\r\nwill be returned.",
            "schema": {
              "type": "boolean",
              "example": true
            },
            "example": true
          },
          {
            "name": "Language",
            "in": "query",
            "description": "ISO-639 language code and ISO-3166 country code combination to filter the voices on. It's also possible to only\r\nfilter on languages independent of countries by only supplying the ISO-639 code (e.g. `en`).",
            "schema": {
              "type": "string",
              "example": "en-US"
            },
            "example": "en-US"
          },
          {
            "name": "Gender",
            "in": "query",
            "description": "Gender to filter on.",
            "schema": {
              "$ref": "#/components/schemas/ApiGender"
            },
            "example": "Female"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiTtsVoice"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiTtsVoice"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiTtsVoice"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiGender": {
        "title": "Gender",
        "enum": [
          "Male",
          "Female"
        ],
        "type": "string",
        "description": "Available genders for TTS voices."
      },
      "ApiTtsVoice": {
        "title": "Tts Voice",
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "description": "ISO-639 language code and ISO-3166 country code.",
            "nullable": true,
            "example": "en-GB"
          },
          "gender": {
            "$ref": "#/components/schemas/ApiGender"
          },
          "voiceNumber": {
            "type": "integer",
            "description": "The voice number, used to indentify this voice.",
            "format": "int32",
            "example": 2
          },
          "name": {
            "type": "string",
            "description": "The display name of the current TTS voice.",
            "nullable": true,
            "example": "Amy"
          },
          "isPremium": {
            "type": "boolean",
            "description": "Whether or not this is a premium TTS voice, meaning extra surcharges will be invoices for it's use.",
            "example": true
          }
        },
        "additionalProperties": false,
        "description": "Model describing a TTS voice that's supported by the Voice TTS server."
      }
    },
    "securitySchemes": {
      "X-CM-PRODUCTTOKEN": {
        "type": "apiKey",
        "description": "Your producttoken",
        "name": "X-CM-PRODUCTTOKEN",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "X-CM-PRODUCTTOKEN": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 244,
      "2": 4,
      "3": 159,
      "4": 169,
      "5": 184,
      "6": 53,
      "7": 0,
      "8": 16,
      "9": 57,
      "10": 76,
      "11": 129
    }
  }
}
```