dts change

Signed-off-by: lvqiang214 <lvqiang1@huawei.com>
This commit is contained in:
lvqiang214 2024-07-05 15:52:57 +08:00
parent 1f38b08caa
commit e718228377
3 changed files with 74 additions and 67 deletions

View File

@ -23,9 +23,9 @@ namespace OHOS {
namespace IntellVoiceNapi {
static const std::string NAPI_INTELLIGENT_VOICE_PERMISSION_DENIED_INFO = "Permission denied.";
static const std::string NAPI_INTELLIGENT_VOICE_NO_MEMORY_INFO = "No memory.";
static const std::string NAPI_INTELLIGENT_VOICE_INVALID_PARAM_INFO = "Input parameter value error.";
static const std::string NAPI_INTELLIGENT_VOICE_INVALID_PARAM_INFO = "Invalid parameter.";
static const std::string NAPI_INTELLIGENT_VOICE_INIT_FAILED_INFO = "Init failed.";
static const std::string NAPI_INTELLIGENT_VOICE_COMMIT_ENROLL_FAILED_INFO = "Commit enroll failed.";
static const std::string NAPI_INTELLIGENT_VOICE_COMMIT_ENROLL_FAILED_INFO = "Failed to commit the enrollment.";
static const std::string NAPI_INTELLIGENT_VOICE_START_CAPTURER_INFO = "Start capturer failed.";
static const std::string NAPI_INTELLIGENT_VOICE_READ_FAILED_INFO = "Read failed.";
static const std::string NAPI_INTELLIGENT_VOICE_SYSTEM_ERROR_INFO = "System error.";

View File

@ -15,7 +15,7 @@
/**
* @file
* @kit MindSporeLiteKit
* @kit BasicServicesKit
*/
import type { AsyncCallback, Callback } from './@ohos.base';
@ -97,8 +97,8 @@ declare namespace intelligentVoice {
* @param { string } value - the value of the intelligent voice parameter to set.
* @returns { Promise<void> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @throws { BusinessError } 22700107 - System error.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
@ -111,8 +111,8 @@ declare namespace intelligentVoice {
* @param { string } key - the key of the intelligent voice parameter whose value is to be obtained.
* @returns { Promise<string> } the promise used to return the value of the intelligent voice parameter.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @throws { BusinessError } 22700107 - System error.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
@ -122,12 +122,12 @@ declare namespace intelligentVoice {
/**
* Obtains files needed to upload. This method uses a promise to return the files needed to upload.
* @permission ohos.permission.MANAGE_INTELLIGENT_VOICE
* @param { number } maxCount - the maximum count of upload files.
* @param { number } maxCount - the maximum count of upload files. The maxCount should be greater than 0 and smaller than 101
* @returns { Promise<Array<UploadFile>> } the promise used to return the upload files.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3.Parameter verification failed.
* @throws { BusinessError } 22700101 - No memory.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @throws { BusinessError } 22700107 - System error.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
@ -153,9 +153,9 @@ declare namespace intelligentVoice {
* @param { string } wakeupInfo - wakeup information.
* @returns { Promise<EnrollResult> } the promise used to return the enroll result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700101 - No memory.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @throws { BusinessError } 22700107 - System error.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
@ -504,9 +504,9 @@ declare namespace intelligentVoice {
* @param { EnrollIntelligentVoiceEngineDescriptor } descriptor - descriptor indicates enroll intelligent voice engine descriptor.
* @param { AsyncCallback<EnrollIntelligentVoiceEngine> } callback - the callback used to return the EnrollIntelligentVoiceEngine instance.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700101 - No memory.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -519,9 +519,9 @@ declare namespace intelligentVoice {
* @param { EnrollIntelligentVoiceEngineDescriptor } descriptor - descriptor indicates enroll intelligent voice engine descriptor.
* @returns { Promise<EnrollIntelligentVoiceEngine> } the promise used to return the EnrollIntelligentVoiceEngine instance.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700101 - No memory.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -534,9 +534,9 @@ declare namespace intelligentVoice {
* @param { WakeupIntelligentVoiceEngineDescriptor } descriptor - descriptor indicates wakeup intelligent voice engine descriptor.
* @param { AsyncCallback<WakeupIntelligentVoiceEngine> } callback - the callback used to return the WakeupIntelligentVoiceEngine instance.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700101 - No memory.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -549,9 +549,9 @@ declare namespace intelligentVoice {
* @param { WakeupIntelligentVoiceEngineDescriptor } descriptor - descriptor indicates wakeup intelligent voice engine descriptor.
* @returns { Promise<WakeupIntelligentVoiceEngine> } the promise used to return the WakeupIntelligentVoiceEngine instance.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700101 - No memory.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -663,6 +663,13 @@ declare namespace intelligentVoice {
* @since 10
*/
INTELLIGENT_VOICE_EVENT_RECOGNIZE_COMPLETE = 1,
/**
* Headset Recognize complete.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 12
*/
INTELLIGENT_VOICE_EVENT_HEADSET_RECOGNIZE_COMPLETE = 2,
}
/**
@ -681,7 +688,7 @@ declare namespace intelligentVoice {
*/
INTELLIGENT_VOICE_NO_MEMORY = 22700101,
/**
* Input parameter value error.
* Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -695,7 +702,7 @@ declare namespace intelligentVoice {
*/
INTELLIGENT_VOICE_INIT_FAILED = 22700103,
/**
* Commit enroll failed.
* Failed to commit the enrollment.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -922,8 +929,8 @@ declare namespace intelligentVoice {
* @param { EnrollEngineConfig } config - config indicates enroll engine configuration.
* @param { AsyncCallback<void> } callback - the callback used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @throws { BusinessError } 22700103 - Init failed.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
@ -936,8 +943,8 @@ declare namespace intelligentVoice {
* @param { EnrollEngineConfig } config - config indicates enroll engine configuration.
* @returns { Promise<void> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @throws { BusinessError } 22700103 - Init failed.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
@ -950,7 +957,7 @@ declare namespace intelligentVoice {
* @param { boolean } isLast - isLast indicates if it is the last time to enroll.
* @param { AsyncCallback<EnrollCallbackInfo> } callback - the callback used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -962,7 +969,7 @@ declare namespace intelligentVoice {
* @param { boolean } isLast - isLast indicates if it is the last time to enroll.
* @returns { Promise<EnrollCallbackInfo> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -993,7 +1000,7 @@ declare namespace intelligentVoice {
* @permission ohos.permission.MANAGE_INTELLIGENT_VOICE
* @param { AsyncCallback<void> } callback - the callback used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 22700104 - Commit enroll failed.
* @throws { BusinessError } 22700104 - Failed to commit the enrollment.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1004,7 +1011,7 @@ declare namespace intelligentVoice {
* @permission ohos.permission.MANAGE_INTELLIGENT_VOICE
* @returns { Promise<void> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 22700104 - Commit enroll failed.
* @throws { BusinessError } 22700104 - Failed to commit the enrollment.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1016,8 +1023,8 @@ declare namespace intelligentVoice {
* @param { WakeupHapInfo } info - info indicates wakeup hap information.
* @param { AsyncCallback<void> } callback - the callback used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1029,8 +1036,8 @@ declare namespace intelligentVoice {
* @param { WakeupHapInfo } info - info indicates wakeup hap information.
* @returns { Promise<void> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1042,8 +1049,8 @@ declare namespace intelligentVoice {
* @param { SensibilityType } sensibility - sensibility to set.
* @param { AsyncCallback<void> } callback - the callback used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1055,8 +1062,8 @@ declare namespace intelligentVoice {
* @param { SensibilityType } sensibility - sensibility to set.
* @returns { Promise<void> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1069,8 +1076,8 @@ declare namespace intelligentVoice {
* @param { string } value - the value of the intelligent voice parameter to set.
* @param { AsyncCallback<void> } callback - the callback used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1083,8 +1090,8 @@ declare namespace intelligentVoice {
* @param { string } value - the value of the intelligent voice parameter to set.
* @returns { Promise<void> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1096,8 +1103,8 @@ declare namespace intelligentVoice {
* @param { string } key - the key of the intelligent voice parameter whose value is to be obtained.
* @param { AsyncCallback<string> } callback - the callback used to return the value of the intelligent voice parameter.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1109,8 +1116,8 @@ declare namespace intelligentVoice {
* @param { string } key - the key of the intelligent voice parameter whose value is to be obtained.
* @returns { Promise<string> } the promise used to return the value of the intelligent voice parameter.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1122,7 +1129,7 @@ declare namespace intelligentVoice {
* @param { string } word - the word to evaluate.
* @returns { Promise<EvaluationResult> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700107 - System error.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
@ -1185,8 +1192,8 @@ declare namespace intelligentVoice {
* @param { WakeupHapInfo } info - info indicates wakeup hap information.
* @param { AsyncCallback<void> } callback - the callback used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1198,8 +1205,8 @@ declare namespace intelligentVoice {
* @param { WakeupHapInfo } info - info indicates wakeup hap information.
* @returns { Promise<void> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1211,8 +1218,8 @@ declare namespace intelligentVoice {
* @param { SensibilityType } sensibility - sensibility to set.
* @param { AsyncCallback<void> } callback - the callback used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1224,8 +1231,8 @@ declare namespace intelligentVoice {
* @param { SensibilityType } sensibility - sensibility to set.
* @returns { Promise<void> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1238,8 +1245,8 @@ declare namespace intelligentVoice {
* @param { string } value - the value of the intelligent voice parameter to set.
* @param { AsyncCallback<void> } callback - the callback used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1252,8 +1259,8 @@ declare namespace intelligentVoice {
* @param { string } value - the value of the intelligent voice parameter to set.
* @returns { Promise<void> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1265,8 +1272,8 @@ declare namespace intelligentVoice {
* @param { string } key - the key of the intelligent voice parameter whose value is to be obtained.
* @param { AsyncCallback<string> } callback - the callback used to return the value of the intelligent voice parameter.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1278,8 +1285,8 @@ declare namespace intelligentVoice {
* @param { string } key - the key of the intelligent voice parameter whose value is to be obtained.
* @returns { Promise<string> } the promise used to return the value of the intelligent voice parameter.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @syscap SystemCapability.AI.IntelligentVoice.Core
* @systemapi
* @since 10
@ -1300,11 +1307,11 @@ declare namespace intelligentVoice {
/**
* Starts the capturer. This method uses a promise to return the result.
* @permission ohos.permission.MANAGE_INTELLIGENT_VOICE
* @param { number } channels - the channels needed in reading.
* @param { number } channels - the channels needed in reading. The channels should be greater than 0 and smaller than 16.
* @returns { Promise<void> } the promise used to return the result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
* @throws { BusinessError } 22700102 - Input parameter value error.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3.Parameter verification failed.
* @throws { BusinessError } 22700102 - Invalid parameter.
* @throws { BusinessError } 22700105 - Start capturer failed.
* @throws { BusinessError } 22700107 - System error.
* @syscap SystemCapability.AI.IntelligentVoice.Core

View File

@ -636,7 +636,7 @@ std::string IntellVoiceServiceManager::GetParameter(const std::string &key)
if (key == "isEnrolled") {
HistoryInfoMgr &historyInfoMgr = HistoryInfoMgr::GetInstance();
val = historyInfoMgr.GetWakeupVesion().empty() ? "true" : "false";
val = historyInfoMgr.GetWakeupVesion().empty() ? "false" : "true";
INTELL_VOICE_LOG_INFO("get is enroll result %{public}s", val.c_str());
} else if (key == "isNeedReEnroll") {
val = UpdateEngineUtils::IsVersionUpdate() ? "true" : "false";