Skip to content

Commit

Permalink
Update SpectrogramGenerator.Core.cs
Browse files Browse the repository at this point in the history
Issue #492 Ensure that the mel scale spectrogram parameters are passed to the drawing method.
  • Loading branch information
towsey committed Jun 6, 2021
1 parent f98f055 commit 5229056
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ public static AudioToSonogramResult GenerateSpectrogramImages(
// The default spectrogram has 64 frequency bands.
if (@do.Contains(MelScaleSpectrogram))
{
sonoConfig.DoPreemphasis = config.DoPreemphasis;
sonoConfig.mfccConfig.DoMelScale = true;
sonoConfig.mfccConfig.FilterbankCount = config.FilterbankCount;
images.Add(
MelScaleSpectrogram,
GetMelScaleSpectrogram(sonoConfig, recordingSegment, sourceRecordingName));
Expand Down

0 comments on commit 5229056

Please sign in to comment.