command-line sound player for Windows?

941 views
Skip to first unread message

Jesse Ross

unread,
Jan 12, 2012, 12:10:01 PM1/12/12
to see...@googlegroups.com
Hi all,

My apologies if this question is obvious, but I haven't been able to figure it out on my own.

I am looking for an unobtrusive wavPlayer to use with seewave on Windows 7, which is a new environment for me. The ones I've tried all pop up a GUI, but I want something which will just play the sound in the background without taking the focus from R (like afplay on OS X).

Thanks very much!
Jesse Ross

jeromeinsect

unread,
Jan 16, 2012, 1:20:27 AM1/16/12
to seewave
Hi,

I forwarded your request to the maintainer of tuneR (U. Ligges). Here
is his reply:

"Unfortunately I don't know any. It is particularly annoying that
Microsoft disabled the ability to play sound in the background which
was possible with the old media player and is no longer possible with
"Windows media player 12".

Jerome

Jesse Ross

unread,
Jan 16, 2012, 10:27:58 AM1/16/12
to see...@googlegroups.com
Thanks very much, Jerome. I am still pursuing one last lead on this, and I'll post it to the list if it ends up working.

I sure do wish I was back on OS X instead of Windows   :-P

best wishes,
jesse

Stefanie LaZerte

unread,
Jan 16, 2012, 12:23:57 PM1/16/12
to see...@googlegroups.com
Perhaps you can see if you can install an older version of Windows Media player, if Windows will let you!

Steffi

Jesse Ross

unread,
Jan 16, 2012, 1:07:18 PM1/16/12
to see...@googlegroups.com
Hi Jerome,

I just wanted to let you know that I figured out a way to make this work. It requires the free SoX audio tool.

I downloaded this to c:\sox-14-3-2\sox.exe and made another copy of this executable, called "play.exe", in the same directory.

Now using setWavPlayer("c:\sox-14-3-2\play") will allow listen() to work without popping up a GUI. This also works for play() in tuneR.

Note that using setWavPlayer("c:\sox-13-3-2\play.exe") will NOT work, because the sox program changes its behavior based on invocation name. SoX is historically a UNIX program, and it doesn't recognize "play.exe" as being the same as "play".

best,
jesse


On Mon, Jan 16, 2012 at 1:20 AM, jeromeinsect <jerome...@yahoo.fr> wrote:

Jerome Sueur

unread,
Jan 17, 2012, 3:29:29 AM1/17/12
to see...@googlegroups.com, Uwe LIGGES
Hi Jesse,

Thanks for this great tip. This works also very nicely with Ubuntu 11.10.

In the console:
sudo apt-get install sox

# In R:
library(seewave)
library(tuneR)
setWavPlayer("play")
data(tico)
listen(tico) # or play(tico)

Did any one try with a Mac system?

Sox seems really great. I might think about writting an R wrapper to sox.

Best

Jerome
sueur.vcf

Jesse Ross

unread,
Jan 18, 2012, 9:34:10 AM1/18/12
to see...@googlegroups.com
Hi Jerome,

I tested setWavPlayer('play') on OS X last night, and it works just fine. I'm using the MacPorts version of SoX, so the precompiled binary would remain to be tested. But I don't see why it shouldn't work the same.

Also, Chris Bagwell, the lead SoX developer, said yesterday that the next release will have support for being invoked as "play.exe" as well as "play", so my caution about how to invoke this program will soon be outdated!

cheers,
jesse

sian

unread,
Oct 31, 2012, 7:40:34 AM10/31/12
to see...@googlegroups.com
sorry to sound simple, how do i install soundwave on my laptop, it's windows 7

sian

unread,
Oct 31, 2012, 7:41:13 AM10/31/12
to see...@googlegroups.com


On Wednesday, 31 October 2012 11:40:34 UTC, sian wrote:
sorry to sound simple, how do i install seewave on my laptop, it's windows 7
Reply all
Reply to author
Forward
0 new messages