getTranslateFileDetail(params: Object)
Requires:
WearKit≥1.4.0@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Description
Get translation record details.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
fileId | number | Yes | fileid |
amplitudeMaxCount | string | No | Maximum amplitude count |
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 |
|---|---|---|
fileId | number | File ID |
noteFileId | number | AI Note file ID |
recordId | string | Recording ID |
recordType | number | Translation type |
name | string | File name |
recordTime | number | Record time, timestamp in seconds |
duration | number | Recording duration (milliseconds) |
deviceId | string | Device ID |
status | number | Status of sending to AI Note |
source | number | Audio source, consistent with audioSource |
filePath | string | Recording MP3 file path |
amplitudes | string | Amplitude string, separated by commas |
originalText | string | Original text |
targetText | string | Translated text |
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 |
10012 | Record not found |