Evaluation Parameters
| Parameter Name | Type | Description | Default Value |
|---|---|---|---|
| langType | Enum | Language options English: en-US Japanese:ja-JP | Required |
| sampleRate | int | Audio sample rate (Hz), currently only 16000 is supported | Required |
| looseness | int | Scoring looseness for basic question types, range: 0-9, the larger the value, the looser | 4 |
| connectTimeout | int | Connection timeout (seconds), range: 5-60 | 15 |
| responseTimeout | int | Response timeout (seconds), range: 5-120 | 15 |
| scale | int | Scoring scale, range: 1-100 | 100 |
| scaleF | float | Floating-point scoring scale, valid range: (0, 100], with at most one decimal place (for example, 0.5, 1.0, or 99.9). Takes precedence over scale: when scaleF > 0, use scaleF and ignore scale; when scaleF = 0 (default) or is omitted, use scale.0 is reserved and is not an actual scoring scale. Precision and validation: values with more than one decimal place are rounded to one decimal place before validation (for example, 0.55 becomes 0.6). If the rounded value is outside (0, 100] (for example, 0.04 becomes 0.0, or 100.05 becomes 100.1), or the input is otherwise invalid (such as a negative number), it is treated as 0: ignore scaleF and fall back to scale. | 0 |
| ratio | float | Adjustment coefficient for basic question type scoring, range: 0.8-1.5 (up to 3 decimal places) This coefficient adjusts the scores (out of 100) between 30 and 90 for basic question types, with no change for other ranges ratio >1.0 increases the score, with higher adjustment closer to 75ratio <1.0 decreases the score, with higher adjustment closer to 75ratio =1.0 does not adjust the score | 1.0 |
| audioUrl | boolean | Whether to return the audio download URL Audio is kept for 30 days by default, it's recommended to download to your own server for persistent storage | false |
| realtime | boolean | Whether to return results in real time English: sentence, chapter, freedom, recite Japanese: sentence, chapter | false |
| maxPrefixSilenceMs | int | Threshold for detecting leading silence in audio (seconds), range [0-30000]. If the leading silence exceeds this threshold, a Warning event will be returned. Set to 0 or omit this parameter to disable leading silence detection. | 0 |
| maxSuffixSilenceMs | int | Threshold for detecting trailing silence in audio (seconds), range [0-30000]. If the trailing silence exceeds this threshold, the evaluation will end automatically. Set to 0 or omit this parameter to disable trailing silence detection. | 0 |
| connti | int | Whether to enable liaison and loss of explosion detection, default is 0, only for English connti=0, disabled connti=1, enabled | |
| mini | int | Default is 0, returns full data. When set to 1, it only returns simplified data (total score, fluency, accuracy, completeness, etc.) | |
| precision | string | Set scoring precision, default is 0, supports only 0, 0.1, 0.25, 0.5, 1. If the set value is not one of these, it is treated as 0 |
The method for setting common parameters varies across different SDKs, please refer to the respective SDK development documentation.
Response Parameters
params (connection and request parameters) field
| Field | Type | Description |
|---|---|---|
| connection | string | Connection parameters |
| ├─ sdk | string | SDK language (android/ios/h5 etc.) |
| ├─ version | string | SDK version |
| ├─ core | string | Decoder version |
| ├─ gateway | string | Gateway version |
| ├─ appId | string | appId used for connection |
| ├─ userId | string | userId passed when calling the API |
| ├─ deviceId | string | Device ID |
| request | dict | Request parameters |
| ├─ params | dict | Question type parameters |
| ├─ langType | string | Language option |
| ├─ format | string | Audio format |
| ├─ sampleRate | integer | Sample rate |
| ├─ looseness | integer | Scoring looseness (0~9 increasingly loose) |
| ├─ scale | integer | Scoring scale (1~100) |
| ├─ connectTimeout | integer | Connection timeout limit (seconds) |
| ├─ responseTimeout | integer | Response timeout limit (seconds) |
| ├─ connti | integer | Whether to enable connected speech and missed explosion detection |
| ├─ ratio | float | Scoring adjustment coefficient Please round this value to avoid precision issues before using it |
| ├─ audioUrl | boolean | Whether to return audio download URL |
timing (Evaluation Processing Time)
All values are in milliseconds.
| Field | Type | Description |
|---|---|---|
| rtt | integer | RTT: maximum heartbeat round-trip latency. |
| whd | integer | WsHandshakeDuration: WebSocket handshake duration. |
| wsd | integer | WsConnToStartMsgDuration: time from establishing the WebSocket connection to sending the start message. |
| bd | integer | BeginDuration: time between sending startMsg and receiving Started, used to measure the decoder's resetSession response time. |
| sd | integer | StopDuration: time from receiving stopMsg to returning the result. |
| td | integer | TotalEvaluationDuration: total evaluation processing time. |
audioInfo (audio quality information) field
| Parameter | Type | Description |
|---|---|---|
| snr | double | Signal-to-noise ratio, higher value means clearer audio (-20 to +60dB) This parameter affects scoring by setting the corresponding tipId value |
| clip | double | Audio is clipped due to excessive volume (0 to 1) This parameter affects scoring by setting the corresponding tipId value |
| volume | double | Recording volume (0 to 90dB) |
| tipId | string | Audio quality type ID |
tipId Explanation
| tipId | Description | User Prompt | Priority |
|---|---|---|---|
| 00000 | Normal audio | None | - |
| 90001 | User speech is incomplete, e.g. "good morning" but only said "good" | May prompt incomplete speech | 4 |
| 90002 | Incomplete recognition, mostly caused by silence or too short audio | May prompt incomplete speech | 3 |
| 90003 | Low volume, possibly too far from microphone | May suggest adjusting microphone distance or volume | 2 |
| 90004 | Audio is clipped, possibly too close to microphone | May suggest adjusting microphone distance or volume | 2 |
| 90005 | Poor audio quality (low signal-to-noise ratio due to noisy environment or unclear speech) | May prompt unclear speech | 1 |
| 90006 | The speaker uses a different language from the one selected for evaluation | May prompt to answer as required, no irrelevant content | 5 |
When multiple audio quality types are triggered, the tipId with the highest priority (larger number) will be returned.