3
$\begingroup$

Disclaimer: I have advanced knowledge of Python, R, and Matlab, so we can skip the basics (such as how to load a file into a programing environment).

The quest is to somehow decode data from .dat files obtained during recording sessions with SonoTrack. There seems to be no information about data encoding in their sparse documentation. I would like to avoid brute-forcing the encoding. Thanks in advance!

Sample data (3 min long) is available here.

$\endgroup$
0

1 Answer 1

3
$\begingroup$

The fact that the presentation of SonoTrack talks about Avisoft (i,e. 3rd party SW) is for me an indication that data is simply binary. If you could provide access to a small sample, one could look into hex code and complete this answer.

Or you could read simply data and uint8 and deduce format (int16,int32,float). If you do that and find correct format, I would suggest to prove answer to your own question.

Edit: So far found: 16 bit PCM litle endian

Edit2: Data seem to be 16 bit PCM; little endian; 32 kHz sampling: (2:44 min:sec total length); 3 kHz HP filter. checked with audacity

Comment: If the data are indeed raw without header, as concluded from hexedit and audacity, there must be another file with meta data (sampling frequency, number of channels, etc.)

$\endgroup$
3
  • 1
    $\begingroup$ Thank you for your response! You are most probably correct - the data is binary. I have updated the question to include a sample. I will do as you have suggested to see if I can figure out the proper format. $\endgroup$
    – Dan
    Commented Sep 4, 2023 at 8:14
  • 1
    $\begingroup$ Thank you! I will see what can be done with the information that you have supplied. :) $\endgroup$
    – Dan
    Commented Sep 4, 2023 at 10:39
  • 1
    $\begingroup$ Again - I am very thankful for your help. I am learning some new things about binary files, which might be useful in the future. You have saved the day! $\endgroup$
    – Dan
    Commented Sep 4, 2023 at 11:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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