Speech

Turn text into speech

speech_synthesize · Changes data · Markdown

Reads text aloud in a stock voice and saves the MP3 in the file store with a download link; up to 5,000 characters a call.

$0.07 per 1,000 characters, rounded up

From your agent’s balance. A call that fails costs nothing.

An example

Record a short holiday greeting for the phone line: we're closed from December 24 to 26.

Your agent callsspeech_synthesize$0.07 per 1,000 characters, rounded up

The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.

With these arguments
{
  "text": "Thank you for calling Halverson Cycle & Repair. The shop and the workshop are closed from December 24 to 26. From December 27 we are here again, Monday to Saturday, 10 to 7.",
  "voice": "sarah",
  "name": "Holiday greeting 2026"
}
What comes back
{
  "file": {
    "file_id": "c051fcb9-6532-4f08-870e-7245fe5a40b2",
    "name": "Holiday greeting 2026.mp3",
    "content_type": "audio/mpeg",
    "size": "22 bytes",
    "size_bytes": 22,
    "sha256": "3123154ba6b9b87fafaa24ff345f6d9d142e29aefb0133eaf2b93b77b3a06e78",
    "created_at": "2026-10-14T08:00:00+00:00",
    "download_url": "https://cncto.co/d/c051fcb9-6532-4f08-870e-7245fe5a40b2?t=eyJmIjoiYzA1MWZjYjktNjUzMi00ZjA4LTg3MGUtNzI0NWZlNWE0MGIyIiwiZXhwIjoxNzkyMTYwNDgzfQ:1xHMKh:jr4svVUu7Ktd-JQ4PLFfb0imf1TNqkGlqdeTaicPuiU",
    "link_expires_in_hours": 24
  },
  "voice": "sarah",
  "characters": 173
}

Use it when

The business needs spoken audio: a phone greeting, a voice note, a short audio guide.

What it does

An MP3 of the text read aloud by one of the voices (speech_list_voices), saved in the file store with a download link. Up to 5,000 characters a call; it reads the language the text is written in. The file carries a machine-readable mark that the speech is AI-generated (ID3: AIGenerated, IPTC digital source type).

What comes back

file: the MP3 with its file_id, size and download link; voice; characters: how many were read. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
textRequiredstring1 to 5,000 characters.
voicestringA voice from speech_list_voices; the first one when left out. Up to 40 characters.
namestringFile name for the MP3. Up to 200 characters.

The call

Over MCP, call speech_synthesize on https://api.conecto.chat/mcp/speech. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/speech_synthesize \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Thank you for calling Halverson Cycle & Repair. The shop and the workshop are closed from December 24 to 26. From December 27 we are here again, Monday to Saturday, 10 to 7.","voice":"sarah","name":"Holiday greeting 2026"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_found404No stock voice has that name.Pick one from speech_list_voices.
storage_full409The file store has no room for the MP3.Delete files with files_delete, or add room with files_add_storage.
unavailable503Speech is not switched on yet, or the speech service failed or did not answer.Try again later; nothing was charged.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md