> ## Documentation Index
> Fetch the complete documentation index at: https://easy-peasy.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get TTS Voices

> Retrieve a list of available voices for text-to-speech generation.

Returns all predefined voices (ElevenLabs and OpenAI) and optionally the user's custom cloned voices.

**Filtering:**
- Filter by language using the `language` query parameter
- Filter by accent using the `accent` query parameter
- Filter ready-made voices by `gender`, `age` and `use_case` (values from `/api/get-text-to-speech-config`)
- Filters can be combined

**Authentication:**
- Optional: Endpoint works without authentication for public voices
- Required for custom voices: Include `x-api-key` header



## OpenAPI

````yaml GET /api/get-text-to-speech-voices
openapi: 3.0.1
info:
  title: Easy-Peasy.AI API
  description: >-
    API for Easy-Peasy.AI text, image, video, audio, and chat features.
    Authenticate with an API key from https://easy-peasy.ai/settings/api.
    Individual endpoints document public access and alternative authentication
    methods.
  version: 1.0.5
servers:
  - url: https://easy-peasy.ai
security:
  - apiKeyAuth: []
paths:
  /api/get-text-to-speech-voices:
    get:
      summary: Get TTS Voices
      description: >-
        Retrieve a list of available voices for text-to-speech generation.


        Returns all predefined voices (ElevenLabs and OpenAI) and optionally the
        user's custom cloned voices.


        **Filtering:**

        - Filter by language using the `language` query parameter

        - Filter by accent using the `accent` query parameter

        - Filter ready-made voices by `gender`, `age` and `use_case` (values
        from `/api/get-text-to-speech-config`)

        - Filters can be combined


        **Authentication:**

        - Optional: Endpoint works without authentication for public voices

        - Required for custom voices: Include `x-api-key` header
      operationId: getTTSVoices
      parameters:
        - name: language
          in: query
          required: false
          schema:
            type: string
          description: Filter voices by language (e.g., "English", "Spanish", "French")
          example: English
        - name: accent
          in: query
          required: false
          schema:
            type: string
          description: Filter voices by accent (e.g., "American", "British", "Australian")
          example: American
        - name: gender
          in: query
          required: false
          schema:
            type: string
            enum:
              - female
              - male
              - neutral
          description: Filter ready-made voices by gender
          example: female
        - name: age
          in: query
          required: false
          schema:
            type: string
            enum:
              - young
              - middle_aged
              - old
          description: Filter ready-made voices by age
          example: young
        - name: use_case
          in: query
          required: false
          schema:
            type: string
            enum:
              - conversational
              - narrative_story
              - informative_educational
              - social_media
              - characters_animation
              - entertainment_tv
              - advertisement
          description: Filter ready-made voices by what they are made for
          example: conversational
        - name: include_custom
          in: query
          required: false
          schema:
            type: boolean
            default: true
          description: >-
            Include user's custom cloned voices in the response (requires
            authentication)
          example: true
      responses:
        '200':
          description: Successfully retrieved voices
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoicesResponse'
              examples:
                all-voices:
                  summary: All voices without filters
                  value:
                    voices:
                      - id: 21m00Tcm4TlvDq8ikWAM
                        name: Rachel
                        description: calm
                        image: https://media.easy-peasy.ai/voices/rachel.png
                        language: English
                        accent: American
                        gender: female
                        age: young
                        use_case: narrative_story
                        tone: calm
                      - id: alloy
                        name: Alloy
                        description: A neutral, balanced voice
                        image: https://media.easy-peasy.ai/voices/alloy.png
                        language: English
                        gender: neutral
                        age: null
                        use_case: null
                        tone: null
                    total: 2
                    filters:
                      language: null
                      accent: null
                      gender: null
                      age: null
                      use_case: null
                    available:
                      languages:
                        - English
                        - Spanish
                        - French
                        - German
                      accents:
                        - American
                        - British
                        - Australian
                filtered-voices:
                  summary: Filtered by language
                  value:
                    voices:
                      - id: 21m00Tcm4TlvDq8ikWAM
                        name: Rachel
                        description: calm
                        image: https://media.easy-peasy.ai/voices/rachel.png
                        language: English
                        accent: American
                        gender: female
                        age: young
                        use_case: narrative_story
                        tone: calm
                    total: 1
                    filters:
                      language: English
                      accent: null
                      gender: null
                      age: null
                      use_case: null
                    available:
                      languages:
                        - English
                      accents:
                        - American
                        - British
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Your account is blocked. Please contact support.
        '405':
          description: Method not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Method not allowed
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Server error. Please try again.
      security:
        - {}
        - apiKeyAuth: []
components:
  schemas:
    VoicesResponse:
      type: object
      required:
        - voices
        - total
        - filters
        - available
      properties:
        voices:
          type: array
          items:
            $ref: '#/components/schemas/Voice'
          description: Array of voice objects
        total:
          type: integer
          description: Total number of voices returned
          example: 50
        filters:
          type: object
          properties:
            language:
              type: string
              nullable: true
              description: Applied language filter
              example: English
            accent:
              type: string
              nullable: true
              description: Applied accent filter
              example: American
            gender:
              type: string
              nullable: true
              description: Applied gender filter
              example: female
            age:
              type: string
              nullable: true
              description: Applied age filter
              example: young
            use_case:
              type: string
              nullable: true
              description: Applied use case filter
              example: conversational
          description: Filters that were applied to the results
        available:
          type: object
          properties:
            languages:
              type: array
              items:
                type: string
              description: List of available languages in the filtered results
              example:
                - English
                - Spanish
                - French
            accents:
              type: array
              items:
                type: string
              description: List of available accents in the filtered results
              example:
                - American
                - British
                - Australian
          description: Available filter options based on current results
    Error:
      type: object
      properties:
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                message:
                  type: string
                status:
                  type: integer
          description: >-
            Error text, or an object with message and optional status for some
            provider integrations.
          example: Invalid API key
    Voice:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: string
          description: Unique voice identifier
          example: 21m00Tcm4TlvDq8ikWAM
        name:
          type: string
          description: Voice name
          example: Rachel
        description:
          type: string
          description: Voice description
          example: calm, warm, professional
        image:
          type: string
          format: uri
          description: Full URL to voice avatar image
          example: https://media.easy-peasy.ai/voices/rachel.png
        language:
          type: string
          description: Language supported by the voice
          example: English
        accent:
          type: string
          description: Voice accent
          example: American
        gender:
          type: string
          nullable: true
          enum:
            - female
            - male
            - neutral
          description: Voice gender (ready-made voices; null for your own voices)
          example: female
        age:
          type: string
          nullable: true
          enum:
            - young
            - middle_aged
            - old
          description: Voice age (ready-made voices; null for your own voices)
          example: young
        use_case:
          type: string
          nullable: true
          enum:
            - conversational
            - narrative_story
            - informative_educational
            - social_media
            - characters_animation
            - entertainment_tv
            - advertisement
          description: >-
            What the voice is made for (ready-made voices; null for your own
            voices)
          example: narrative_story
        tone:
          type: string
          nullable: true
          description: >-
            How the voice sounds, for example calm, deep or upbeat (ready-made
            voices; null for your own voices)
          example: calm
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Get yours at
        https://easy-peasy.ai/settings/api

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.