LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   howto play wav files in debian wheezy? (https://www.linuxquestions.org/questions/linux-newbie-8/howto-play-wav-files-in-debian-wheezy-4175546750/)

Shadow_7 08-01-2015 09:45 PM

sox WARN rate: rate clipped 23954 samples; decrease volume?

That's when you need the -v 0.5 to prevent clipping. But you still get a sound file inspite of the error. Which you seemed to have gotten as noise.

If it's noise when it shouldn't be, then it's got some codec or compression going on. If there's a windows app that handles the file you could use wine and it might work under linux with that.

https://developer.blackberry.com/dev...a_support.html

Seems like .wav could contain:
PCM, LPCM, A-Law, U-Law, ADPCM, GSM6.10

Mentions of a blackberry 10 simulator that might handle the codec. Although mentions that it doesn't support all the codecs.

We've tried PCM with the previous sox stuff. The ulaw, alaw, and gsm which are telephony formats are likely suspects. Sox supports a few of these, but since the file extension is wav it and others cannot guess this file type.

-A -U -o -i -a -g are options that might need trying.

so...
sox -t raw -e signed -b 32 --endian little -c 1 -r 16000 org.wav -t wav -c 2 -r 48000 convert.wav

might become...
Code:

sox -A original.wav -t wav -c 2 -r 48000 convert_alaw.wav
sox -U original.wav -t wav -c 2 -r 48000 convert_mulaw.wav
sox -o original.wav -t wav -c 2 -r 48000 convert_okiadpcm.wav
sox -i original.wav -t wav -c 2 -r 48000 convert_imaadpcm.wav
sox -a original.wav -t wav -c 2 -r 48000 convert_msadpcm.wav
sox -g original.wav -t wav -c 2 -r 48000 convert_gsmfullrate.wav

Maybe one of those would work. Plus or minus a few flags. Like I said, a sample would go a long way. Everything before original.wav is applied to the input file so the stuff after shouldn't need to change. At least not until we have a better idea of the actual file format.

floppy_stuttgart 12-20-2015 05:49 AM

Hello,
one example of a wav file is here for the next 14 days. http://www.fileconvoy.com/dfl.php?id...bbd5a7d4caf7be (3x "hello")
Any advice how to read this file in linux is welcome (I can hear it in "Win7" with the mediaplayer after loading codecs from "Philips").

floppy_stuttgart 12-20-2015 05:52 AM

How to read that audio file in linux?
 
Hello,
one example of a wav audio file is here for the next 14 days. http://www.fileconvoy.com/dfl.php?id...bbd5a7d4caf7be (3x "hello")
Any advice how to read this file in linux is welcome (I can hear it in "Win7" with the mediaplayer after loading codecs from "Philips"). Thanks a lot.


All times are GMT -5. The time now is 04:45 AM.