Function GenieDialog_setPriority¶
Defined in File GenieDialog.h
Function Documentation¶
-
Genie_Status_t GenieDialog_setPriority(const GenieDialog_Handle_t dialogHandle, const char *engineRole, const GenieDialog_Priority_t priority)¶
A function to set an engine’s QNN context priority.
- Parameters
dialogHandle – [in] A dialog handle.
engineRole – [in] Engine role to which the priority is being applied (e.g. “primary”).
priority – [in] The requested priority.
- Returns
Status code:
GENIE_STATUS_SUCCESS: API call was successful.
GENIE_STATUS_ERROR_INVALID_HANDLE: Dialog handle is invalid.
GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.
GENIE_STATUS_ERROR_GENERAL: The requested priority could not be applied.
Note
GENIE_DIALOG_PRIORITY_NORMAL_HIGH and GENIE_DIALOG_PRIORITY_HIGH may be reserved on some platforms for OEM use. See GenieDialog_setOemKey.