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

# Go back to the default voice and speech rate



## OpenAPI

````yaml /api-reference/llm-gateway/swagger.yml delete /v1/voice/preference
openapi: 3.0.3
info:
  version: 1.0.0
  title: LLM Gateway API
  description: |
    Public REST API for the Prisme.ai LLM Gateway - OpenAI-compatible
    chat completions, embeddings and image generation/editing, a standard
    rerank endpoint, a managed model catalogue with governance overrides
    per organization, and quota status for users and organizations.

    The gateway abstracts multi-provider LLM access (OpenAI, Azure OpenAI,
    Anthropic, Google Vertex, AWS Bedrock, OpenAI-compatible providers) behind
    an OpenAI-compatible request/response shape. It enforces per-tenant
    governance (allowed models, default models, quotas) and emits analytics
    events (`analytics.llm.completion`) usable for cost and carbon reporting.

    This spec documents only the public REST surface (endpoints exposed via
    Prisme.ai workspace webhooks). Internal helpers (private automations
    prefixed with `_`) and load-test mocks are not part of the public contract.
  contact:
    name: Prisme.ai
    url: https://prisme.ai
servers:
  - url: https://{host}/v2/workspaces/slug:llm-gateway/webhooks
    description: Prisme.ai workspace webhooks
    variables:
      host:
        default: api.studio.prisme.ai
        description: API host (override for self-hosted or sandbox)
security:
  - BearerAuth: []
  - OrgApiKeyAuth: []
tags:
  - name: Completions
    description: OpenAI-compatible chat completions (with optional SSE streaming).
  - name: Embeddings
    description: OpenAI-compatible text embeddings.
  - name: Rerank
    description: >-
      Rerank documents by relevance to a query (standard rerank contract,
      LLM-as-reranker backend).
  - name: Images
    description: OpenAI-compatible image generation and image editing.
  - name: Models
    description: Model catalogue (CRUD + bulk replace + governance-aware listing).
  - name: Audio
    description: OpenAI-compatible speech-to-text (audio transcriptions).
  - name: Quotas
    description: >-
      Effective LLM quota limits and current usage, per user and per
      organization.
  - name: Defaults
    description: >-
      Resolved default models for completions / embeddings / image generation /
      transcription / file parsing.
  - name: Test
    description: Smoke-test reachability of a model through the gateway.
paths:
  /v1/voice/preference:
    parameters:
      - name: language
        in: query
        required: false
        description: >-
          Language of the session (ISO 639-1 or a language tag) that `active`,
          `default` and `voices` are given for; every language when absent.
        schema:
          type: string
          maxLength: 16
          example: fr
    delete:
      tags:
        - Audio
      summary: Go back to the default voice and speech rate
      operationId: resetVoicePreference
      responses:
        '200':
          description: Reset; the same answer as GET, `voice` and `rate` null.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoicePreference'
components:
  schemas:
    VoicePreference:
      type: object
      required:
        - voice
        - rate
        - active
        - default
        - voices
      properties:
        voice:
          type: string
          nullable: true
          description: >-
            The voice the member chose, `<model_id>/<voice_id>`; null for the
            default.
        rate:
          type: number
          nullable: true
          description: >-
            The speech rate the member chose, a multiplier of the voice's own
            (0.5 to 2); null for the voice's own. A voice session reads it when
            the client sends no rate.
          example: 1.25
        active:
          type: boolean
          description: >-
            Whether a session in `language` reads the member's choice (the
            organization still offers it and it speaks the language); false
            without a choice.
        default:
          type: object
          description: >-
            The voice a session reads without the member's choice. A session
            also skips a catalog voice whose provider is not configured, which
            this answer does not check.
          properties:
            ref:
              type: string
              nullable: true
              description: >-
                Its reference; null for the platform's voice outside the
                catalog.
            name:
              type: string
            source:
              type: string
              enum:
                - agent
                - org_language
                - org_fallback
                - platform
        voices:
          type: array
          description: >-
            The voices the organization offers in `language`, as agent-factory
            `GET /v1/voice/availability?voices=true` lists them.
          items:
            type: object
            properties:
              ref:
                type: string
              model_id:
                type: string
              id:
                type: string
              name:
                type: string
              languages:
                type: array
                items:
                  type: string
              multilingual:
                type: boolean
              gender:
                type: string
              provider:
                type: string
              outside_eu:
                type: boolean
      example:
        voice: openai-tts/nova
        active: true
        default:
          ref: openai-tts/alloy
          name: Alloy
          source: org_language
        voices:
          - ref: openai-tts/alloy
            model_id: openai-tts
            id: alloy
            name: Alloy
            languages:
              - fr-FR
          - ref: openai-tts/nova
            model_id: openai-tts
            id: nova
            name: Nova
            languages:
              - fr-FR
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        User-bound credential carrying an identity: either a session JWT
        or a user access token (`at:*`) generated from the user settings UI.
        Send as `Authorization: Bearer <token>`.
        Org API keys (`iak_*`) are **not** accepted here - they carry
        no user identity. Use the `x-prismeai-api-key` header instead
        (see `OrgApiKeyAuth`).
    OrgApiKeyAuth:
      type: apiKey
      in: header
      name: x-prismeai-api-key
      description: |
        Organization API key (`iak_{orgSlug}_{uuid}`). Unlike
        `Authorization: Bearer`, this credential is **not** tied to a user
        identity - it is bound to the org and its effective access is
        defined by the scopes / permission rules attached to it (it can
        be restricted to a single project, or kept broader).
        Send as `x-prismeai-api-key: iak_...`.

````

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