ChivoxAI

/docs

en.sent.rec

Kernel Description

Pass multiple text branches to the kernel, and the kernal feeds back the text branches read by the user, and gives the total score, fluency score, completeness score, accuracy score, and each word score. If a word in the text content is a keyword that needs to be detected, you can useAITalk Kernel.

  • Support function: English and American pronunciation distinction.
  • Applicable question types: situational response, information acquisition, etc.

Request Parameters

Parameters Type Required Description
coreType String true “en.sent.rec” means Limited Branching Kernel.
refText String true The answer branch list, multiple branch options are separated by |, The recommended number of branches is 2-10.
Each branch supports the entire sentence, with punctuation marks, and the recommended number of words is 2-15.
e.g.:"Yes, please. | No, thanks."
See more details, please refer to Symbols Supported in English Sentence Core in Text Symbol Description.
accent int false Specify British or American pronunciation. 1, 2 or 3, Default value is 3.
  • 1. Accept British pronunciation.
  • 2: Accept American pronunciation.
  • 3: Accept both British and American pronunciation.
Now about 4000 words have been marked British and American pronunciation in our dictionary.
attachAudioUrl number false Enable to return audio url or not.
  • 0: Disable
  • 1: Enable
result object false
- use_details number false Set to 1 means that each word score will be displayed.

Sample Code

{
  "coreType": "en.sent.rec", 
  "refText": "Today is Friday.|It is Monday.|It is a sunny day.", 
  "accent": 1,
  "attachAudioUrl": 1, 
  "result": {
    "use_details": 1
  }
}

Example of Returned Results

  • The results are returned using the JSON structure.Example

Introduction to Returned Results

Key Type Description Recommendations
uuid string Unique id of audio. Save uuid in database in case of need. For reference
audioUrl string Audio url.

Download audio in http protocol: Just add ".mp3" at the end of the URL.
Download audio in https protocol: Remove the port number, add ".mp3" at the end, and add "https://" to the prefix.
e.g.https://download.cloud.chivox.com/XXXXXXXX.mp3

Tips:
  • Chivox save audio for one week. Please save audio to your own server for long-term storage.
  • The domain name will be different for different access areas, and the actual return shall prevail.
For reference
result object Recognized result.
- wavetime number Audio duration (Unit:milliseconds). For reference
- conf number Confidence score.
The matching degree between the recognized reading content and an answer branch in the text passed to the kernel.
The threshold is set by the application layer to determine whether the result is correct (generally 75, which can be adjusted up and down according to the difficulty of the question).
Suggest to display
- rec string Recognized text branch. Suggest to display
- overall number The overall score for evaluating the identified branch options. Suggest to display
- fluency object Fluency score details.
- - pause number Number of pauses. Suggest to display
- - overall number Overall score of fluency. Suggest to display
- - speed number Speech rate, which is the number of words read per minute. Suggest to display
- integrity number Score of integrity. Suggest to display
- accuracy number Score of accuracy(pronunciation evaluation of the read part). For reference
- starttime number The start time of the pronunciation in the audio, in milliseconds (ms). For reference
- endtime number The end time of the pronunciation in the audio, in milliseconds (ms). For reference
- details object
- - char string word text Suggest to display
- - score number each word score Suggest to display
- - accent int 0, 1, 2 or 3:
  • 0: Its pronunciations are not marked with American or British accent.
  • 1: British pronunciation.
  • 2: American pronunciation.
  • 3: English pronunciation is the same as American pronunciation.
Suggest to display
- - start number The start time of the word in audio (Unit:milliseconds). Suggest to display
- - end number The end time of the word in audio (Unit: milliseconds). Suggest to display
- info object
- - tipId number Audio quality
For details, please refer to TipId field description
For reference
- - tips string Error message prompt
When prompted "post proc failed", it may be that the audio was not successfully recorded or the engine did not detect the user’s valid voice.
Prompt the user to re-record
For reference

Note: The other returned parameters that are not shown above are internal ones, which you don't need to pay much atttention to.

Suggestions for handling scoring results

Firstly, it is judged whether the value of the conf field exceeds the set threshold. If it exceeds, the content of the rec field is extracted, that is, the branch text read by the user is recognized this time. Otherwise, the user is prompted to try to read aloud again or not hear your pronunciation clearly.

SDK, API, MCP and Function Calling documentation on this site.