Home / Servers / DigitalOcean API / inference_create_speech

Generate speech from text

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Generate speech from text Convert text input to speech audio. The response may be raw audio bytes (audio/mpeg, audio/wav, and similar) or a JSON envelope with base64-encoded audio in data[].b64_json. [POST /v1/audio/speech]

Name on the gateway: digitalocean_api__inference_create_speech · may change things.

Parameters

NameTypeDescription
model requiredstringThe text-to-speech model to use.
input requiredstringThe text to convert to speech.
voicestringThe voice to use for synthesis.
response_formatstringThe audio format to return. Supported values include mp3 and wav. The API may…
instructionsstringOptional style or delivery instructions for the synthesizer.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__inference_create_speech",
  "arguments": {
    "model": "…",
    "input": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the generate speech from text tool with model set to ….

More from DigitalOcean API