Skip to main content
POST
/
v1
/
stt
/
calculate-accuracy
curl -X POST "https://api.destined.ai/v1/stt/calculate-accuracy" \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "Hello, this is a test.",
    "hypothesis": "Hello, this is the test."
  }'
{
  "wer": 0.20,
  "cer": 0.05,
  "substitutions": 1,
  "insertions": 0,
  "deletions": 0,
  "reference_words": 5,
  "hypothesis_words": 5
}

Documentation Index

Fetch the complete documentation index at: https://docs.destined.ai/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint does not require authentication.

Request Body

reference
string
required
The ground truth text
hypothesis
string
required
The transcribed text to evaluate

Response

wer
number
required
Word Error Rate (0.0 to 1.0)
cer
number
required
Character Error Rate (0.0 to 1.0)
substitutions
integer
required
Number of word substitutions
insertions
integer
required
Number of word insertions
deletions
integer
required
Number of word deletions
curl -X POST "https://api.destined.ai/v1/stt/calculate-accuracy" \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "Hello, this is a test.",
    "hypothesis": "Hello, this is the test."
  }'
{
  "wer": 0.20,
  "cer": 0.05,
  "substitutions": 1,
  "insertions": 0,
  "deletions": 0,
  "reference_words": 5,
  "hypothesis_words": 5
}