• I'd like a simple sound player.

    From Alan K@AlanK@invalid.com to alt.comp.os.windows-11 on Fri Apr 17 15:10:06 2026
    From Newsgroup: alt.comp.os.windows-11

    I want to be able to play a wav/ogg/mp3 etc from a batch file and not get a window,
    diagnostic data, etc. Just simply play the dang thing.

    I've tried a few things but no good. The one I have just prints which is fine but it of
    course has to load powershell. It's not fast.

    powershell -c (New-Object Media.SoundPlayer "C:\Users\alkne\Music\Sounds\waves\ringout.wav").PlaySync();

    Any ideas?
    --
    Windows 11 25H2.

    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Paul in Houston TX@Paul@Houston.Texas to alt.comp.os.windows-11 on Fri Apr 17 14:23:47 2026
    From Newsgroup: alt.comp.os.windows-11

    Alan K wrote:
    I want to be able to play a wav/ogg/mp3 etc from a batch file and not
    get a window, diagnostic data, etc.-a Just simply play the dang thing.

    I've tried a few things but no good.-a The one I have just prints which
    is fine but it of course has to load powershell.-a-a It's not fast.

    powershell -c (New-Object Media.SoundPlayer "C:\Users\alkne\Music\Sounds\waves\ringout.wav").PlaySync();

    Any ideas?

    https://mpc-hc.org/
    I don't know if MPC-HC can be run from a batch file but it is reasonably
    small and simple. There are many others.
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Herbert Kleebauer@klee@unibwm.de to alt.comp.os.windows-11 on Fri Apr 17 21:55:07 2026
    From Newsgroup: alt.comp.os.windows-11

    On 4/17/2026 9:10 PM, Alan K wrote:
    I want to be able to play a wav/ogg/mp3 etc from a batch file and not get a window,
    diagnostic data, etc. Just simply play the dang thing.

    https://github.com/jimlawless/cmdmp3
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.comp.os.windows-11 on Fri Apr 17 18:23:31 2026
    From Newsgroup: alt.comp.os.windows-11

    On Fri, 4/17/2026 3:10 PM, Alan K wrote:
    I want to be able to play a wav/ogg/mp3 etc from a batch file and not get a window, diagnostic data, etc.-a Just simply play the dang thing.

    I've tried a few things but no good.-a The one I have just prints which is fine but it of course has to load powershell.-a-a It's not fast.

    powershell -c (New-Object Media.SoundPlayer "C:\Users\alkne\Music\Sounds\waves\ringout.wav").PlaySync();

    Any ideas?

    ffplay.exe 1>NUL 2>NUL -autoexit -nodisp recording.wav

    You would want a statically compiled executable, rather
    than the dynamic one with some number of DLL in it.

    https://www.gyan.dev/ffmpeg/builds/

    ffmpeg-release-full.7z

    And this is not fast either, it's not aplay.
    But a full release version of ffmpeg (containing ffplay.exe),
    can play just about anything. If the item only has a sound track,
    it will play the sound track (even content without timestamps as
    such, such as the WAV in the example. I expect some of the delay,
    is Windows Defender scanning the EXE on load.

    Paul

    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Mr. Man-wai Chang@toylet.toylet@gmail.com to alt.comp.os.windows-11 on Sat Apr 18 22:26:44 2026
    From Newsgroup: alt.comp.os.windows-11

    On 4/18/2026 3:10 AM, Alan K wrote:

    powershell -c (New-Object Media.SoundPlayer "C:\Users\alkne\Music\Sounds\waves\ringout.wav").PlaySync();

    I am using MPG123 in Windows (and maybe Linux) all the time! :)

    mpg123, Fast MP3 Player for Linux and UNIX systems
    <https://www.mpg123.de/>
    --

    @~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
    / v \ May the Force and farces be with you! Live long and prosper!!
    /( _ )\ https://sites.google.com/site/changmw/
    ^ ^ https://github.com/changmw/changmw
    --- Synchronet 3.21f-Linux NewsLink 1.2