I'm in a ssh connection and I would like to play a sound after a command completes (not on the server where I connected).

Something:

ssh me@somewhere.com
make && play-sound-local

I have built-in pc-speaker disabled so echo -e "\a" doesn't work.

Any suggestions?

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

You can configure PulseAudio to allow network connections, then use ssh port forwarding and paplay -s on the remote side to send audio back through the ssh connection. Note that the audio may be delayed or stutter based on the fidelity of the audio and the speed of the connection.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.