# HubVibe Text-to-Speech (Google Cloud TTS)

> HubVibe Text-to-Speech (Google Cloud TTS) is a paid API for AI agents from hubvibe-io.com, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-02).

Converts input text into spoken MP3 audio using Google Cloud Text-to-Speech, with optional voice selection.

## Facts

- Endpoint: POST https://hubvibe-io.com/work/speech/synthesize?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hubvibe-text-to-speech-google-cloud-tts-e78e6b42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eocnXkQJREwYNfI06jCBJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hubvibe-text-to-speech-google-cloud-tts-e78e6b42 -d '<json body>'
```

Example prompt: Can you turn this script into spoken audio using the en-US-Standard-C voice? The text is: 'Welcome to our quarterly product update. We're excited to share what we've been building.'

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call text-to-speech conversion backed by Google Cloud's high-quality voices, without managing Google Cloud credentials yourself. It is ideal for agents that occasionally need spoken audio output without provisioning a TTS service. Prefer it over raw Google Cloud TTS when you want a simple HTTP POST with per-call micropayment billing.

## Known failure modes

- Empty or missing text field returns an error
- Unsupported or misspelled voice name may cause synthesis failure or fallback to default
- Very long text inputs may exceed API limits or increase latency
- Service may return an error if the backend Google Cloud TTS quota is exhausted
- Non-ASCII or unsupported language characters may produce garbled audio

## How this service works

Text to speech (TTS): convert text to natural spoken MP3 audio with Google Cloud Text-to-Speech, returned as base64. Use it for voice replies, narration, audio versions of text and accessibility. Input: text; optional voice name.

## Output

An MP3 audio file containing the spoken rendition of the input text, generated by Google Cloud Text-to-Speech using the specified (or default) voice.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "voice": {
   "type": "string"
  },
  "language": {
   "type": "string",
   "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
   "maxLength": 35
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "voice": "en-US-Neural2-C",
   "mime_type": "audio/mpeg",
   "text_chars": 58,
   "audio_base64": "UklGRi4AAABXQVZF..."
  },
  "status": "ok",
  "worker": "speech.synthesize",
  "price_usd": 0.25,
  "provenance": {
   "steps": [
    {
     "ms": 312,
     "ok": true,
     "step": "quote",
     "reason": "provider_timeout",
     "provider": "coinbase-advanced-trade-public"
    }
   ],
   "attempts": 1,
   "elapsed_ms": 340,
   "providers_used": [
    "coinbase-advanced-trade-public"
   ]
  },
  "receipt_id": "rcpt_9f1c2b3a4d5e6f70",
  "attribution": [
   {
    "url": "https://translate.google.com",
    "text": "Translated by Google"
   }
  ],
  "receipt_url": "/work/receipts/rcpt_9f1c2b3a4d5e6f70"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hubvibe-text-to-speech-google-cloud-tts-e78e6b42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hubvibe-io.com](https://www.zero.xyz/host/hubvibe-io.com/llms.txt)
