How to play audio file on windows from command line?

前端 未结 11 972
臣服心动
臣服心动 2020-12-10 02:41

In Windows, is there a simple way (i.e. something you could type on a single command line) to just play a couple of .mp3 files and then exit on its own?

wmplayer, f

11条回答
  •  独厮守ぢ
    2020-12-10 03:11

    I've found that the fastest way to play .mp3 files in Windows commandline is mpeg123

    I know it's not available on people's machine per default, but from my point of view, Microsoft's own players are not consistently available over different versions either.

    I'm using it on a project where the execution time is essential, and features like only playing certain frames makes is very useful. I find this (in my configuration) faster than the cmdmp3 and vbscript examples mentioned in this thread.

    My syntax to only play certain frames of an .mp3 file : mpg123.exe -k 2 -n 3 -q -1 -4 beep.mp3

提交回复
热议问题