Docs menu
Question Types / English Basic

English Sentence Evaluation Test Type

View Markdown
  • This document is for the development of the English sentence evaluation test type.

Applicable Scenarios

  • Display a sentence to the respondent and then ask them to read aloud the content they see.
  • Evaluate overall pronunciation accuracy, fluency, completeness, rhythm score, word-level accuracy, rhythm score, and phoneme-level accuracy.
  • When comparison functionality is enabled, assess the similarity in volume, intonation, and speed between the imitation reading and the standard audio.
  • Options to enable real-time result return can be set in the evaluation parameters.
  • Provide two evaluation models: general and for children.

Question Type Limitations

  • The audio sent must not exceed 300 seconds, and the reference text must not exceed 300 characters.

Question Type Parameters

FieldTypeDefault ValueDescription
modestringRequiredsentence for the general model sentence evaluation
sentence_kids for the child model sentence evaluation
refTextstringRequiredReference text for scoring, not exceeding 300 characters
The reference text supports special English annotation formats
dict_typestringIPA88Sets the type of phonetic transcription returned. Options are CMU/KK/IPA88, with IPA88 as the default.
comparisonstringNoneComparison audio ID, enable comparison feature when provided
realtime_fullbooleanfalseWhether to return full real-time results
pronunciationlist<dict>Specify word pronunciationsNone
├─ ipabooleantrue for KK or DJ (15th edition) / IPA (88) phonetic schemes
false for DolphinAI phonetic scheme
false
├─ textstringSpecified wordNone
├─ phonemesstringPronunciation of specified words
When specifying multiple pronunciations, use `
` to separateNone

Example:

{
  "mode": "sentence",
  "refText": "Hi there."
}

Evaluation Results

FieldTypeDescription
taskIdstringTask ID
timestampintegerTask timestamp
audioUrlstringAudio URL (this field is returned only when the test type parameter audioUrl=true is set)

Note:
Audio is retained for 30 days by default, it is recommended to download it to your server for long-term preservation
paramsdictConnection and request parameter object
audioInfodictAudio quality information object
refTextstringReference text
hypothesisstringActual text content read
overalldoubleTotal score (range determined by scoring system)
fluencydictFluency score object
├─ overalldoubleFluency score (range determined by scoring system)
├─ pauseintegerNumber of pauses
├─ speedintegerSpeed (0: slow, 1: normal, 2: fast)
accuracydoubleAccuracy (range determined by scoring system)
integritydoubleCompleteness (range determined by scoring system)
rhythmdictRhythm score object
├─ overalldoubleOverall rhythm score (range determined by scoring system)
├─ stressdoubleStress score (range determined by scoring system)
├─ tonedoubleTone score (range determined by scoring system)
├─ sensedoubleSense group pause score (range determined by scoring system)
waveTimeintegerActual recording duration (ms)
startTimeintegerThe position where the start of the read in a recording (ms)
endTimeintegerThe position where the end of the read in a recording (ms)
wordInfolist<dict>Word information object array (see below)
comparisonResultdictComparison result object (see below)
(Returned only when a valid comparison parameter is provided)

wordInfo (Word Information) Field

