Paxa Labs
v0.1.0-beta.19Thai, English, Mandarin speech AI: TTS with playback, transcription, translation, OCR, extraction
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
speak Speak out loud
Synthesize a short line with Paxa TTS and play it through this machine's speakers. Blocks until playback finishes. Waits for the currently playing audio but jumps ahead of queued long-form segments. For long content use queue_speech. Costs 10 credits per 1000 characters, 12.5 in a designed voice (voice_...). Direction tags (paxa-tts-flash-v2, every voice): words in square brackets written into the text set the delivery from that point on, in English, Thai, or Chinese, e.g. [whispering], [speaking slowly, close to the microphone], [sad:0.5], or a blend [happy:0.7+sad:0.3]; [neutral] returns to…
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to speak, Thai, English, or Mandarin Chinese, up to 2000 characters |
language | string | How codes, digits, and symbols are read: "th", "en", or "zh". Words keep the language of their script. Default "auto" works it out from the text; set it when a code such as AB2039 should be spelled in… |
model | string | "paxa-tts-flash-v2" (default) has 50 voices that each speak Thai, English, and Mandarin, and every one reads direction tags written into the text. Pick "paxa-tts-flash-v1" only for its legacy features… |
speed | number | Speaking rate from 0.5 to 1.5 as a multiplier on the voice's design speed (1 is as designed; 1.2 to 1.3 suits long reads). Pitch is preserved and the price is the same. Defaults to PAXA_DEFAULT_SPEED… |
temperature | number | How much the reading (pacing, pauses, breaths, melody) varies from one request to the next, 0 to 2, rounded to the nearest 0.1 (default 0.5). 0 gives the most repeatable reading, such as a line regene… |
voice | string | Voice id from list_voices (default "foithong"), or a designed voice's id (voice_...) from save_voice, which speaks only on paxa-tts-flash-v2. Recommended for general use: foithong (female) and massama… |
queue_speech Queue long-form speech
Read long content aloud (stories, articles, books). Splits the text into segments, synthesizes ahead while playing, and returns at once with the segment count and the estimated credits; segments play in order after anything already queued. There is no handle: control_playback monitors and controls the whole queue. Use speak instead for one short line that should play now and wait, and text_to_speech for a file without playback. Costs 10 credits per 1000 characters, 12.5 in a designed voice (voice_...). Direction tags (paxa-tts-flash-v2, every voice): words in square brackets written into the t…
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to read aloud, Thai, English, or Mandarin Chinese |
language | string | How codes, digits, and symbols are read: "th", "en", or "zh". Words keep the language of their script. Default "auto" works it out from the text; set it when a code such as AB2039 should be spelled in… |
model | string | "paxa-tts-flash-v2" (default) has 50 voices that each speak Thai, English, and Mandarin, and every one reads direction tags written into the text. Pick "paxa-tts-flash-v1" only for its legacy features… |
speed | number | Speaking rate from 0.5 to 1.5 as a multiplier on the voice's design speed (1 is as designed; 1.2 to 1.3 suits long reads). Pitch is preserved and the price is the same. Defaults to PAXA_DEFAULT_SPEED… |
temperature | number | How much the reading (pacing, pauses, breaths, melody) varies from one request to the next, 0 to 2, rounded to the nearest 0.1 (default 0.5). 0 gives the most repeatable reading, such as a line regene… |
voice | string | Voice id from list_voices (default "foithong"), or a designed voice's id (voice_...) from save_voice, which speaks only on paxa-tts-flash-v2. Recommended for general use: foithong (female) and massama… |
control_playback Playback control
Inspect and control the shared audio queue that speak, queue_speech, play_audio, and the voice design tools play through. status reports what is playing, what is queued, and any synthesis failures. pause holds playback until resume or clear, and audio queued meanwhile waits; pause is not supported on Windows, where skip or clear stops playback instead. skip drops the current segment and is refused when nothing is playing. clear stops playback and discards every queued segment, which must be queued again to be heard; audio files already written stay on disk. Free (no API call).
| Parameter | Type | Description |
|---|---|---|
action * | string |
play_audio Play an audio file
Play a local audio file through this machine's speakers, for example a file produced earlier by text_to_speech. Waits for the audio playing now, plays ahead of queued long-form speech, and blocks until the file ends; control_playback skip or clear stops it early. Fails without playing when the file is missing, is not a playable format, or no audio player is installed; raw pcm, mulaw, and alaw files have no header and cannot be played. To say new text, use speak instead. Free (no API call).
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to a local audio file (mp3, wav, opus, ogg, flac, m4a, aac, aiff, caf), absolute or relative to the server's working directory |
text_to_speech Text to speech (file only)
Synthesize speech with Paxa TTS and save it as an audio file without playing it: voiceovers, narration, audiobooks, phone prompts. To hear speech instead, use speak (a short line) or queue_speech (long reads); play_audio plays a saved file later. The file goes to output_path, replacing a file already there, or to a new timestamped name in PAXA_OUTPUT_DIR. For several speakers in one file, use dialogue_to_speech. Text beyond 20000 characters is split at paragraphs and sentences and the parts are joined into one file (mp3, opus, and wav need ffmpeg for that). With subtitles set, an srt or vtt ca…
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to synthesize, Thai, English, or Mandarin Chinese, up to 200000 characters |
format | string | Audio format (default "mp3"). opus is the smallest, wav is uncompressed 16-bit with a header, pcm is the same samples raw (little-endian mono, no header) for voice agents and audio pipelines, and mula… |
language | string | How codes, digits, and symbols are read: "th", "en", or "zh". Words keep the language of their script. Default "auto" works it out from the text; set it when a code such as AB2039 should be spelled in… |
model | string | "paxa-tts-flash-v2" (default) has 50 voices that each speak Thai, English, and Mandarin, and every one reads direction tags written into the text. Pick "paxa-tts-flash-v1" only for its legacy features… |
output_path | string | Where to save the file. Relative paths resolve against PAXA_OUTPUT_DIR (or the working directory). |
sample_rate | number | Sample rate of pcm or wav in Hz (default 24000): 8000, 16000, 22050, 24000, 32000, 44100, 48000 on paxa-tts-flash-v2; paxa-tts-flash-v1 serves 24000 only. Other formats have a fixed rate (8000 for mul… |
speed | number | Speaking rate from 0.5 to 1.5 as a multiplier on the voice's design speed (1 is as designed; 1.2 to 1.3 suits long reads). Pitch is preserved and the price is the same. Defaults to PAXA_DEFAULT_SPEED… |
subtitle_line_chars | integer | Columns per subtitle line, 10 to 120 (default 60, or 32 when the words are mostly Chinese, Japanese, or Korean). A Chinese, Japanese, or Korean character or full-width punctuation mark takes two colum… |
subtitles | string | Also write a caption file (same name as the audio, .srt or .vtt) timed from the synthesized words: cues break at sentence punctuation, at pauses, and at the line budget, never inside a word, Thai incl… |
temperature | number | How much the reading (pacing, pauses, breaths, melody) varies from one request to the next, 0 to 2, rounded to the nearest 0.1 (default 0.5). 0 gives the most repeatable reading, such as a line regene… |
voice | string | Voice id from list_voices (default "foithong"), or a designed voice's id (voice_...) from save_voice, which speaks only on paxa-tts-flash-v2. Recommended for general use: foithong (female) and massama… |
dialogue_to_speech Dialogue to speech (file only)
Synthesize a script of lines, each in its own voice, into one audio file without playing it: podcasts, interviews, radio plays, lessons and phone flows with more than one speaker. Pass the lines in speaking order with a voice each; gap_ms of silence goes between lines. For a single voice use text_to_speech; to hear a conversation now, call queue_speech once per line in that line's voice; play_audio plays the saved file. The file goes to output_path, replacing a file already there, or to a new timestamped name in PAXA_OUTPUT_DIR. A script over 100 lines or 20000 characters is sent in parts spli…
| Parameter | Type | Description |
|---|---|---|
lines * | array | The lines in speaking order, up to 2000 lines and 200000 characters in all, at most 20000 in one line. Give each speaker a voice of their own. Recommended for general use: foithong (female) and massam… |
format | string | Audio format (default "mp3"). opus is the smallest, wav is uncompressed 16-bit with a header, pcm is the same samples raw (little-endian mono, no header) for voice agents and audio pipelines, and mula… |
gap_ms | integer | Silence between one line and the next, in milliseconds (default 300). For a pause inside a line, write a pause tag. |
language | string | How codes, digits, and symbols are read: "th", "en", or "zh". Words keep the language of their script. Default "auto" works it out from the text; set it when a code such as AB2039 should be spelled in… |
model | string | "paxa-tts-flash-v2" (default) has 50 voices that each speak Thai, English, and Mandarin, and every one reads direction tags written into the text. Pick "paxa-tts-flash-v1" only for its legacy features… |
output_path | string | Where to save the file. Relative paths resolve against PAXA_OUTPUT_DIR (or the working directory). |
sample_rate | number | Sample rate of pcm or wav in Hz (default 24000): 8000, 16000, 22050, 24000, 32000, 44100, 48000 on paxa-tts-flash-v2; paxa-tts-flash-v1 serves 24000 only. Other formats have a fixed rate (8000 for mul… |
speed | number | Speaking rate from 0.5 to 1.5 as a multiplier on the voice's design speed (1 is as designed; 1.2 to 1.3 suits long reads). Pitch is preserved and the price is the same. Defaults to PAXA_DEFAULT_SPEED… |
subtitle_line_chars | integer | Columns per subtitle line, 10 to 120 (default 60, or 32 when the words are mostly Chinese, Japanese, or Korean). A Chinese, Japanese, or Korean character or full-width punctuation mark takes two colum… |
subtitles | string | Also write a caption file (same name as the audio, .srt or .vtt) timed from the synthesized words. Cues break at sentence punctuation, at pauses, and at the line budget, never inside a word and never… |
temperature | number | How much the reading (pacing, pauses, breaths, melody) varies from one request to the next, 0 to 2, rounded to the nearest 0.1 (default 0.5). 0 gives the most repeatable reading, such as a line regene… |
design_voice Design a new voice
Make a new voice from a written description and play the line it speaks through this machine's speakers. Use it when the user wants a voice the catalog does not have. Describe who is speaking and how they sound in one or two sentences: age, gender, role, pitch and texture, pace and manner, where it will be heard, and the language it speaks (a designed voice speaks one language: the one the description names, otherwise the one it is written in), such as "A calm Bangkok pharmacist in her thirties who explains dosages slowly and kindly, speaking Thai". Leave out real people's names, sound effects…
| Parameter | Type | Description |
|---|---|---|
description * | string | Who the voice is and how it sounds, in English, Thai, or Chinese, up to 1000 characters |
play | boolean | Play the voice's line out loud (default true). The line is saved to a file either way. |
refine_voice Refine a draft voice
Change a draft voice in words and play its new line. The instruction says what to change, such as "a little lower and slower" or "warmer, and older"; the rest of the voice stays, so change one quality at a time. Each call returns a new draft handle and the earlier handles keep their versions, so the user can go back to one. save_voice keeps the draft the user picks. Refining never changes a voice already saved: saving a refined draft makes another voice, and rename_voice changes only a name. Costs 5 credits per call, the line included; a retry refines again and is charged again.
| Parameter | Type | Description |
|---|---|---|
draft * | string | A draft handle that design_voice or refine_voice printed (such as "draft-2"), or a draft string from the Paxa console. |
instruction * | string | What to change about the voice, up to 500 characters |
play | boolean | Play the voice's line out loud (default true). The line is saved to a file either way. |
save_voice Save a designed voice
Save a draft from design_voice or refine_voice as one of the account's voices, and get its id (voice_...), which speak, queue_speech, and text_to_speech accept as voice on paxa-tts-flash-v2, for this account only. Save only the draft the user picked. Saving the same draft again returns the same voice and uses no slot. A saved voice's sound never changes: design a new voice for a different sound. The plan sets how many voices the account keeps (Free 1, Starter 3, Standard 10, Pro 50); list_voices shows the slots in use. Free.
| Parameter | Type | Description |
|---|---|---|
draft * | string | A draft handle that design_voice or refine_voice printed (such as "draft-2"), or a draft string from the Paxa console. |
name | string | A name for the voice, up to 60 characters (default: the name the design gave it). A catalog voice's name is refused. |
rename_voice Rename a designed voice
Rename one of the account's designed voices, given its voice_ id from list_voices or save_voice. The id and the sound stay the same, so anything that uses the id keeps working. The new name takes 1 to 60 characters, and a catalog voice's name is refused. To change how a voice sounds, refine a draft and save it as a new voice; to remove one, use delete_voice. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | The designed voice's id (voice_...), from list_voices or save_voice |
name * | string | The new name, up to 60 characters |
delete_voice Delete a designed voice
Delete one of the account's designed voices and free its slot. The id is the voice_ id list_voices shows; it is looked up first, so an id the account does not have is answered without deleting anything, and catalog voices cannot be deleted. Cannot be undone: every later request in the voice fails, and designing again does not bring the same sound back. Use it only when the user asks to delete that voice; to change only its name, use rename_voice. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | The designed voice's id (voice_...), from list_voices or save_voice |
translate Translate text
Translate text into any of 15 languages, from any of them, with Paxa Translate: Thai (th), English (en), Chinese (zh), Japanese (ja), Korean (ko), Arabic (ar), French (fr), German (de), Hindi (hi), Indonesian (id), Malay (ms), Portuguese (pt), Russian (ru), Spanish (es), Vietnamese (vi). The source language is detected per segment, so mixed-language text works; a segment already in the target language comes back unchanged. Accepts one string or up to 200 segments that share context, and returns each translation (numbered for segments) with its detected source language, any review flag, and the…
| Parameter | Type | Description |
|---|---|---|
target * | string | The language to write, as its code (see the description). Chinese ("zh") is written in Simplified characters. |
text * | Text to translate: one string, or an array of segments translated together | |
alternatives | integer | Renderings per segment, best first (default 1). Each one bills the text again and counts against the 20,000-character text limit. |
borrowed_words | string | How to render borrowed words: "auto" (default) uses the established form in the target language, "transliterate" writes them in the target script, "preserve" keeps technical terms and proper nouns in… |
context | string | Background that conditions the translation without being translated: the surrounding document, the domain, the audience |
do_not_translate | array | Strings that must appear in the translation exactly as written |
examples | array | Style examples: source sentences with their preferred translations, whose tone and phrasing the translation follows. Up to 100 pairs. |
formality | string | "auto" (default) matches the tone of the source; "formal" writes the target language's polite written register (polite particles in Thai, the polite form of address where a language has one); "casual"… |
format | string | Treat input as plain text, Markdown, or HTML; only the prose of Markdown and HTML is translated, links, code, and tags come back untouched |
glossary | array | Term pairs the translation must use, applied in context (inflected and placed grammatically). Send the whole glossary: terms whose source does not appear in the text are dropped before the request run… |
instructions | string | Free-form direction for the translator: tone, audience, house rules, terminology. Style only. |
source | string | Pin the source language only when detection gets it wrong (default "auto", detected per segment). Must differ from target. |
ocr_document OCR a document
Run Paxa OCR on a local PDF, PNG, JPEG, or WebP file and return its content as GitHub-flavored Markdown (or structured blocks). Reads Thai, English, Simplified Chinese, and other languages as printed, pages that mix them included, with no language setting; text set in two columns reads column by column. output "structured" returns typed blocks as JSON instead of Markdown. Use extract_fields instead for specific values (a total, a date, an ID number) checked and typed against a schema. Up to 50 pages and 10 MiB per file. Costs 6.5 credits per page.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to a local PDF, PNG, JPEG, or WebP file |
output | string | "markdown" (default) returns prose; "structured" returns typed blocks as JSON |
extract_fields Extract fields from a document
Extract typed fields from a local PDF, PNG, JPEG, or WebP document (up to 20 pages and 10 MiB) with Paxa Document Extraction. You write a schema of fields; every value returned is text printed in the document, read as the field's type, or null with the reason. Nothing is inferred or looked up. Built for Thai documents (receipts, tax invoices, forms, IDs) and fine on English ones. Use ocr_document instead for a document's full text. Returns a status line, the fields as JSON (null where a value is not printed), then the missing, unverified, truncated, and assumed fields. Costs 13 credits per pag…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to a local PDF, PNG, JPEG, or WebP file |
schema * | object | Prefer the most specific type for each field: a specific type verifies the printed value (a date must parse, a thai_id must pass its check digit, a bank must be a real bank) and returns a normalized f… |
include_evidence | boolean | Also return, per field path, the printed span the value was read from. Free. |
include_pages | boolean | Also return each page's text as Markdown, the reading the fields came from. Free. |
output_path | string | Save the full JSON response here. Relative paths resolve against PAXA_OUTPUT_DIR (or the working directory). An existing file is never overwritten. |
transcribe_audio Transcribe a recording
Transcribe a local recording or video of speech in Thai, English, Mandarin Chinese, or another language, code-switching included (mp3, wav including mu-law and A-law phone recordings, flac, ogg, m4a, aac, webm; or mp4, mov, mkv, avi and other video files, whose sound track is extracted locally with ffmpeg; up to 120 minutes and 95 MiB) with Paxa STT. The transcript comes back inline, so nothing needs to be read from disk afterwards; optionally it is also saved as txt, json (with word timings and segments), srt, or vtt, named after the recording. Existing files are never overwritten. Detects th…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to a local recording (mp3, wav, flac, ogg, m4a, aac, webm) or video (mp4, mov, mkv, avi, and more) |
convention | string | "spoken" (default) writes numbers and dates as they were said; "written" uses numerals. Only Thai is respelled; other languages read the same under both. |
diarization | boolean | Label speakers across the whole recording (slower to return). The transcript is then returned as one line per turn, and subtitle cues never cross a speaker change. |
language | string | The language the speech is expected in, as a BCP 47 tag such as "th", "en", or "zh". A hint, not a filter: other languages are still written as spoken. Omit to auto-detect; set it when detection picks… |
output_dir | string | Where to write the files. Defaults to the recording's own folder. A relative path resolves against PAXA_OUTPUT_DIR (or the working directory). |
pauses_over | number | List every silence between words at least this many seconds long, with its start and end: the dead air to cut when editing. 0.7 suits speech; 1.5 finds only the long gaps. Free (uses the word timings)… |
save | array | Files to write, named after the recording: txt (the transcript), json (text, words with timings, segments, usage), srt or vtt (subtitles rendered by the API). Omit to write nothing. |
style | string | "verbatim" (default) keeps fillers and false starts; "clean" drops them |
subtitle_line_chars | integer | Columns per subtitle line, 10 to 120 (default 60, or 32 when the words are mostly Chinese, Japanese, or Korean). A Chinese, Japanese, or Korean character or full-width punctuation mark takes two colum… |
timestamps | boolean | Also return word-level timings inline as JSON (can be long). The json file always has them. |
vocabulary | array | Keyword pinning: terms the recording likely contains, spelled the way they should appear in the transcript (product names, people, places, jargon; in any language). Up to 50 terms of 50 characters. Th… |
listen Listen to the microphone
Record one spoken turn from this machine's microphone and return its transcript (Thai, English, Mandarin Chinese, or another language, code-switching included). Paxa's realtime transcription detects when the user starts and stops talking, so the call returns as soon as the turn ends; the audio goes straight to the API and nothing is written to disk. Waits for any speech this server is playing to finish first. Use it after speak when you asked the user a question and want their spoken answer; for a recording already on disk, use transcribe_audio instead. Returns an empty transcript when nobody…
| Parameter | Type | Description |
|---|---|---|
convention | string | "spoken" (default) writes numbers as said; "written" uses numerals. Only Thai is respelled. |
language | string | The language the speech is expected in, as a BCP 47 tag such as "th", "en", or "zh". A hint, not a filter: other languages are still written as spoken. Omit to auto-detect; set it when detection picks… |
max_seconds | integer | Stop and return whatever was heard after this many seconds (default 30) |
style | string | "verbatim" (default) keeps fillers and false starts; "clean" drops them |
vocabulary | array | Keyword pinning, as in transcribe_audio. Added to any configured PAXA_VOCABULARY terms. |
wait_seconds | integer | Give up when nobody has started speaking after this many seconds (default 15) |
send_feedback Send feedback to Paxa
Report a wrong or poor output, an API problem, or a platform issue to the Paxa Labs team, tied to the request ids the other tools print ("Request id: ..."). A rating alone on at least one request id is a complete report. For a wrong output, add an example with the exact input, the output received, and the output expected. Returns the report's id once it is filed. Free, no credits. Use it when the user says an output was wrong, or asks to report a problem; do not file reports the user did not ask for.
| Parameter | Type | Description |
|---|---|---|
kind * | string | "model" for a wrong or poor output, "api" when the API misbehaved, "platform" for dashboard, billing, or docs, else "other" |
example | object | A worked case: the exact input, the output received, and the output expected |
message | string | What happened and what was expected, plain text or Markdown |
rating | string | Judgment of the output the request ids name |
request_ids | array | Up to 20 request ids from earlier tool results, or a live session's connection id |
list_voices List voices
List the Paxa TTS voices in one response (no paging): recommended voices first, the account's designed voices with their slots, then the catalog roster per model with ids, names, gender, language, and character notes. Call it when the user asks what voices exist or wants a different one, and before save_voice to see free slots; pass an id from it as voice to speak, queue_speech, or text_to_speech. The default voice needs no lookup. Free.
list_models List models
List the available Paxa models (speech, transcription, realtime transcription, translation, OCR, and extraction) with their limits and credit pricing, and the languages translate writes. Call it to check a limit or a price before a large job; voices are in list_voices, and the credit balance in get_account. Free.
sign_in Sign in to Paxa
Connect this machine to the user's Paxa account when no API key is configured: opens the Paxa sign-in page in the user's browser with a code filled in, and the user approves there (new accounts include free credits). Every Paxa tool then works, in every session on this machine, until the user signs out or leaves it unused for 30 days. Waits up to wait_seconds for the approval; if it has not come yet, call sign_in again to keep waiting on the same code. When no browser opens, it returns the page and the code at once for you to give the user. Answers at once when already signed in or when PAXA_A…
| Parameter | Type | Description |
|---|---|---|
wait_seconds | integer | How long to wait for the approval before returning (default 50). The sign-in keeps waiting in the background either way, until its code expires after 30 minutes. |
get_account Account and credits
Show the account behind the API key or sign-in, read from the API on each call: credit balance, spending cap, plan, and rate limits. Call it before a large paid job, or after a call fails for credits or a rate limit; prices per model are in list_models. Free.