- This document is for the development of the English Recitation evaluation type.
Applicable Scenarios
- Ask respondents to recite specified content from memory.
- The evaluation focuses on the degree of match with the reference answer and fluency.
- The option to enable real-time result return can be set in the evaluation parameters.
Question Type Limitations
- The maximum length of the audio sent should not exceed 600 seconds, and there is no character limit for the reference text.
Question Type Parameters
| Field | Type | Default Value | Description | |
|---|---|---|---|---|
| mode | string | Required | Indicates the recitation evaluation type. | |
| refText | string | Required | Reference answer. | |
| realtime_full | boolean | false | Whether to return real-time results in full. | |
| phonemes | boolean | false | Whether to return phoneme information | |
| accent | int | 3 | Specifies British and American pronunciation, the values are 1, 2, 3, the default is 3; 1: British pronunciation 2: American pronunciation 3: No distinction | |
| pronunciation | list<dict> | Specify word pronunciations | None | |
| ├─ ipa | boolean | Specifies the KK or DJ(15th edition)/IPA(88) phonetic scheme if true; if false, the DolphinAI phonetic scheme is used. | false | |
| ├─ text | string | Specified word | None | |
| ├─ phonemes | string | Pronunciation of specified words. Separate multiple pronunciations with a vertical line ` | `. | None |
Example:
{
"mode": "recite",
"refText": "You may not be able to control the times, but you can compose your response. You can turn your pain into provanity or into poetry. The choice is up to you.",
}Evaluation Results
| Field | Type | Description |
|---|---|---|
| taskId | string | Task ID |
| timestamp | integer | Task timestamp |
| audioUrl | string | Audio address (returned only when 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 parameters 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 | double | Fluency score object |
| ├─ overall | double | Fluency score (range determined by scoring system) |
| ├─ pause | integer | Number of pauses |
| ├─ speed | integer | Speaking speed (0: slow, 1: normal, 2: fast) |
| accuracy | double | Accuracy (range determined by scoring system) |
| integrity | double | Integrity (range determined by scoring system) |
| rhythm | dict | Rhythm score object |
| ├─ overall | double | Rhythm overall 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 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 |
wordInfo (Word Information) Fields
| Field | Type | Description |
|---|---|---|
| refText | string | Reference text |
| hypothesis | string | Actual text content read |
| score | double | 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 integrity (range determined by scoring system) |
| rhythm | dict | Word rhythm information object |
| ├─ stressRef | integer | Word stress label (1: should be stressed, 0: should not be stressed/not checked) |
| ├─ stressScore | integer | Word stress score (1: actual matches label, 0: actual does not match label/not checked) |
| ├─ toneRef | integer | Word rising tone label (1: should rise, 0: should not rise/not checked) |
| ├─ toneScore | integer | Word rising tone score (1: actual matches label, 0: actual does not match label/not checked) |
| ├─ senseRef | integer | Word sense pause label (1: should pause, 0: should not pause/not checked) |
| ├─ senseScore | integer | Word sense pause score (1: actual matches label, 0: actual does not match label/not checked) |
| ├─ liaisonRef | integer | Word liaison label (1: should link with next word, 0: should not link/not checked) |
| ├─ liaisonScore | integer | Word liaison score (1: actual matches label, 0: actual does not match label/not checked) |
| type | string | Phoneme Pronunciation Types: ① Normal Reading: normal ② Skipped Reading: delete ③ Repeated Reading: repeat</a> |
| fakePron | integer | Whether it's an automatically predicted pronunciation 0: word is in the system library 1: word is not in the system library, predicted by the system 2: word is not in the system library and cannot be predicted (type==oov) |
| 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 |
| startTime | integer | Start time (ms) |
| endTime | integer | End time (ms) |
Real-Time Results
| Field | Type | Description |
|---|---|---|
| taskId | string | Task ID |
| timestamp | integer | Task timestamp |
| hypothesis | string | Text content read so far |
| wordInfo | list<dict> | Array of word information objects |
| ├─ index | integer | Word index 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's an automatically predicted pronunciation 0: word is in the system library 1: word is not in the system library, predicted by the system 2: word is not in the system library and cannot be predicted (type==oov) |