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

Visualising detected calls #27

Closed
s1782988 opened this issue Feb 5, 2019 · 7 comments
Closed

Visualising detected calls #27

s1782988 opened this issue Feb 5, 2019 · 7 comments

Comments

@s1782988
Copy link

s1782988 commented Feb 5, 2019

Hi,

I tried running DeepSqueak on an audio file, and it did detect calls, but there seems to be some issue with visualising the spectrogram of the calls. This is what happens after I have tried detecting calls:

Error using intmax (line 40)
Invalid class name.

Error in CreateSpectrogram (line 9)
audio = double(audio) / (double(intmax(class(audio)))+1);

Error in update_fig (line 14)
[I,windowsize,noverlap,nfft,rate,box,s,fr,ti,audio,AudioRange] = CreateSpectrogram(handles.calls(handles.currentcall));

Error in loadcalls_Callback (line 81)
update_fig(hObject, eventdata, handles);

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

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

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DeepSqueak('loadcalls_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

Reference to non-existent field 'calls'.

Error in DeepSqueak>slider1_Callback (line 291)
handles.currentcall=ceil(get(hObject,'Value')*length(handles.calls));

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

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

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DeepSqueak('slider1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

Reference to non-existent field 'calls'.

Error in DeepSqueak>slider1_Callback (line 291)
handles.currentcall=ceil(get(hObject,'Value')*length(handles.calls));

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

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

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DeepSqueak('slider1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

Reference to non-existent field 'calls'.

Error in DeepSqueak>slider1_Callback (line 291)
handles.currentcall=ceil(get(hObject,'Value')*length(handles.calls));

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

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

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DeepSqueak('slider1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

Reference to non-existent field 'calls'.

Error in DeepSqueak>slider1_Callback (line 291)
handles.currentcall=ceil(get(hObject,'Value')*length(handles.calls));

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

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

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DeepSqueak('slider1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

Reference to non-existent field 'calls'.

Error in DeepSqueak>slider1_Callback (line 291)
handles.currentcall=ceil(get(hObject,'Value')*length(handles.calls));

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

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

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DeepSqueak('slider1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

The output in DeepSqueak looks like this:
screen shot 2019-02-05 at 15 58 34

Do you have an idea of what could be going wrong?

Thank you!!
Raven

@DrCoffey
Copy link
Owner

DrCoffey commented Feb 5, 2019

Hey Raven,

We just encountered this problem a few days ago. It has to do with single vs double precision audio. We fixed it, just download DeepSqueak again and you should be good to go! If you use Github Desktop it will make getting new versions and minor bug fixes easier.

-Kevin

@s1782988
Copy link
Author

s1782988 commented Feb 6, 2019 via email

@s1782988
Copy link
Author

s1782988 commented Feb 6, 2019 via email

@DrCoffey
Copy link
Owner

DrCoffey commented Feb 6, 2019

Hey Raven,

Is that supposed to be a link to an image? All I see is:

[cid:745E4DB1-401E-405D-A51F-D7B89C65B8DE@ed.ac.uk]

@s1782988
Copy link
Author

s1782988 commented Feb 7, 2019 via email

@MxMarx
Copy link
Collaborator

MxMarx commented Feb 7, 2019

I've just updated the code, and now single-precision audio should work everywhere.

Before, we just checked whether or not the audio was floating point, and converted it to double precision if it wasn't. Now we also convert the audio to double precision if it is single precision.

@s1782988
Copy link
Author

s1782988 commented Feb 8, 2019 via email

@MxMarx MxMarx closed this as completed Feb 9, 2019
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

3 participants