In the application message handler function (often located in apps_main.c or a dedicated interaction.c file), add the logic:
#define PIN_BUTTON_PLAY P10 #define PIN_LED_CONNECTION P12 #define PIN_ANC_TOGGLE P14
case EVENT_CUSTOM_ACTION: // Send audio prompt apps_config_set_voice_prompt(VOICE_PROMPT_CUSTOM, true); // Perform Bluetooth action bt_status_send_key_action(BT_KEY_ACTION_PLAY_PAUSE); break;
cd airoha_app/project/ab1565_tws make clean make all