QutEcoacoustics / audio-analysis

The audio analysis code (AnalysisPrograms.exe) for the QUT Ecoacoustics Research Group
https://ap.qut.ecoacoustics.info/
Apache License 2.0
52 stars 12 forks source link

Indices Loop and concatenate index files commands not working #302

Open joderetic opened 4 years ago

joderetic commented 4 years ago

Describe the bug

The Indices loop and concatenate index files commands are not working for my soundfiles.

Expected behavior

They should run - and do run on Susan Fuller Practical files

Diagnostics

Instructions

I have attached a log:

The operating system I'm using is:

### The version of **AnalysisPrograms.exe** I'm using is:

The data used can be found:

The command I used:

The config file I used:

Screenshots

Additional Details

atruskie commented 4 years ago

There is a lack of nearly all the required information needed to investigate this bug.

Despite that, given a test file sent in private correspondence, I have managed to reproduce this bug.

atruskie commented 4 years ago

So, I've diagnosed this a little bit, there are a few interconnecting problems.

Given a 30 second file and an Index Calculation Duration of 60 seconds,


@joderetic - given the length of your files, I'd suggest using a custom Towsey.Acoustic.yml config file:

  1. Make a copy of the original config file (found in the ConfigFiles folder in the AP folder) and name it Towsey.Acoustic.30.yml
  2. Inside, change the IndexCaluclationDuration value from 60.0 to 30.0

    # IndexCalculationDuration: units=seconds (default=60 seconds)
    # The Timespan (in seconds) over which summary and spectral indices are calculated
    # This value MUST not exceed value of SegmentDuration.
    # Default value = 60 seconds, however can be reduced down to 0.1 seconds for higher resolution.
    #                 IndexCalculationDuration should divide SegmentDuration with MODULO zero
    -IndexCalculationDuration: 60.0
    +IndexCalculationDuration: 30.0
    1. Make sure you use the modified config file in the command you run. You may have to modify your script.

      • e.g. I changed my test command from:
        C:\AP\AnalysisPrograms.exe audio2csv C:\Users\Anthony\Downloads\S1-SP_20170924_083000.wav Towsey.Acoustic.yml C:\Temp\testindices

      to:

      C:\AP\AnalysisPrograms.exe audio2csv C:\Users\Anthony\Downloads\S1-SP_20170924_083000.wav C:\Temp\Towsey.Acoustic.30.yml C:\Temp\testindices

    and the command worked.