I've wondered how much DSP can be fit into the open source PineBuds which have little ARM microcontrollers in them. They can do active noise cancelling so presumably some HA-like features are possible.
https://pine64.com/product/pinebuds-pro-open-firmware-capabl...
Legally impossible to advertise or sell as hearing aids but surely it would be useful to some people.