Uncensored AI Text to Speech: What Is Possible
If you want uncensored ai text to speech, know first that this API writes text and nothing else. It does not produce audio. What you can do is pair the text it writes with a separate speech engine, and this article shows how.
Last updated

Summary
- The API is text only: no audio, image or video generation.
- Speech comes from a second service, local or hosted, that reads the model's text aloud.
- Streaming and sentence splitting lets speech start before the full reply is written.
- The speech service has its own rules, so check its terms before you send it adult fiction.
What the API does and does not do
The service is a text API. You send a prompt, you get text back. It has no voice output, no audio input and no voice cloning. There is no hidden endpoint for speech. Anything that talks is built from two separate parts: a language model that writes the words and a text-to-speech (TTS) engine that turns those words into sound.
That split is useful. You choose the voice, the language and the price independently of the text model, and you can change either part without touching the other.
The two-part pipeline
- Write. Call the chat completions endpoint with a system prompt that asks for text suited to speaking.
- Clean. Remove markdown, stage directions and anything a voice should not read out.
- Speak. Send each sentence to a TTS engine and play or save the audio.
For the speech engine you have several kinds of choice. Operating systems include built-in voices, for example the say command on macOS. Browsers expose the Web Speech API, including speechSynthesis. Open-source engines such as Piper and eSpeak NG run locally. Hosted TTS services run on someone else's servers. We make no claims about their quality or prices, so compare them yourself.
Write text that sounds right aloud
Text written for the eye often sounds odd when spoken. Fix this in the system prompt, not afterwards.
- Ask for plain sentences with no markdown, asterisks, emoji or bullet lists.
- Ask for short sentences, because TTS engines handle them better and the first sound arrives sooner.
- Spell out symbols and units: "ten percent", not "10%".
- For multiple characters, ask the model to put the speaker name first on each line, then map speakers to voices in your code.
SYSTEM = (
"You write text that will be read aloud by a voice actor. "
"Use plain spoken English. Short sentences. No markdown, no asterisks, "
"no emoji, no stage directions in brackets. Spell out numbers and symbols."
)Streaming sentences to a speech engine
Waiting for a whole reply before speaking adds seconds of silence. Instead, stream the reply, cut it into sentences as it arrives, and hand each finished sentence to the TTS step. The first sentence is spoken while the model writes the rest.
import os, re, subprocess
from openai import OpenAI
client = OpenAI(
base_url="https://api.uncensoredaitext.com/v1",
api_key=os.environ["API_KEY"],
)
def speak(sentence):
# macOS built-in voice; replace with your own TTS call
subprocess.run(["say", sentence], check=False)
def talk(prompt):
stream = client.chat.completions.create(
model="uncensored",
stream=True,
messages=[
{"role": "system", "content": "Write plain spoken English in short sentences. No markdown."},
{"role": "user", "content": prompt},
],
)
buffer = ""
for chunk in stream:
if not chunk.choices or not chunk.choices[0].delta.content:
continue
buffer += chunk.choices[0].delta.content
parts = re.split(r"(?<=[.?\u0021])\s+", buffer)
for sentence in parts[:-1]:
speak(sentence)
buffer = parts[-1]
if buffer.strip():
speak(buffer)
talk("Tell a two-minute ghost story about a lighthouse keeper.")
Swap the body of speak for a call to your engine of choice. For a smooth result, put the audio into a queue and play it on a second thread, so the next sentence is ready before the current one ends.
Different voices for different characters
For dialogue-heavy fiction, ask the model to label each line with a speaker and route lines to different voices. Local engines and hosted services both let you choose a voice per call.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.uncensoredaitext.com/v1",
api_key=os.environ["API_KEY"],
)
VOICES = {"NARRATOR": "voice_a", "RIVA": "voice_b", "OSKAR": "voice_c"}
r = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": "Write a short scene. One line per beat, formatted NAME: text. Use only NARRATOR, RIVA and OSKAR. Plain spoken English, no markdown."},
{"role": "user", "content": "Two smugglers wait for a late boat."},
],
)
for line in r.choices[0].message.content.splitlines():
if ":" in line:
name, text = line.split(":", 1)
voice = VOICES.get(name.strip().upper(), "voice_a")
print(voice, ":", text.strip()) # send to your TTS engine here
Real engines also take settings such as speaking rate. Set a slightly slower rate for the narrator and a faster one for tense dialogue, and listen to a sample before you generate hours of audio. Keep the voice names in your own table, since each engine names its voices differently. Fixing the speaker list in the prompt stops the model from inventing new names your table does not know.
Test the pipeline before you build on it
A speech pipeline has more moving parts than a plain text call, so test each part alone before joining them.
- Test the text. Print the model output and read it aloud yourself. If it trips you up, it will trip a voice.
- Test the splitter. A sentence splitter that cuts at every full stop will break on "Dr.", "St." and "e.g.". Add a short list of abbreviations to skip, or ask the model not to use them.
- Test the voice. Feed three sample passages to your TTS engine: plain narration, fast dialogue and a passage with numbers. Listen for mistakes in names, which engines often mispronounce.
- Time it. Measure the delay from the request to the first spoken word. Streaming and short first sentences keep it low.
Keep the text log next to the audio. When a line sounds wrong, you can find the exact words that were sent to the speech engine and fix the prompt instead of guessing. Remember that the model only ever returns text. Every sound in your project comes from the speech engine you choose.
Plan for failure too. If the speech engine is slow or down, your app can fall back to showing the text on screen, because the writing step does not depend on it. Keep the two steps loosely coupled so one problem does not stop the other.
Adult content and the speech service
The text model is tuned to answer without content refusals for lawful adult use. A TTS service is a different company or program with its own terms, and many hosted ones restrict what they will voice. Read their policy before you send fiction through them. A local engine such as Piper or eSpeak NG runs on your machine and has no such gatekeeping, though the voices are fixed by whatever voice files you install. Whatever you choose, the usual rule holds: lawful adult use only, and content involving minors is never allowed.
Cost, limits and next steps
The text part is cheap. A 300-word spoken reply is about 400 tokens, so with a 300-token prompt it costs 300 x $0.15 / 1,000,000 + 400 x $0.50 / 1,000,000 = $0.000045 + $0.0002 = $0.000245. Ten thousand of those cost $2.45. The speech side is a separate bill, or free if you use a local engine.
Streaming holds a concurrency slot until the stream ends: 8 on a full key, 2 on a trial key. Plan the number of simultaneous voice sessions around that. You can start on the $0.50 trial credit from the API key page, read the endpoint reference in the docs, and see rates on the pricing page. To pick the writing style that suits your voice project, see choosing the right uncensored AI model.
More guides
Common questions
Can this API generate audio?
No. It returns text only. You need a separate text-to-speech engine to turn that text into sound.
Which TTS engine should I use?
It depends on quality, language and price. Built-in system voices, the browser speechSynthesis API, local engines like Piper and hosted services are all options. Compare them yourself.
Can I stream the text into speech?
Yes. Set stream to true, split the incoming text into sentences and send each finished sentence to your TTS engine.
Will a TTS service read adult fiction?
That depends on the service. Hosted ones often have content rules, while local engines do not. Check the terms of any service you use.
API key ready in seconds
Sign up, copy the key, update your base URL. That is the entire setup.