Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play Call Button Functions on Some Detection Files but Not Others #218

Open
Krscatte opened this issue Dec 20, 2023 · 0 comments
Open

Play Call Button Functions on Some Detection Files but Not Others #218

Krscatte opened this issue Dec 20, 2023 · 0 comments

Comments

@Krscatte
Copy link

Describe the bug
An interesting issue I've come across since starting to use DS. I am able to load audio and detect calls just fine across all my recordings (250 kHz, 16-bit, FLAC) but for some, I only get the Windows error tone when trying to play a detected call. I am able to load detection files from recordings I've previously analyzed and play the calls there just fine, but sometimes I generate a detection file and cannot play any of the calls, valid or not, throughout the whole recording. I have no idea why this problem is not consistent.

Below is the error message that shows up in MATLAB when this occurs:
Unable to perform assignment because the left and right sides have a different number of elements.

Error in DeepSqueak>PlayCall_Callback (line 258)
audio(1:1000) = audio(1:1000) .* w(1:1000);

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DeepSqueak (line 29)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DeepSqueak('PlayCall_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback.

To Reproduce
Steps to reproduce the behavior:
With the attached audio/detection files:

  1. Open DeepSqueak
  2. Select audio folder to one containing files of interest.
  3. Press detect calls using either Rat Detector YOLO R1 or the long version.
  4. Load calls
  5. Navigate to find a valid call.
  6. Press Play Call

Below you can see 2 of my detection files - the first ("hargreaves") works (can play calls) and the second ("cereal") does not:
https://drive.google.com/file/d/1r3LXGFGisG0JHcYJvfzdVNTiaS0wW7aK/view?usp=drive_link
https://drive.google.com/file/d/1WWoUYRNuJHq-UhKGe-urTrA8yiKHQBpk/view?usp=drive_link

Expected behavior
After loading the detection file and locating a valid call, I was expecting to be able to press "Play Call" and be able to hear a pitch-adjusted playback of the selected time point (box).

Additional context
OS: Win 11
MATLAB R2023b

Thanks and all the best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant