apyhub
โ–ฃ AUDIO PROCESSING ยท DEVELOPER TOOLS

Text Purifier Formatter

What it does

Text Purifier Formatter removes unwanted noise from raw text so you can feed cleaner input into TTS and downstream NLP pipelines. Send raw_text in the request body and get clean_text back.

Use it when source text contains emoji, markdown, bracketed stage directions, or other formatting artifacts that should not be spoken or processed as-is. The service is useful for preparing chat logs, transcripts, product copy, and user-generated content before text-to-speech rendering or text analysis.

The response is intentionally simple: a single cleaned string in clean_text. That makes it easy to drop into preprocessing steps, queue workers, or moderation and content-normalization workflows without extra mapping.

If you need a lightweight normalization step before synthesis or indexing, Text Purifier Formatter gives you a deterministic way to strip decorative characters and keep the text focused on the words that matter.

POST
TTS Text Purifier & Formatter
https://api.eu.apyverse.com/apyhub/tts-text-purifier-formatter

QUICKSTART

GUIDE

Quickstart

Send text to be cleaned of extra markup and symbols.

curl -X POST "https://api.eu.apyverse.com/apyhub/tts-text-purifier-formatter" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"raw_text":"Here is the text! ๐Ÿ˜Š **Important** [laughs]"}'

What you'll get back

Returns a JSON object with an optional clean_text string field containing the purified text.

{
  "clean_text": "Here is the text! Important"
}
TRY ITLIVE ยท 10 ATOMS
Loading your default keyโ€ฆ
The full key is used to call the gateway and stays in this tab โ€” never sent to orbit or saved.
body*

About this endpoint

What it does

Cleans and formats submitted text for text-to-speech use by taking a raw text string and returning a purified text string. The response contains the cleaned text in a clean_text field.

Request Body

ParameterTypeMandatoryDescription
raw_textStringYesThe raw input text to purify and format.

Response

Returns a JSON object with a clean_text string field containing the purified text.

ParameterTypeMandatoryDescription
clean_textStringNoThe cleaned and formatted text returned by the endpoint.

Body

Name
Type
Description
bodyREQUIRED
object
โ€”
โ–ฃ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.