Playing an Audio File
This API is used to play a local audio file in AAC format. Connect a headset or sound box to the audio output port of the HiLens Kit device. You can hear the sound calling this API.
- API calling
hilens.play_aac_file(file_path, vol)
- Parameter description
Table 1 Parameters Parameter
Mandatory
Type
Description
file_path
Yes
Character string
Absolute path of the local audio file
vol
Yes
Integer
Volume of the audio file to be played. The value range is [-121, 6].
- Return value
If the operation is successful, 0 is returned. Otherwise, the operation fails.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot