- This document is for developing the Japanese paragraph evaluation question type.
Applicable Scenarios
- Display a segment of text to the test taker and have them read it aloud.
- Score Japanese paragraphs, supporting Hiragana, Katakana, and loanwords.
- Evaluate overall pronunciation accuracy, fluency, completeness, and word-level accuracy scoring.
- The option to enable real-time result return can be set in the evaluation parameters.
Question Type Restrictions
- Audio submissions should not exceed 400 seconds, and the reference text should not exceed 10,000 characters.
Question Type Parameters
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| mode | string | Yes | "chapter" indicates the Japanese paragraph evaluation type | |
| refText | string | Yes | Reference text for scoring | |
| phonemes | boolean | No | false | Whether the results include phoneme information dimension |
| realtime_full | boolean | No | false | Whether to return full real-time results, needs to be used with the public parameter 'realtime' |
| clause_sign | list<string> | No | ["。","?","!",";",".","?","!",";"] | Array of clause markers, if not set, defaults to periods, question marks, exclamation points, and semicolons for clause segmentation. If the business does not require segmentation by these symbols, custom settings can be made; All supported clause symbols are: ["。","?","!",";",".","?","!",";",",",",","\n","\t"], which includes periods, question marks, exclamation points, semicolons, commas, line breaks, and tabs. Note: If you only want to segment by line breaks and tabs, you can set it to ["\n","\t"], provided that the evaluation text contains line breaks and tabs. |
| pronunciation | list<dict> | No | None | Configuration for specifying pronunciation of characters and symbols |
| ├─ text | string | No | None | Specified character, word, or symbol for pronunciation |
| ├─ phonemes | string | No | None | Pronunciation of specified characters or words. Supports the p and t tags; see Japanese Special Annotation Format. |
Example:
{
"mode":"chapter",
"refText":"私の趣味は色々あります。例えば、バスケットボールをするとか、小説を見るとか。でも、休みの時、一番好きなのは映画を見ることです。",
"phonemes":true
}Evaluation Results
| Field | Type | Description |
|---|---|---|
| taskId | string | Task ID |
| timestamp | integer | Task timestamp |
| audioUrl | string | Audio URL (returned only when audioUrl=true in question type parameters)Note: Audio is retained for 30 days by default. For permanent storage, download to your own server. |
| params | dict | Connection and request parameter object |
| audioInfo | dict | Audio quality information object |
| refText | string | Reference text |
| hypothesis | string | Actual text read |
| overall | double/integer | Overall score (range determined by scoring system) |
| wpm | integer | Words per minute |
| fluency | dict | Fluency Score Object (range determined by scoring system) |
| ├─ overall | double/integer | Fluency score (range determined by scoring system) |
| ├─ pause | integer | Number of pauses |
| ├─ speed | integer | Speaking speed (0: slow, 1: normal, 2: fast) |
| accuracy | double/integer | Accuracy score (range determined by scoring system) |
| integrity | double/integer | Completeness score (range determined by scoring system) |
| tone [New] | double/integer | Overall pitch accent score |
| waveTime | integer | Actual recording duration (ms) |
| startTime | integer | Start position in a recording segment (ms) |
| endTime | integer | Stop position in a recording segment (ms) |
| sentenceInfo | list<dict> | Sentence Information Object Array (see below) |
sentenceInfo (Sentence Information) Fields
| Field | Type | Description |
|---|---|---|
| refText | string | Reference text |
| hypothesis | string | Actual text read |
| overall | double | Sentence total score (range determined by scoring system) |
| startTime | integer | Start position in a recording segment (ms) |
| endTime | integer | Stop position in a recording segment (ms) |
| characters | list<dict> | Word Information Object Array (see below) |
characters (Word Information) Fields
| Field | Type | Description |
|---|---|---|
| refText | string | Reference text |
| hypothesis | string | Actual text read |
| overall | double/integer | Total score for the word (range determined by scoring system) |
| startTime | integer | Start time (ms) |
| endTime | integer | End time (ms) |
| type | string | Phoneme Pronunciation Types: ① Normal Reading: normal ② Skipped Reading: delete ③ Repeated Reading: repeat ④ Out-of-vocabulary: oov |
| startIndex | integer | Index of the first character in refText, starting from 0 |
| endIndex | integer | Index of the last character in refText, starting from 0 |
| ref_tone | string | Pitch accent from the dictionary, can be empty or ◎, ①, ②, ③, ④, ⑤; represented by "", "0", "1", "2", "3", "4", "5", or combinations like "0/1". Empty means no matching pitch accent found in the dictionary |
| tone_score [New] | double/integer | Word-level pitch accent score |
| phonemes | list<dict> | Array of phoneme information objects, returned only if phonemes are enabled (set to true). Returns an empty array when type is oov |
| ├─ phoneme | string | Phoneme information (Hiragana display) |
| ├─ pron | string | Phoneme information (Katakana display) |
| ├─ tone | integer | Reference pitch, 0: low pitch, 1: high pitch |
| ├─hypothesis | string | Actual phoneme read |
| ├─ score | double/integer | Phoneme score (range determined by scoring system) |
| ├─ 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 already read |
| wordInfo | list | Word Information Objects |
| ├─ index | integer | Corresponding word number in params.refText |
| ├─startIndex | integer | Index of the first character in refText, starting from 0 |
| ├─endIndex | integer | Index of the last character in refText, starting from 0 |
| ├─ refText | string | Reference text |
| ├─ score | double/integer | Word score |
| ├─ type | string | Phoneme Pronunciation Types: ① Normal Reading: normal ② Skipped Reading: delete ③ Repeated Reading: repeat ④ Out-of-vocabulary: oov |