getTranslateRecord(params: Object)
Requires:
AIKit≥0.0.1@ray-js/ray≥1.6.29
Platforms:
iOSAndroid
Description
Get translation details
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
translateId | number | Yes | Translation record ID |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | (params: Object) => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
success callback parameters
| Property | Type | Description | AIKit Since |
|---|---|---|---|
translateId | number | Translation record ID | - |
deviceId | string | Device ID | - |
originalLanguage | string | Source language | - |
targetLanguage | string | Target language | - |
recordId | string | Real-time transcription record ID | - |
agentId | string | Real-time transcription agent ID | - |
name | string | File name | - |
beginAt | number | Recording start time, timestamp in seconds | - |
endAt | number | End-of-recording duration (ms) | - |
duration | number | Recording duration | v0.0.2 |
visit | boolean | Whether already clicked | - |
remove | boolean | Whether removed (moved to trash) | - |
wavFilePath | string | Recording WAV file path | - |
summaryStatus | number | Summary status: 0 Not summarized, 1 In progress, 2 Completed, 3 Failed | - |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None