智能客服
你问我答,随时在线为你解决问题

























此版本文档已归档不再维护,推荐您使用最新版本。
| class info |
| com.huawei.hms.mlplugin.asr.MLAsrCaptureConstants |
| 实时语音识别服务配置常量定义。 |
| Type | Name | Desc |
| String | ASR_ERROR_CODE | 错误码。 11202:无网络连接; 11203:服务不可用; 11204:无法识别。 |
| String | ASR SUB ERROR CODE | 子错误码。 |
| String | ASR_ERROR_MESSAGE | 错误信息。 |
| int | ASR_FAILURE | 识别失败。 |
| String | ASR_RESULT | 识别结果。 |
| int | ASR_SUCCESS | 识别成功。 |
| String | FEATURE | 插件特性。当前支持实时出字和整段出字两种特性: FEATURE_WORDFLUX:实时出字; FEATURE_ALLINONE:整段出字。 |
| int | FEATURE_ALLINONE | 整段识别特性,说话过程中不出字,说完后一次性返回识别结果。 |
| int | FEATURE_WORDFLUX | 实时出字特性,边说话边出字。 |
| String | LANGUAGE | 说话人使用的语言类型,当前支持中文普通话、英语和法语。 “zh”: 中文普通话; “en-US”: 英语(默认值); “fr-FR“:法语。 |
| Constructor name |
| MLAsrCaptureConstants() |
| Constant |
| Constant |
| public static final String ASR_ERROR_CODE |
错误码。 11202:无网络连接; 11203:服务不可用; 11204:无法识别。 Constant Value: “errorCode” |
| Constant |
| public static final String ASR_SUB_ERROR_CODE |
子错误码。 Constant Value: “subErrorCode” |
| Constant |
| public static final String ASR_ERROR_MESSAGE |
错误信息。 Constant Value: “errorMessage” |
| Constant |
| public static final int ASR_FAILURE |
识别失败。 Constant Value: -1 |
| Constant |
| public static final String ASR_RESULT |
识别结果。 Constant Value: “result” |
| Constant |
| public static final int ASR_SUCCESS |
识别成功。 Constant Value: 0 |
| Constant |
| public static final String FEATURE |
插件特性KEY。当前支持实时出字和整段出字两种特性: FEATURE_WORDFLUX:实时出字; FEATURE_ALLINONE:整段出字。 Constant Value: “FEATURE” |
| Constant |
| public static final int FEATURE_ALLINONE |
整段识别特性,说话过程中不出字,说完后一次性返回识别结果。 Constant Value: 12 |
| Constant |
| public static final int FEATURE_WORDFLUX |
实时出字特性, 边说话边出字。 Constant Value: 11 |
| Constant |
| public static final String LANGUAGE |
说话人使用的语言KEY, 当前支持中文普通话、英语和法语。 “zh”: 中文普通话; “en-US”: 英语(默认值); “fr-FR”: 法语。 Constant Value: “LANGUAGE” |
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功