Sure. I've used `say` on macos (spd-say for linux) like so:
mvn clean install ; say "Done"
It's great for those build times that're awkwardly long. Just long enough that you get bored waiting, too short to accomplish something else in the meantime. So you crank up the volume, load up HN, read an article and "DONE!" OH HOLY SHI--. Back to work.
that said it sucks to set up that flow when you /sometimes/ are around other people. it's pretty jarring if anyone can hear it, so you just wouldn't do it in a tight-collab area.
Usually though they're SUPER annoying so eventually I weeded them out of my workflow.
Would not recommend using sounds in development.