How to play .wav file?
I am a Linux noob and I need to make a script that receives data over uart and depending on what is said it plays different .wav or mp3 files I have a usb audio converter but when I try to open the file I get
-ash: foghorn1.wav: not found
How can I fix this?
Thanks in advance.
No one here???
Patryk Wychowaniec last edited by
You basically said "I have some no-name converter and some no-name software which does not work the way I think it should" - how can anybody answer this question without having to get your mind read?
Tell us some details: what's the name of your converter and what's the software you use which yields this message (I guess you just tried to do "./my-file.mp3" in the console, but I'm not going to play cat and mouse :-P).
ave some no-name converter and some no-na
Dont worry about whats reading the messages. all I want is to play a .wav or .mp3 file and when I try to open it says
-ash: foghorn1.wav: not foundyet
lsshows the file clearly.
I dont see what the converter has to do with not finding and playing a file... but its this one http://www.ebay.co.uk/itm/161798473932?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
I have no script yet just want to make sure the damn thing can play audio. I2C audio would be even better but no idea if that will work.
Patryk Wychowaniec last edited by Patryk Wychowaniec
It does not say that your file does not exist - this message says that
ashcannot find any executable in
foghorn1.wav, which should be run. The same way when you write eg.
ashthen looks for a proper executable in
binand if no results are yielded, returns an error message.
If you want to run a file from current directory, you'd need to write
./my-file, but it only works for executables, which - clearly - a music file is not.
I dont see what the converter has to do with not finding and playing a file
You cannot play music without a music player, look at examples:
Nowhere there you'll find
You'd need to install some music player and hope it gets along with your converter.