Documentation.

From your first key to live calls: speech, streaming, cloning, transcription and translation in African languages, with copy-paste examples.

Quickstart

PlotWeaver gives you text to speech, voice cloning, speech to text and translation for 86 African languages through one REST and WebSocket API, and through the PlotWeaver app for people who do not write code.

  1. Sign up at app.plotweaver.app. Every account starts with a free trial of 100 minutes over 7 days (card on file, nothing charged). In the app you can play every voice and try every service before writing code.
  2. Create an API key in the app under API keys. Send it on every request in the X-API-Key header. Keep keys on your server, never in a mobile app or browser bundle.
  3. Make your first call. The base URL is https://api.plotweaver.app/v1.
export PLOTWEAVER_API_KEY="pw_live_..."

curl -X POST https://api.plotweaver.app/v1/speech \
  -H "X-API-Key: $PLOTWEAVER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Ẹ kú àárọ̀, ẹ káàbọ̀ sí PlotWeaver.", "language": "yo", "voice_id": "aderonke"}' \
  --output welcome.wav
import os, requests

r = requests.post(
    "https://api.plotweaver.app/v1/speech",
    headers={"X-API-Key": os.environ["PLOTWEAVER_API_KEY"]},
    json={"text": "How far, wetin dey happen?", "language": "pcm", "voice_id": "ufuoma"},
    timeout=120,
)
r.raise_for_status()
open("hello.wav", "wb").write(r.content)
const res = await fetch("https://api.plotweaver.app/v1/speech", {
  method: "POST",
  headers: { "X-API-Key": process.env.PLOTWEAVER_API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({ text: "Sannu, yaya kake?", language: "ha", voice_id: "maryam" }),
});
const audio = Buffer.from(await res.arrayBuffer()); // audio/wav

Transcribe a recording the same way:

curl -X POST https://api.plotweaver.app/v1/transcriptions \
  -H "X-API-Key: $PLOTWEAVER_API_KEY" \
  -F file=@call.wav

Every endpoint, field and error is in the API reference.

Languages

PlotWeaver speaks 86 African languages across 44 countries. Address a language by its code (yo) or its name (Yoruba).

Language Code Text to speech Voice cloning Speech to text Translation
Yoruba yo Yes, 14 native voices Yes Yes Yes
Hausa ha Yes, 14 native voices Yes Yes Yes
Igbo ig Yes, 11 native voices Yes Yes Yes
Nigerian Pidgin pcm Yes, 15 native voices Yes Yes Yes
Nigerian English en Yes, 15 native voices Yes Yes Yes
65 more languages, including Swahili, Amharic, Zulu, Xhosa, Akan, Twi, Wolof, Kinyarwanda, Lingala and Somali Yes Yes
16 more Ghanaian and West African languages, such as Buli, Kusaal, Konkomba and Sehwi Yes

GET /v1/languages (no key needed) lists every language with the services it supports. Each language has its own page under Languages.

Voices

There are 219 named built-in voices:

  • 69 STORM v1.5 voices for Nigeria's five main languages. Each is a native speaker of one of them, and every one can speak all five, so a Yoruba voice can also read English, Hausa, Igbo or Pidgin. The defaults are bisola (Nigerian English), ufuoma (Nigerian Pidgin), aderonke (Yoruba), maryam (Hausa) and chinwe (Igbo).
  • 150 STORM Ensemble 3.0 voices for 57 African languages outside Nigeria. Each speaks its own language.
  • For the other languages, STORM-OS V3 speaks with its own voice (voice_id storm, the default).

Pass a voice by id (tola) or by name (Adérónkẹ́, with or without tone marks). GET /v1/voices?language=yo returns the voices for a language, native speakers first. The full list is on the Voices page; sign in to the app to play every voice.

Text to speech

POST /v1/speech returns audio/wav. Send up to 5,000 characters; long text is split at sentence ends and joined with natural pauses. Use a client timeout of at least 120 seconds.

  • Numbers and money. In Yoruba, Hausa, Igbo, Nigerian Pidgin and Nigerian English, amounts, numbers, units, times and symbols are turned into words before speaking (₦5.75 million is read as "five point seven five million naira"). In other languages, write numbers and dates as words.
  • Write the language properly. The voice reads exactly what you write. Write Yoruba with full tone marks and underdots (Ẹ kú àárọ̀), Igbo with its dotted letters (ị, ọ, ụ, ṅ) and Hausa with its hooked letters (ɓ, ɗ, ƙ).
  • Mixed languages. Text that mixes languages ("Ẹ kú àárọ̀ everyone, the meeting starts at ten") is read in one voice. Set language to the main language of the text.
  • Quality or speed. "mode": "quality" (the default for files) uses STORM v1.5, our most natural voices. "mode": "speed" serves the same voice on STORM Gust 1.0 for the lowest latency.

Streaming

POST /v1/speech/stream takes the same body and returns raw audio as it is generated: signed 16-bit PCM, mono, 24 kHz. It streams in the five Nigerian languages, with a built-in or a cloned voice, and runs on STORM Gust 1.0 by default, with the first audio in about a tenth of a second.

curl -sN -X POST https://api.plotweaver.app/v1/speech/stream \
  -H "X-API-Key: $PLOTWEAVER_API_KEY" -H "Content-Type: application/json" \
  -d '{"text": "Bawo ni, ṣé àlàáfíà ni?", "language": "yo"}' \
  | ffplay -autoexit -nodisp -f s16le -ar 24000 -ac 1 -i pipe:0

For live calls and voice agents, send one sentence per request, so an interruption only costs that sentence.

Voice cloning

Clone a voice from 5 to 10 seconds of one person speaking clearly in a quiet room. Only clone a voice with the speaker's permission.

curl -X POST https://api.plotweaver.app/v1/voices \
  -H "X-API-Key: $PLOTWEAVER_API_KEY" \
  -F name="Narrator" -F language=yo -F file=@my_voice.wav

The response has an id; use it as voice_id in POST /v1/speech and POST /v1/speech/stream.

  • In Nigerian languages the clip is transcribed automatically by STORM ASR 2.0, so no transcript is needed, and the voice is cloned on STORM Gust 1.0. It can then speak all five Nigerian languages.
  • In other languages, send reference_text with the exact words of the clip; the voice is cloned on STORM-OS V3.
  • Clips with under 3 seconds of speech, or too much noise or music, are refused with a clear message. Record again in a quiet room.

Speech to text

POST /v1/transcriptions transcribes Yoruba, Hausa, Igbo, Nigerian Pidgin, Nigerian English and speech that mixes them, with STORM ASR 2.0. You do not need to tell it the language: every transcript says which language it heard (detected_language) and, for code-switched speech, every language heard (languages_detected).

  • Text comes back as written, with capitals, punctuation and tone marks. Numbers are written as words.
  • Add timestamps=segment for timed pieces, or response_format=srt or vtt for subtitles. Video files work too.
  • Long recordings are split at natural pauses and come back complete. A typical clip returns in well under a second.

In our benchmark on 22,921 clips, STORM ASR 2.0 made the fewest mistakes of every model tested: 15.6 words wrong per 100.

Real-time transcription

For live calls and voice agents, stream audio to wss://api.plotweaver.app/v1/transcriptions/stream. STORM ASR 2.0 hears when the caller starts and stops, sends the sentence so far about every 0.4 seconds and the finished sentence as soon as they pause. For phone audio, connect with ?sample_rate=8000&encoding=mulaw. Events, limits and a full Python example are in the API reference.

Translation

POST /v1/translations translates text between English, Yoruba, Hausa, Igbo and Nigerian Pidgin with STORM MT, up to 2,000 characters per request. Pairs without English (for example Yoruba to Igbo) go through English. Check important translations with a native speaker before you publish them.

{ "text": "How are you doing today?", "source_language": "en", "target_language": "ha" }

Documents and web pages

POST /v1/documents/text pulls the readable text out of a web page, PDF, Word file or text file, ready to send to text to speech. It is not charged; you pay only when the text is spoken.

Claude and ChatGPT

The PlotWeaver MCP server lets Claude, ChatGPT and other AI assistants speak, transcribe, translate and clone voices for you from chat, with no code. Add https://mcp.plotweaver.app/mcp as a connector, sign in with your PlotWeaver account, and ask for a voiceover, a transcript or a translation. Setup steps are on the MCP page in the app.

Limits, errors and support

  • Each plan has a requests-per-minute limit (300 on Starter, 1,000 on Growth, 2,000 on Business). Over it, and when an engine is at capacity, calls return 429 with a Retry-After header: wait that long and retry.
  • Errors come back as JSON with a plain detail. The full list is in the API reference.
  • Every response carries X-Request-ID. Quote it when you write to info@plotweaver.app.

Pricing

Every service draws on one pool of minutes, in the app and the API: Pay as you go at US$0.06 a minute, or plans from US$49 a month for 1,000 minutes. See pricing.