Skip to content

Commit

Permalink
Patched EPR to work as IAnalyzer
Browse files Browse the repository at this point in the history
Original hash: 249d1a5
  • Loading branch information
atruskie committed May 26, 2015
1 parent 5cde607 commit 1af6900
Show file tree
Hide file tree
Showing 5 changed files with 185 additions and 102 deletions.
4 changes: 4 additions & 0 deletions AudioAnalysis/AnalysisBase/AnalysisSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public AnalysisSettings()
{
this.ConfigDict = new Dictionary<string, string>();
this.SegmentTargetSampleRate = AppConfigHelper.DefaultTargetSampleRate;
this.SegmentMaxDuration = TimeSpan.FromMinutes(1);
this.SegmentMinDuration = TimeSpan.FromSeconds(20);
this.SegmentMediaType = MediaTypes.MediaTypeWav;
this.SegmentOverlapDuration = TimeSpan.Zero;
}

/// <summary>
Expand Down
17 changes: 17 additions & 0 deletions AudioAnalysis/AnalysisConfigFiles/Ecosounds.GroundParrot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
## General Parameters
AnalysisName: Ecosounds.GroundParrot
ResampleRate: 22050

# default value is 4.0/15.0 = 0.2666
EprNormalizedMinScore: ~

## IAnalyzer Settings
SaveIntermediateWavFiles: false
SaveIntermediateCsvFiles: true
SaveSonogramImages: true
ParallelProcessing: true

IndexPropertiesConfig: ".\\IndexPropertiesConfig.yml"
AedConfig: ".\\Ecosounds.AED.yml"
...
3 changes: 0 additions & 3 deletions AudioAnalysis/AnalysisPrograms/AED.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ public override AnalysisSettings DefaultSettings
SegmentMinDuration = TimeSpan.FromSeconds(20),
SegmentMediaType = MediaTypes.MediaTypeWav,
SegmentOverlapDuration = TimeSpan.Zero,

// TODO: retrieve from app config after merge
SegmentTargetSampleRate = 22050
};
}
}
Expand Down
Loading

0 comments on commit 1af6900

Please sign in to comment.