Google · Schema

SpeechGenerationResponse

AdvertisingCloudDevelopersGooglePlatformSearchT1Agentic CommerceUniversal Commerce ProtocolAP2A2A

Properties

Name Type Description
candidates array Generated audio candidates
usageMetadata object Token usage information
View JSON Schema on GitHub

JSON Schema

google-speech-generation-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google/json-schema/google-speech-generation-response-schema.json",
  "title": "SpeechGenerationResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-speech-generation-api-openapi.yml#/components/schemas/SpeechGenerationResponse",
  "type": "object",
  "properties": {
    "candidates": {
      "type": "array",
      "description": "Generated audio candidates",
      "items": {
        "$ref": "#/$defs/AudioCandidate"
      }
    },
    "usageMetadata": {
      "$ref": "#/$defs/UsageMetadata",
      "description": "Token usage information"
    }
  },
  "$defs": {
    "AudioCandidate": {
      "type": "object",
      "properties": {
        "content": {
          "$ref": "#/$defs/AudioContent",
          "description": "Generated audio content"
        },
        "finishReason": {
          "type": "string",
          "enum": [
            "FINISH_REASON_UNSPECIFIED",
            "STOP",
            "MAX_TOKENS",
            "SAFETY",
            "RECITATION",
            "OTHER"
          ],
          "description": "Reason why generation stopped"
        },
        "index": {
          "type": "integer",
          "description": "Index of the candidate"
        }
      }
    },
    "AudioContent": {
      "type": "object",
      "properties": {
        "parts": {
          "type": "array",
          "description": "Audio data parts",
          "items": {
            "type": "object",
            "properties": {
              "inlineData": {
                "type": "object",
                "required": [
                  "mimeType",
                  "data"
                ],
                "properties": {
                  "mimeType": {
                    "type": "string",
                    "description": "MIME type of the audio (PCM format)"
                  },
                  "data": {
                    "type": "string",
                    "format": "byte",
                    "description": "Base64-encoded audio data (24kHz, 16-bit, mono PCM)"
                  }
                }
              }
            }
          }
        }
      }
    },
    "UsageMetadata": {
      "type": "object",
      "properties": {
        "promptTokenCount": {
          "type": "integer",
          "description": "Number of tokens in the prompt"
        },
        "candidatesTokenCount": {
          "type": "integer",
          "description": "Number of tokens in generated candidates"
        },
        "totalTokenCount": {
          "type": "integer",
          "description": "Total token count"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-speech-generation-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.