I'd like to play a system sound in a Git hook for a [fun project](https://github.com/mika/commit-sounds/issues/1).

There's a [freedesktop standard](http://freedesktop.org/wiki/Specifications/sound-theme-spec) and a C library ([libcanberra](http://0pointer.de/lennart/projects/libcanberra/)) for system sounds, but no executable coming with libcanberra. Is there an easy way to call the [ca\_context\_play](http://0pointer.de/lennart/projects/libcanberra/gtkdoc/libcanberra-canberra.html#ca-context-play) method of libcanberra from a shell script without starting a full perl or python interpreter? And if not, how would I to it with perl/python?