I've not tested this myself (no BT speaker/headphones), but a bit of searching on Google says to try enabling passthrough in Kodi settings.
In Kodi:
Settings - System - change settings level to Expert - Scroll down to ' Allow passthrough', and enable it.