Play an audio source exactly N times (N=0 means forever)

mpg321

  • High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
    Mpg321 was written (sometime in 1999) to be a drop-in replacement for the (previously) non-free mpg123 player.
    More information: <http://mpg321.sourceforge.net/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

mpg321 -l {{N}} {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}

click the source code to copy install mpg321 on any operating system with command-not-found.com