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:
- Add your Speechace API key
- Replace text with the text you wish to validate.
- 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
| Key | Datatype | Required | Description |
|---|---|---|---|
key | string | API key issued by Speechace. | |
text | string | A sentence or sequence of words to validate. | |
dialect | string | The 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"}