- 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
| Field | Type | Default Value | Description | |
|---|---|---|---|---|
| mode | string | Required | sentence for the general model sentence evaluation sentence_kids for the child model sentence evaluation | |
| refText | string | Required | Reference text for scoring, not exceeding 300 characters The reference text supports special English annotation formats | |
| dict_type | string | IPA88 | Sets the type of phonetic transcription returned. Options are CMU/KK/IPA88, with IPA88 as the default. | |
| comparison | string | None | Comparison audio ID, enable comparison feature when provided | |
| realtime_full | boolean | false | Whether to return full real-time results | |
| pronunciation | list<dict> | Specify word pronunciations | None | |
| ├─ ipa | boolean | true for KK or DJ (15th edition) / IPA (88) phonetic schemes false for DolphinAI phonetic scheme | false | |
| ├─ text | string | Specified word | None | |
| ├─ phonemes | string | Pronunciation of specified words When specifying multiple pronunciations, use ` | ` to separate | None |
Example:
{
"mode": "sentence",
"refText": "Hi there."
}Evaluation Results
| Field | Type | Description |
|---|---|---|
| taskId | string | Task ID |
| timestamp | integer | Task timestamp |
| audioUrl | string | Audio 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 |
| params | dict | Connection and request parameter object |
| audioInfo | dict | Audio quality information object |
| refText | string | Reference text |
| hypothesis | string | Actual text content read |
| overall | double | Total score (range determined by scoring system) |
| fluency | dict | Fluency score object |
| ├─ overall | double | Fluency score (range determined by scoring system) |
| ├─ pause | integer | Number of pauses |
| ├─ speed | integer | Speed (0: slow, 1: normal, 2: fast) |
| accuracy | double | Accuracy (range determined by scoring system) |
| integrity | double | Completeness (range determined by scoring system) |
| rhythm | dict | Rhythm score object |
| ├─ overall | double | Overall rhythm score (range determined by scoring system) |
| ├─ stress | double | Stress score (range determined by scoring system) |
| ├─ tone | double | Tone score (range determined by scoring system) |
| ├─ sense | double | Sense group pause score (range determined by scoring system) |
| waveTime | integer | Actual recording duration (ms) |
| startTime | integer | The position where the start of the read in a recording (ms) |
| endTime | integer | The position where the end of the read in a recording (ms) |
| wordInfo | list<dict> | Word information object array (see below) |
| comparisonResult | dict | Comparison result object (see below) (Returned only when a valid comparison parameter is provided) |
wordInfo (Word Information) Field
| Field | Type | Description |
|---|---|---|
| refText | string | Reference text |
| hypothesis | string | Actual text content read |
| score | double | Total word score (range determined by scoring system) |
| fluency | double | Word fluency (range determined by scoring system) |
| accuracy | double | Word accuracy (range determined by scoring system) |
| integrity | double | Word completeness (range determined by scoring system) |
| rhythm | dict | Word rhythm information object |
| ├─ stressRef | integer | Word stress label (1 means stress should be applied, 0 means stress should not be applied/not checked) |
| ├─ stressScore | integer | Word stress score (1 means actual matches label, 0 means actual does not match label/not checked) |
| ├─ toneRef | integer | Word rising tone label (1 means rising tone should be applied, 0 means it should not be/not checked) |
| ├─ toneScore | integer | Word rising tone score (1 means actual matches label, 0 means actual does not match label/not checked) |
| ├─ senseRef | integer | Word sense group pause label (1 means a pause should be applied, 0 means it should not be/not checked) |
| ├─ senseScore | integer | Word sense group pause score (1 means actual matches label, 0 means actual does not match label/not checked) |
| ├─ liaisonRef | integer | Word 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. |
| ├─ liaisonScore | integer | Word liaison or loss of plosion score 0, indicates no liaison or loss of plosion occurred 1, indicates liaison or loss of plosion occurred |
| type | string | Phoneme Pronunciation Types: ① Normal Reading: normal ② Skipped Reading: delete ③ Repeated Reading: repeat</a> |
| fakePron | integer | Whether 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) |
| startTime | integer | Start time (ms) |
| endTime | integer | End time (ms) |
| startIndex | integer | The index of the first letter of the word in refText, starting from 0 |
| endIndex | integer | The index of the last letter of the word in refText, starting from 0 |
| syllables | list<dict> | Array of syllable information objects |
| ├─ syllable | string | Always empty |
| ├─ score | double | Always 0 |
| ├─ stressRef | integer | Always 0 |
| ├─ stressScore | integer | Always 0 |
| ├─ startTime | integer | Always 0 |
| ├─ endTime | integer | Always 0 |
| ├─├─ phonemes | list<dict> | Array of phoneme information objects, phonemes represented using DolphinAI scheme |
| ├─├─ phoneme | string | Phoneme information based on the ZhiYan CMU scheme |
| ├─├─ hypothesis | string | Actual CMU phoneme information |
| ├─├─ pron | string | CMU/KK/IPA88 phonemes. By default, IPA88 phonetic symbols are returned. If KK is required, you need to set dict_type accordingly. |
| ├─├─ score | double | Phoneme score (range determined by scoring system) |
| ├─├─ phid | string | Position of the letter in the word's phonemes, like 1_2 |
| ├─├─ ph2alpha | string | Original letter information corresponding to the phoneme |
| ├─├─ startTime | integer | Start time (ms) |
| ├─├─ endTime | integer | End time (ms) |
comparisonResult (Comparison Result) Field
This field is returned only when a valid comparison parameter is provided.
| Field | Type | Description |
|---|---|---|
| speed | dict | Speed comparison result object |
| ├─ ref | list<integer> | Array of discrete points for standard audio speed (0–100) |
| ├─ sim | list<integer> | Array of discrete points for imitation audio speed (0–100) |
| ├─ score | double | Speed correlation score (range determined by scoring system) |
| pitch | dict | Pitch comparison result object |
| ├─ ref | list<integer> | Array of discrete points for standard audio pitch (0–100) |
| ├─ sim | list<integer> | Array of discrete points for imitation audio pitch (0–100) |
| ├─ score | double | Pitch correlation score (range determined by scoring system) |
| volume | dict | Volume comparison result object |
| ├─ ref | list<integer> | Array of discrete points for standard audio volume (0–100) |
| ├─ sim | list<integer> | Array of discrete points for imitation audio volume (0–100) |
| ├─ score | double | Volume correlation score (range determined by scoring system) |
| details | list<dict> | Array of word information objects in the standard audio |
| ├─ refText | string | Word content |
| ├─ startIndex | integer | Discrete point number corresponding to the start position of the word |
| ├─ endIndex | integer | Discrete point number corresponding to the end position of the word |
Real-time Results
| Field | Type | Description |
|---|---|---|
| taskId | string | Task ID |
| timestamp | integer | Task timestamp |
| hypothesis | string | Text content already read |
| wordInfo | list | Word information object |
| ├─ index | integer | Word sequence number in params.refText |
| ├─ startIndex | integer | Indicates the index of the first letter of the word in refText, with indices starting from 0 |
| ├─ endIndex | integer | Indicates the index of the last letter of the word in refText, with indices starting from 0 |
| ├─ refText | string | Reference text |
| ├─ score | double | Word score |
| ├─ type | string | Word type |
| ├─ fakePron | integer | Whether 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) |