Docs menu
Question Types

Common Parameters

View Markdown

Evaluation Parameters

Parameter NameTypeDescriptionDefault Value
langTypeEnumLanguage options
English: en-US
Japanese:ja-JP
Required
sampleRateintAudio sample rate (Hz), currently only 16000 is supportedRequired
loosenessintScoring looseness for basic question types, range: 0-9, the larger the value, the looser4
connectTimeoutintConnection timeout (seconds), range: 5-6015
responseTimeoutintResponse timeout (seconds), range: 5-12015
scaleintScoring scale, range: 1-100100
scaleFfloatFloating-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
ratiofloatAdjustment 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 75
ratio <1.0 decreases the score, with higher adjustment closer to 75
ratio =1.0 does not adjust the score
1.0
audioUrlbooleanWhether 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
realtimebooleanWhether to return results in real time
English: sentence, chapter, freedom, recite
Japanese: sentence, chapter
false
maxPrefixSilenceMsintThreshold 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
maxSuffixSilenceMsintThreshold 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
conntiintWhether to enable liaison and loss of explosion detection, default is 0, only for English
connti=0, disabled
connti=1, enabled
miniintDefault is 0, returns full data. When set to 1, it only returns simplified data (total score, fluency, accuracy, completeness, etc.)
precisionstringSet 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

FieldTypeDescription
connectionstringConnection parameters
├─ sdkstringSDK language (android/ios/h5 etc.)
├─ versionstringSDK version
├─ corestringDecoder version
├─ gatewaystringGateway version
├─ appIdstringappId used for connection
├─ userIdstringuserId passed when calling the API
├─ deviceIdstringDevice ID
requestdictRequest parameters
├─ paramsdictQuestion type parameters
├─ langTypestringLanguage option
├─ formatstringAudio format
├─ sampleRateintegerSample rate
├─ loosenessintegerScoring looseness (0~9 increasingly loose)
├─ scaleintegerScoring scale (1~100)
├─ connectTimeoutintegerConnection timeout limit (seconds)
├─ responseTimeoutintegerResponse timeout limit (seconds)
├─ conntiintegerWhether to enable connected speech and missed explosion detection
├─ ratiofloatScoring adjustment coefficient
Please round this value to avoid precision issues before using it
├─ audioUrlbooleanWhether to return audio download URL

timing (Evaluation Processing Time)

All values are in milliseconds.

FieldTypeDescription
rttintegerRTT: maximum heartbeat round-trip latency.
whdintegerWsHandshakeDuration: WebSocket handshake duration.
wsdintegerWsConnToStartMsgDuration: time from establishing the WebSocket connection to sending the start message.
bdintegerBeginDuration: time between sending startMsg and receiving Started, used to measure the decoder's resetSession response time.
sdintegerStopDuration: time from receiving stopMsg to returning the result.
tdintegerTotalEvaluationDuration: total evaluation processing time.

audioInfo (audio quality information) field

ParameterTypeDescription
snrdoubleSignal-to-noise ratio, higher value means clearer audio (-20 to +60dB)
This parameter affects scoring by setting the corresponding tipId value
clipdoubleAudio is clipped due to excessive volume (0 to 1)
This parameter affects scoring by setting the corresponding tipId value
volumedoubleRecording volume (0 to 90dB)
tipIdstringAudio quality type ID

tipId Explanation

tipIdDescriptionUser PromptPriority
00000Normal audioNone-
90001User speech is incomplete, e.g. "good morning" but only said "good"May prompt incomplete speech4
90002Incomplete recognition, mostly caused by silence or too short audioMay prompt incomplete speech3
90003Low volume, possibly too far from microphoneMay suggest adjusting microphone distance or volume2
90004Audio is clipped, possibly too close to microphoneMay suggest adjusting microphone distance or volume2
90005Poor audio quality (low signal-to-noise ratio due to noisy environment or unclear speech)May prompt unclear speech1
90006The speaker uses a different language from the one selected for evaluationMay prompt to answer as required, no irrelevant content5

When multiple audio quality types are triggered, the tipId with the highest priority (larger number) will be returned.