77trust / 100

Audio Speak

by Tanod mlpeek in AI models & inference

x402 APIPassing, checked 2 h ago

Text to speech API: offline speech in 41 voices and 6 languages (English, Spanish, French, Hindi, Italian, Portuguese), MP3, WAV or Ogg audio (Kokoro-82M, CPU) (mlpeek, Tanod). Use when an agent must turn text into spoken audio in English, Spanish, French, Hindi, Italian or Portuguese.

POST https://tanod.dev/v1/audio/speak

Last 30 days

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

Uptime
100%
Response time
486 ms typical, 1.0 s slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

POST https://tanod.dev/v1/audio/speak

Each call costs $0.005 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://tanod.dev/v1/audio/speak
content-type: application/json

{
  "text": "Your report is ready."
}

Parameters

ParameterTypeRequiredDescription
formatstringNoAudio format: mp3, wav (16-bit PCM) or ogg (Opus). One of: mp3, wav, ogg. Default: "mp3".
outputstringNobase64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window. One of: base64, url. Default: "base64".
speednumberNoSpeaking rate, 0.5 to 2.0 (1.0 is normal). Default: 1.
textstringYesText to speak, 1 to 2,000 characters, in the language of the chosen voice (English, Spanish, French, Hindi, Italian or Brazilian Portuguese).
voicestringNoVoice (41): the first letter is the language: a US English (af_heart default, af_bella, am_adam), b UK English (bf_emma, bm_george), e Spanish (ef_dora), f French (ff_siwis), h Hindi (hf_alpha, hm_omega), i Italian (if_sara, im_nicola), p Brazilian Portuguese (pf_dora, pm_alex); f = female, m = mal… One of: af_heart, af_alloy, af_aoede, af_bella, af_jessica, af_kore, af_nicole, af_nova, af_river, af_sarah, af_sky, am_adam. Default: "af_heart".

Example response

The provider's example. We can't check it without paying.

{
  "bytes": 21504,
  "chars": 22,
  "content_type": "audio/mpeg",
  "data_base64": "//uQxAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAAFAAAEEAA...",
  "duration_s": 1.34,
  "engine": "kokoro-82m (offline)",
  "format": "mp3",
  "sample_rate": 24000,
  "speed": 1,
  "voice": "af_heart"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.005.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tanod.dev/v1/audio/speak' \
  -H 'content-type: application/json' \
  --data-raw '{"text":"Your report is ready."}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://tanod.dev/v1/audio/speak' \
  -H 'content-type: application/json' \
  --data-raw '{"text":"Your report is ready."}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Faudio%2Fspeak&method=POST
const res = await pay("https://tanod.dev/v1/audio/speak", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "text": "Your report is ready."
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://tanod.dev/v1/audio/speak",
        json={
            "text": "Your report is ready.",
        },
    )
    print(res.status_code, res.text)

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402376 ms$0.005
6 h agoPassed4021.0 s$0.005
10 h agoPassed402420 ms$0.005
14 h agoPassed4021.0 s$0.005
17 h agoPassed402486 ms$0.005
21 h agoPassed4021.1 s$0.005
25 h agoPassed402293 ms$0.005
28 h agoPassed402875 ms$0.005
32 h agoPassed402414 ms$0.005
35 h agoPassed402267 ms$0.005
39 h agoPassed402830 ms$0.005
42 h agoPassed402621 ms$0.005
46 h agoPassed402373 ms$0.005
2 days agoPassed402903 ms$0.005
2 days agoPassed402398 ms$0.005