# Japanese Sentence Evaluation Question Type

> This document is for developing the Japanese sentence evaluation question type.

Source: https://soe.dolphinvoice.ai/en/docs/mode/ja-basic/sentence

- This document is for developing the Japanese sentence evaluation question type.

## Applicable Scenarios

- Display a sentence to the test taker and shave them read it aloud.
- Score Japanese sentences, supporting Hiragana, Katakana, and loanwords.
- Evaluate overall pronunciation accuracy, fluency, completeness, word-level accuracy, and phoneme-level accuracy.
- When the comparison feature is enabled, assess the correlation between the test taker's pronunciation and the standard audio in terms of volume, intonation, and speech rate.
- The option to enable real-time result return can be set in the [evaluation parameters](https://soe.dolphinvoice.ai/en/docs/mode/common#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 | | "sentence" indicates the Japanese sentence evaluation type |
| refText | string | Yes | | Reference text for scoring, supports one or multiple sentences |
| phonemes | boolean | No | false | Whether to return phoneme information, default is not to return, set to true to return phoneme information |
| realtime\_full | boolean | No | false | Whether to return full real-time results, needs to be used with the public parameter 'realtime' |
| 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](https://soe.dolphinvoice.ai/en/docs/public/datadict/annotation-jp). |

Example:

```json
{
  "mode":"sentence",
  "refText":"こんにちは、お会いできて嬉しいです",
  "phonemes":true
}
```

## Evaluation Results

- [Complete JSON return example](https://soe.dolphinvoice.ai/en/docs/mode/ja-basic/sentence-result)

| **Field** | **Type** | **Description** |
| - | - | - |
| taskId | string | Task ID |
| timestamp | integer | Task timestamp |
| audioUrl | string | Audio URL (returned only when `audioUrl=true` in question type parameters)<br /><br />Note:<br />Audio is retained for 30 days by default. For permanent storage, download to your own server. |
| **params** | **dict** | **[Connection and request parameter object](https://soe.dolphinvoice.ai/en/docs/mode/common#params-connection-and-request-parameters-field)** |
| **audioInfo** | **dict** | **[Audio quality information object](https://soe.dolphinvoice.ai/en/docs/mode/common#audioinfo-audio-quality-information-field)** |
| refText | string | Reference text |
| hypothesis | string | Actual text read |
| overall | double/integer | Overall score (range determined by scoring system) |
| accuracy | double/integer | Accuracy score (range determined by scoring system) |
| wpm | integer | Words per minute |
| **fluency** | **dict** | **Fluency Score Object** |
| ├─ 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) |
| 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) |
| **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) |
| fluency | double/integer | Word fluency score (range determined by scoring system) |
| accuracy | double/integer | Word accuracy score (range determined by scoring system) |
| integrity | double/integer | Word completeness score (range determined by scoring system) |
| type | string | [Phoneme Pronunciation Types:](https://soe.dolphinvoice.ai/en/docs/public/datadict/other#characterwordphoneme-types)<br />① Normal Reading: normal<br />② Skipped Reading: delete<br />③ Repeated Reading: repeat<br />④ Out-of-vocabulary: oov |
| startTime | integer | Start time (ms) |
| endTime | integer | End time (ms) |
| 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", "6", 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:](https://soe.dolphinvoice.ai/en/docs/public/datadict/other#characterwordphoneme-types)<br />① Normal Reading: normal<br />② Skipped Reading: delete<br />③ Repeated Reading: repeat<br />④ Out-of-vocabulary: oov |