getTranslateSummaryProcessStatus(params: Object)

Requires:
AIKit≥0.0.1@ray-js/ray≥1.6.29
Platforms:
iOSAndroid
import { ai } from '@ray-js/ray';

const { getTranslateSummaryProcessStatus } = ai;

// Promise usage
try {
  const res = await getTranslateSummaryProcessStatus({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Description

Query summary status

Parameters

PropertyTypeRequiredDescription
deviceIdstringYesDevice ID
translateIdsstring[]YesTranslation record ID list
complete() => voidNoCompletion callback (executed on both success and failure)
success(params: Object) => voidNoCallback on successful API call
fail(params: Object) => voidNoFailure callback
success callback parameters
PropertyTypeDescription
successstring[]List of file IDs with successful transcription
failstring[]List of file IDs with failed transcription
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

Return Value

None

Examples

import { ai } from '@ray-js/ray'

ai.getTranslateSummaryProcessStatus({
  deviceId: "xx",
  translateIds: [],
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});