| class info |
| com.huawei.hms.mlsdk.aft.cloud.MLRemoteAftListener |
| Listens to audio transcription events on the cloud. |
| Return type | Method name |
| void | onError(String taskId, int errorCode, String message) |
| void | onEvent(String taskId, int eventId, Object ext) |
| void | onInitComplete(String taskId, Object ext) |
| void | onResult(String taskId, MLRemoteAftResult result, Object ext) |
| void | onUploadProgress(String taskId, double progress, Object ext) |
| Method |
| public void onError(String taskId, int errorCode, String message) |
| Called if an audio transcription error occurs. |
Parameters
| Parameter name | Parameter desc |
| taskId | ID of the audio transcription task. |
| errorCode | Error code. |
| message | Error information. If the error code is 11111, indicating an audio transcription failure, you can view error information in message. 3001: The available duration is insufficient. 3010: The audio transcription task has expired. |
| Method |
| public void onEvent(String taskId, int eventId, Object ext) |
| Reserved. |
| Method |
| public void onInitComplete(String taskId, Object ext) |
| Reserved. |
| Method |
| public void onResult(String taskId, MLRemoteAftResult result, Object ext) |
| Called when the audio transcription result is returned on the cloud. |
Parameters
| Parameter name | Parameter desc |
| taskId | ID of the audio transcription task. |
| result | Audio transcription result. |
| ext | Extended information. |
| Method |
| public void onUploadProgress(String taskId, double progress, Object ext) |
| Reserved. |