Invalid Audio Playing Attribute Settings

Application Scenario

  • Service scenario: audio playing
  • Applicable processor: Atlas 200I/500 A2 inference product
  • Processor forms: EP and RC

Symptom

The audio playing parameters fail to be initialized, and the error code 0xa0168003 or 0xa016800c is returned.

sample_comm_audio_start_ao: hi_mpi_ao_set_pub_attr(2) failed with 0xa0168003!

Possible Cause

The parameters related to audio playing are incorrectly set.

Solution

  1. Check whether the values of the input parameters (such as the bit width, sampling rate, and number of audio channels) of the Audio API fall within their respective valid value ranges. If the values are not within the value ranges, change them to corresponding ranges.
  2. Run the audio playing command again.