2

I have some raw audio data I try to convert with sox like this:

sox -r 44100 -b 16 -c 1 -L -e signed-integer /infiles/recording.dat /outfiles/recording.wav

this gives me the following error:

sox FAIL formats: bad input format for file `/infiles/recording.dat': data encoding or sample size was not specified

Do you have any idea what I am missing? I just don't get what I am doing wrong here.

closed as off-topic by Jeff Schaller, Stephen Rauch, user259412, G-Man, Satō Katsura Nov 13 '17 at 8:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, Stephen Rauch, user259412, G-Man, Satō Katsura
If this question can be reworded to fit the rules in the help center, please edit the question.

4

with -t raw, it's working:

sox -t raw -r 44100 -b 16 -c 1 -L -e signed-integer /infiles/recording.dat /outfiles/recording.wav

Not the answer you're looking for? Browse other questions tagged or ask your own question.