Validate Text

POST https://api.speechace.co/api/validating/text/v0.5/json?key={{speechacekey}}&text="Validate these words existeee."&dialect=en-us

In this example we validate whether all the words in the text exist in the Speechace lexicon. This API allows you to quickly check whether authored content will be able to be scored with Speechace. This is useful to use at the time of text authoring to avoid errors later on.

Out of lexicon terms can be reported to support@speechace.com for inclusion. Or you can see the phoneme list API as an alternative.

Copy the example code and be sure to:

  1. Add your Speechace API key
  2. Replace text with the text you wish to validate.
  3. Set the dialect parameter to the dialect you will use when scoring. If you are not sure which dialect will be used then validate once using each available dialect.

Request Params

KeyDatatypeRequiredDescription
keystringAPI key issued by Speechace.
textstringA sentence or sequence of words to validate.
dialectstringThe dialect to use for validation. Default is "en-us". Supported values are "en-us" (US English) and "en-gb" (UK English).

RESPONSES

status: OK

{"status":"error","detail_message":"existeee","short_message":"error_unknown_words"}