Score Speech/Language Detection
Run in Postman: Language Scores
Request Format
The request parameters in the cURL code below are the same as in the Score Text/Open-ended scoring function. To detect the language following parameters can be used:
detect_dialect = 1
: This parameter is used to detect the dialect of the spoken language without impacting the user's test score. This approach is more lenient, allowing the user to proceed with their score intact even if the detected dialect doesn’t match the expected one. In this case, the API output will return the potential language in which the user provided a response.enforce_dialect = 1
: This parameter is used to enforce the correct dialect, resulting in a hard error if the response is in an unexpected language. If the detected dialect is incorrect, the API will generate an error, and the developer can set the user's score to zero based on this error response.
Response Example
The following responses illustrate two scenarios: in the first case, the language code for the detected language/dialect is reported under the key detected_dialect
, resulting in a warning for the user. In the second case, an incorrect dialect triggers an enforced error under the key detail_message
, preventing further action.
Last updated