On macOS I've been using piper (https://github.com/OHF-Voice/piper1-gpl) to announce claude code notifications and it works perfectly!