Utilities

Check a reference text before recording

Applies the engine’s reference rules (script, digits, length, Mandarin pinyin parsing and character count) without audio. Free; no API key; 120 requests per minute per IP address. A text that passes can still be refused by a newer engine.

post/v1/lint

Request

  • Base URL: https://api.toneperfect.app
  • URL: https://api.toneperfect.app/v1/lint
  • Auth: none required

Request body

textstring required
language'zh-CN' | 'en-US' | 'fr-FR' | 'es-419' | 'de-DE' | 'it-IT' | 'pt-BR' | 'ru-RU' | 'ko-KR' | 'ja-JP'
pinyinstring
task'general' | 'connected_speech' | 'isolated_word'

Response

Lint result. ok is false when at least one issue has severity error.

okboolean required
languagestring required
unitsinteger required

Characters (Mandarin) or words counted.

Changes

No recorded changes to this operation across all 1 revision of this API.