JL Engineer's Work Log 2: Adding Custom Prompt Tones on Jieli Bluetooth Audio SoC (AC696N Series/AC6966B)
1. Introduction
The JL AC696N development board comes with predefined prompt tones. Since developers often need to add their own tones, this guide uses the AC6966B chip as an example to explain how to add custom prompt tones step by step.
2. Detailed Instructions
2.1 Configuration Tool
Custom prompt tones need to be added via the configuration tool. Typical path: ac696n_soundbox_sdk_v1.7.0_patch01_dev_board_v0.0.2\cpu\br25\tools\soundbox\standard
Open the configuration tool → select “Prompt Tone Configuration” → click “Add Prompt Tone” → click “Open”.
After clicking “Open”, choose your custom tone file – the tool will auto‑fill the file path.
Click “Save” – the configuration tool part is now complete.
2.2 Adding the Custom Tone File
Download or create your own tone file (e.g., water.mp3 or .wav). Add the file to the extra_tones folder (follow the same structure as existing tones). Use an English name for the file (e.g., water.*).
2.3 Code Modifications
- In tone_player.h, add the custom tone name and path following the existing pattern. Example: #define TONE_RES_ROOT_PATH "tone/water.*"
- In tone_table.c (inside the const char *tone_table[] array), add a new entry: [IDEX_TONE_WATER] = TONE_RES_ROOT_PATH"tone/water.*", where water matches your file name.
2.4 Playing the Tone
After the above steps, use the function from tone_player.c to play the tone. Example: tone_play(tone_table[IDEX_TONE_WATER], 1)
Summary
That's all the modification needed. The new tone can be triggered with a simple API call. This approach works on the AC696N series and similar Jieli audio SoCs.
评论
发表评论