| class info |
| com.huawei.hms.mlsdk.aft.cloud.MLRemoteAftListener |
| 云侧语音转写事件侦听接口。 |
| 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) |
| 转写异常回调函数。 |
Parameters
| Parameter name | Parameter desc |
| taskId | 转写任务ID。 |
| errorCode | 异常错误码。 |
| message | 异常信息。如果错误码为文件转写失败11111,可通过message查看对应错误。3001: 可使用时长不足。3010: 转写任务超期。 |
| Method |
| public void onEvent(String taskId, int eventId, Object ext) |
| 预留接口。 |
| Method |
| public void onInitComplete(String taskId, Object ext) |
| 预留接口。 |
| Method |
| public void onResult(String taskId, MLRemoteAftResult result, Object ext) |
| 云侧查询转写结果回调函数。 |
Parameters
| Parameter name | Parameter desc |
| taskId | 转写任务ID。 |
| result | 语音转写结果。 |
| ext | 扩展信息。 |
| Method |
| public void onUploadProgress(String taskId, double progress, Object ext) |
| 预留接口。 |