FieldTypeDescription
refTextstringReference text
hypothesisstringActual text content read
scoredoubleTotal word score (range determined by scoring system)
fluencydoubleWord fluency (range determined by scoring system)
accuracydoubleWord accuracy (range determined by scoring system)
integritydoubleWord completeness (range determined by scoring system)
rhythmdictWord rhythm information object
├─ stressRefintegerWord stress label (1 means stress should be applied, 0 means stress should not be applied/not checked)
├─ stressScoreintegerWord stress score (1 means actual matches label, 0 means actual does not match label/not checked)
├─ toneRefintegerWord rising tone label (1 means rising tone should be applied, 0 means it should not be/not checked)
├─ toneScoreintegerWord rising tone score (1 means actual matches label, 0 means actual does not match label/not checked)
├─ senseRefintegerWord sense group pause label (1 means a pause should be applied, 0 means it should not be/not checked)
├─ senseScoreintegerWord sense group pause score (1 means actual matches label, 0 means actual does not match label/not checked)
├─ liaisonRefintegerWord liaison/loss of plosion label, determined by the engine based on the text of this word and the following word
0, indicates no need for liaison or loss of plosion.
1, indicates a need for liaison or loss of plosion.
├─ liaisonScoreintegerWord liaison or loss of plosion score
0, indicates no liaison or loss of plosion occurred
1, indicates liaison or loss of plosion occurred
typestringPhoneme Pronunciation Types:
① Normal Reading: normal
② Skipped Reading: delete
③ Repeated Reading: repeat</a>
fakePronintegerWhether it is an automatically predicted pronunciation by the system
0: The word is in the system library
1: The word is not in the system library, and the pronunciation is predicted by the system
2: The word is not in the system library and cannot be automatically predicted (type==oov)
startTimeintegerStart time (ms)
endTimeintegerEnd time (ms)
startIndexintegerThe index of the first letter of the word in refText, starting from 0
endIndexintegerThe index of the last letter of the word in refText, starting from 0
syllableslist<dict>Array of syllable information objects
├─ syllablestringAlways empty
├─ scoredoubleAlways 0
├─ stressRefintegerAlways 0
├─ stressScoreintegerAlways 0
├─ startTimeintegerAlways 0
├─ endTimeintegerAlways 0
├─├─ phonemeslist<dict>Array of phoneme information objects, phonemes represented using DolphinAI scheme
├─├─ phonemestringPhoneme information based on the ZhiYan CMU scheme
├─├─ hypothesisstringActual CMU phoneme information
├─├─ pronstringCMU/KK/IPA88 phonemes. By default, IPA88 phonetic symbols are returned. If KK is required, you need to set dict_type accordingly.
├─├─ scoredoublePhoneme score (range determined by scoring system)
├─├─ phidstringPosition of the letter in the word's phonemes, like 1_2
├─├─ ph2alphastringOriginal letter information corresponding to the phoneme
├─├─ startTimeintegerStart time (ms)
├─├─ endTimeintegerEnd time (ms)

comparisonResult (Comparison Result) Field

This field is returned only when a valid comparison parameter is provided.

FieldTypeDescription
speeddictSpeed comparison result object
├─ reflist<integer>Array of discrete points for standard audio speed (0–100)
├─ simlist<integer>Array of discrete points for imitation audio speed (0–100)
├─ scoredoubleSpeed correlation score (range determined by scoring system)
pitchdictPitch comparison result object
├─ reflist<integer>Array of discrete points for standard audio pitch (0–100)
├─ simlist<integer>Array of discrete points for imitation audio pitch (0–100)
├─ scoredoublePitch correlation score (range determined by scoring system)
volumedictVolume comparison result object
├─ reflist<integer>Array of discrete points for standard audio volume (0–100)
├─ simlist<integer>Array of discrete points for imitation audio volume (0–100)
├─ scoredoubleVolume correlation score (range determined by scoring system)
detailslist<dict>Array of word information objects in the standard audio
├─ refTextstringWord content
├─ startIndexintegerDiscrete point number corresponding to the start position of the word
├─ endIndexintegerDiscrete point number corresponding to the end position of the word

Real-time Results

FieldTypeDescription
taskIdstringTask ID
timestampintegerTask timestamp
hypothesisstringText content already read
wordInfolistWord information object
├─ indexintegerWord sequence number in params.refText
├─ startIndexintegerIndicates the index of the first letter of the word in refText, with indices starting from 0
├─ endIndexintegerIndicates the index of the last letter of the word in refText, with indices starting from 0
├─ refTextstringReference text
├─ scoredoubleWord score
├─ typestringWord type
├─ fakePronintegerWhether it is an automatically predicted pronunciation by the system
0: The word is in the system library
1: The word is not in the system library, pronunciation is predicted by the system
2: The word is not in the system library and cannot be automatically predicted (type==oov)