afreplay is a wrapper script of afplay to repeat a single audio file.
It depends on afplay, which is native for OSX (Mavericks).
The default path for the installation is /usr/bin/wtools.Please add this path environment variable or replace this path with other path you want to install from the install script provided. Then, run the script like following:
./install
afreplay file_to_listen_to number_of_time_to_repeat