Re: convert raw file to wav file

Jeff Learman <[email protected]> Thu, 11 Jan 2024 11:11:39 -0500
Newsgroups gmane.comp.audio.sox
Message-ID <CAGyjer5LP9RFQ6PPKrTFS2AsHrZ=FT6kTyX+CEc2XdCfrdStwg@mail.gmail.com>
I believe I have some Bat-cording on my Bat-utility belt, which is in the
Bat-cave at the moment.  ;-)

On Tue, 2 Jan 2024 at 08:11, Thomas Förster via Sox-users <
[email protected]> wrote:

> Hi Markus,
>
> here is an example for sox commandline for my special use. Please adapt it
> to your need and correct your windows-batch-code:
>
> sox -r 44100 -b 24 -c 2 -e signed-integer input.raw -t wavpcm
> output_24bit.wav
> sox -r 88200 -b 24 -c 2 -e float input.raw outputput_24bit.wav
>
> Regards
> Thomas
>
> Am 29.12.23 um 10:09 schrieb markus.blaschke--- via Sox-users:
>
> Hello,
>
> I want to convert raw files from a Bat cording system to wav-files for the
> Bat analysing system.
> And I found the Program SOX where I saw that it works with this to file
> formats.
>
> I work with Windows 10
>
> an I know from the Internet page of the Bat cording systeme that the
>
> RAW files have no header
>
> samplerate 500 kHz
> little endien format
> PCM 16-bits
>
> other WAV files from an other Bat-cording system have
>
> Channels       : 1
> Sample Rate    : 312500
> Precision      : 16-bit
> Sample Encoding: 16-bit Signed Integer PCM
>
> so i tried a batchfile to convert
>
> @echo
> cd C:\temp\sox-14-4-2
> for %%i in (C:\temp\*.raw); do (sox.exe -r 500k −b 16 -L −c 1 %%i -r
> 312500 -b 16 -L -c 1 .\converted\%%i.wav)
> pause
>
>
> but i get this back:
>
> sox.exe FAIL formats: bad input format for file
> `C:\temp\20230523-N091_B0220-000014.raw': sampling rate was not specified
>
> I thought the "-r 500k" is the information for the sampling rate.
>
> Does anybody can give me an Idea to understand the line?
> Thank you for all your Help
>
> Markus
>
>
> _______________________________________________
> Sox-users mailing [email protected]://lists.sourceforge.net/lists/listinfo/sox-users
>
>
> _______________________________________________
> Sox-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sox-users
>

_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users