# Dub: Translate and Speak

> Dub: Translate and Speak is a paid API for AI agents from agent402.tools, paid per call via x402, $0.14/call, status unknown (last checked 2026-10-29).

Translates text from one language to another and synthesizes the translation as spoken audio in a single API call.

## Facts

- Endpoint: POST https://agent402.tools/api/dub?utm_source=zero.xyz
- Price: $0.14/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dub-translate-and-speak-13591b0b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BJeA9_1859wm13-hMjmyB

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 dub-translate-and-speak-13591b0b -d '<json body>'
```

Example prompt: Translate 'Hello from Agent402. Each tool is paid per call.' into Spanish and speak it using the standard tier with Sarah's voice in MP3 format.

## When to prefer this

Choose this endpoint when you need both translation and text-to-speech in a single atomic call, avoiding the overhead of chaining two separate APIs. It is ideal for dubbing messages, producing multilingual audio snippets, or building voice-enabled multilingual workflows where latency and simplicity matter. Prefer the HD tier ($0.260) when audio quality is critical, or standard ($0.140) for cost-sensitive bulk use.

## Known failure modes

- Unsupported target language code returns an error or garbled output
- Invalid voice name causes TTS to fail or fall back to a default
- Missing text field returns a validation error
- Unsupported audio format may be rejected
- Network timeout during TTS synthesis for very long texts
- Payment failure (HTTP 402) if USDC balance is insufficient

## How this service works

Translate a text into a target language and speak the translation, in one paid call. The translation runs on the /v1/chat/completions gateway tier and the speech on /api/tts (tier "standard", $0.140) or /api/tts-hd (tier "hd", $0.260); the price is the sum of the two.

## Output

Returns a JSON object containing the translated text, a base64-encoded audio file of the spoken translation, the detected source language, target language, character count, audio format, TTS model used (e.g. elevenlabs/eleven-v4-turbo), voice name, and TTS tier (standard or hd).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "boolean"
  },
  "text": {
   "type": "string"
  },
  "tier": {
   "type": "string"
  },
  "voice": {
   "type": "string"
  },
  "format": {
   "type": "string"
  },
  "sourceLanguage": {
   "type": "string"
  },
  "targetLanguage": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tier": "standard",
  "audio": "<base64-encoded audio>",
  "chars": 58,
  "model": "elevenlabs/eleven-v4-turbo",
  "voice": "sarah",
  "format": "mp3",
  "translation": "Hola desde Agent402. Cada herramienta se paga por llamada.",
  "targetLanguage": "es",
  "translationModel": "openai/gpt-4o-mini",
  "detectedSourceLanguage": "en"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dub-translate-and-speak-13591b0b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
