processRecordTransferResult(params: Object)
Requires:
WearKit≥1.0.0@ray-js/ray≥1.7.14
Platforms:
iOSAndroid
Description
Process recording transcription or summary result with SMART_MATCH or CUSTOM mode.
Parameters
| Property | Type | Required | Description | WearKit Since |
|---|---|---|---|---|
recordTransferId | number | Yes | Recording transcription ID | - |
template | string | Yes | Template: Required in CUSTOM mode (e.g., general summary, meeting minutes); not required in SMART_MATCH mode (auto-matched by the cloud based on the audio content) | - |
language | string | Yes | Language: Source language of the audio (applies when taskType=0 (upload + transcription)) | - |
taskType | number | Yes | Task type: 0: Upload + transcription with summary, 1: Text-only summary (TTT), 2: Translation | v1.2.2 |
transLang | string | Yes | Target language for summary output; if omitted, defaults to the transcription language - optional | v1.4.0 |
summaryLang | string | Yes | Target language for translation or summary: Optional in CUSTOM mode; not required in SMART_MATCH mode (the cloud automatically infers it from the transcription) | v1.4.0 |
enableSpeaker | boolean | Yes | Enable speaker diarization: In SMART_MATCH mode, it is recommended to let the cloud decide (blacklisted languages are auto-disabled); in CUSTOM mode, uses the specified boolean value | v1.4.0 |
generateMode | string | No | Generation mode: SMART_MATCH (intelligent match) | CUSTOM (custom settings); defaults to CUSTOM if omitted | v3.5.9 |
enableImageText | boolean | No | Whether to generate a text-and-image summary: true to enable, false to disable; if omitted, default rules apply (SMART_MATCH follows cloud decision; CUSTOM defaults to off) | v3.5.9 |
complete | () => void | No | Completion callback (executed on both success and failure) | - |
success | () => void | No | Callback on successful API call | - |
fail | (params: Object) => void | No | Failure callback | - |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None
Error Code
| Error Code | Error Message |
|---|---|
10001 | Internal error |
10011 | Network error |
10012 | Record not found |