Note
Go to the end to download the full example code.
SoundTrap High Frequency with click detector
This script is an example to compute temporal features and third octave levels on an Acoustic Survey
import pyhydrophone as pyhy
# Sound Files
sound_folder_path = ""
# Output path for the detected clicks
clicks_output_path = "test.pickle"
name = 'SoundTrap'
model = 1
serial_number = 67416073
Vpp = 2
hydrophone = pyhy.SoundTrapHF(name=name, model=model, serial_number=serial_number, Vpp=Vpp)
"""
Detect clicks on sound data
"""
# Convert the sound clips to click and save
clicks_df = hydrophone.read_HFclicks(sound_folder_path)
clicks_df.to_pickle(clicks_output_path)