Hey can somebody help? I'm trying to make a program that converts any file in to raw HEX, i tested it with a regular way file and it seems to loose data. My original wav is 5khz at 32-bit floating point. When i convert it, the output hex data seems to small, because it seems it's only half of the data... So as there isn't a header i imported as raw data in audiacity, i can't use 32 bit-floating point as it seems the audio doesn't look like audio waveform (i can't even playing without destroying my speakers) i tried this time 15 bit PCM and i got better results but the audio is heavily clipped. Remember that i want all types of files be able to be converted. Not just wave so using a audio specific library would not work for my idea. Code: `import binascii file = input("Drag file please...: ") with open (file,'rb') as f: hexdata = binascii.hexlify(f.read()) print(hexdata)`
That looks okay to me. How are you using the output? It seems to me that "binary data encoded as hexadecimal" is a very unusual format - is that really what audacity expects?