Playing wav-file sounds.


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Playing wav-file sounds.
# 1  
Old 09-11-2010
Playing wav-file sounds.

I would like to be able to shell out to the command line and play sounds.
After installing "sox" I can now do this using the play command. Is there a way to stop the playing once it starts?
# 2  
Old 09-11-2010
Code:
ctrl+c

But is there any other proper way of stopping ?
# 3  
Old 09-11-2010
Quote:
Originally Posted by thegeek
Code:
ctrl+c

But is there any other proper way of stopping ?
I tried Ctrl/c but this doesn't stop the playing. The terminal won't accept any input while the file is playing, but it can be shut down (which stops the playing) by clicking on the upper right "X"... not a very elegant way out.
# 4  
Old 09-12-2010
You could try mplayer, which is a bit larger than sox ( Smilie ) but supports seeking and quit from console via keyboard.
# 5  
Old 09-12-2010
Quote:
Originally Posted by Corona688
You could try mplayer, which is a bit larger than sox ( Smilie ) but supports seeking and quit from console via keyboard.
When I first tried the command "play" I was prompted to install sox, I already had mplayer installed. Is there a different command (other than play) to use that will trigger mplayer to respond? BTW, thanks for your help!
# 6  
Old 09-13-2010
You might try 'mplayer'.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

how to create empty wav file

Dear All, Kindly explain me a command in unix to create a empty wav file with example. Thanks in Advance! (1 Reply)
Discussion started by: thillai_selvan
1 Replies

2. Programming

PLaying a sound file with SDL - C++

How do I play a sound file with SDL? I've downloaded the library files but SDL/SDL_mixer.h (that most of the tutorials include) doesn't exist. So, how do I install it? As I said mixer.h doesn't exist but, If it is helpful, the default code is this: #include "stdlib.h" #include "SDL/SDL.h"... (2 Replies)
Discussion started by: hakermania
2 Replies

3. Filesystems, Disks and Memory

Loud Sounds can slow down disk I/O

Amazing but true... tDacjrSCeq4 More details: Unusual disk latency : Brendan Gregg Now I know why everything takes longer when I crank up the tunes. :eek: Oh well, it's nothing that a good set of headphones can't cure. (1 Reply)
Discussion started by: Perderabo
1 Replies

4. Solaris

converting midi to wav in solaris 10

how can i convert midi to wave in solaris 10 i have found timidity but it lack of documentation. is there any other suggestion? (1 Reply)
Discussion started by: conandor
1 Replies

5. Shell Programming and Scripting

Delete original wav file if lame was successful encoding.

In a bash script: src=”cooltrack.wav” dst=”cooltrack.mp3” lame $src $dst I would like to add some line that would delete the source wav file like: rm $src but I would like this only if the encoding was successful. What should I include before deleting the original to check that the... (2 Replies)
Discussion started by: Aia
2 Replies

6. UNIX for Dummies Questions & Answers

Insane question : Playing mp3 file from Sun Sparc

hi, i know this is crazy. but i can do this from linux in intel platform. just wonder can my Sun Solaris 8 sparc can do the same thing? (2 Replies)
Discussion started by: champion
2 Replies

7. UNIX for Dummies Questions & Answers

Are there sounds in Mandrake

First of sll, i wan to apologize to all of the admin. or peoples who are noticing all of my posts today, Im at school and i really have nothing else to do, im in strudy hall and my teacher wont let me check my email, but any ways, i just remembered that I don't have any sounds in Mandrake like i... (4 Replies)
Discussion started by: LolapaloL
4 Replies
Login or Register to Ask a Question