{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pyai-com/json-schema/pyai-com-stock-voice-schema.json",
  "title": "StockVoice",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pyai-com-openapi.json#/components/schemas/StockVoice",
  "type": "object",
  "properties": {
    "object": {
      "type": "string"
    },
    "voice_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "gender": {
      "type": "string",
      "enum": [
        "M",
        "F"
      ]
    },
    "region": {
      "type": "string",
      "description": "Accent / regional flavor."
    },
    "age": {
      "type": "string"
    },
    "tone": {
      "type": "string"
    },
    "bio": {
      "type": "string"
    },
    "language": {
      "type": "string"
    },
    "avatar_url": {
      "type": "string",
      "format": "uri",
      "description": "Voice-matched avatar image (PNG)."
    },
    "preview_url": {
      "type": "string",
      "format": "uri",
      "description": "Optional pre-generated audio preview (MP3). If absent, synthesize a short sample with this `voice_id`."
    },
    "accent": {
      "type": "string",
      "description": "Normalized accent label used for matching."
    },
    "age_band": {
      "type": "string",
      "description": "Normalized age band, e.g. 25-34."
    },
    "pitch_band": {
      "type": "string",
      "description": "Normalized pitch band, e.g. low-medium."
    },
    "pace": {
      "type": "string",
      "description": "Normalized speaking pace."
    },
    "use_cases": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Recommended Agent and content use cases."
    },
    "search_tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Search and auto-suggest tags."
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Permanent convenience identifiers accepted on the voice's advertised surfaces. API responses report the canonical `voice_id`."
    },
    "available_on": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "speak",
          "omni"
        ]
      },
      "description": "Product surfaces on which this stock voice can be selected."
    },
    "speak_emotions": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "neutral",
          "happy",
          "sad",
          "angry",
          "fearful",
          "surprised"
        ]
      },
      "description": "Verified named delivery controls on Speak for this voice. An empty or absent list means directed emotion is unavailable. These controls apply to streaming and buffered speech; intensity is not supported."
    },
    "synthesis_modes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "streaming",
          "async"
        ]
      },
      "description": "Delivery modes accepted for this voice on `POST /v1/audio/speech`. Every Speak-available voice accepts both; a voice served from a blocking-only fleet answers a streaming request with `x-pyai-stream: buffered`. An empty list means the voice has no Speak surface at all (check `available_on`)."
    },
    "tier": {
      "type": "string",
      "enum": [
        "standard",
        "natural"
      ],
      "description": "Customer-facing voice quality tier. The public catalog includes Standard and Natural voices; inspect `available_on` and `synthesis_modes` before use."
    },
    "pricing": {
      "type": "object",
      "required": [
        "included_in_base_price",
        "additional_price_usd_per_minute"
      ],
      "description": "Voice-specific pricing on top of the selected product's base rate.",
      "properties": {
        "included_in_base_price": {
          "type": "boolean"
        },
        "additional_price_usd_per_minute": {
          "type": "number",
          "minimum": 0
        }
      }
    },
    "source_dataset": {
      "type": "string",
      "description": "Source dataset attribution."
    },
    "license": {
      "type": "string",
      "description": "Source voice license identifier."
    }
  }
}