Perfect, thanks for the clarification. After digging into the code I found out that sox was using the "Extensible" format. I was not aware of the wavpcm format option... It is working now and makes sense!
Recording 24/32 bits audio not in proper wave format