hi_mpi_ai_enable

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Enables an AI device.

Prototype

hi_s32 hi_mpi_ai_enable(hi_audio_dev ai_dev)

Parameters

Parameter

Input/Output

Description

ai_dev

Input

Audio device ID. The value range is [0, 2].

Returns

Restrictions

  • Before enabling an AI device, you must set the attributes of the AI device by calling hi_mpi_ai_set_pub_attr. Otherwise, an error code indicating that the attributes are not set is returned.
  • If the AI device is enabled, a code indicating success is returned.

See Also

For the API call sequence, see Obtaining and Playing Audios.