Skip to content

File length calculation with SoundTrap click detector enabled #72

@JMcCordic

Description

@JMcCordic

Hello,
I have found an issue when using Pypam to process recordings collected using the ST300 HF model SoundTrap recorder with the high-frequency click detector enabled.
According to the ST manufacturer website, in this configuration the ST records "continuous audio at a low sample rate, while simultaneously capturing short audio snippets of each click detection at full 576 kHz sample rate". It appears to me that in the xml log files, there are multiple event logs with file type = "wav" in each file, even though one of them is actually for the "snippet" files. Pypam seems to be pulling the sample count listed for the snippets (PROC_EVENT ID = "13") instead of the sample count listed for the 48kHz wavs (PROC_EVENT ID = "5"). This resulted in a calculated wav file duration of ~220s instead of ~14,400s for this continuous recording.

I am not entirely sure of the solution, but I have included images of the jpg output from Pypam as well as an example log file highlighting the discrepancy between the two "wav" events in the xml file in case that is helpful.

Thank you!

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions