Skip to content

roughness_dw time performance to be optimized? #67

@Antoine101

Description

@Antoine101

Hi folks,

First of all, thank you for providing access to such a great library!

I am trying to implement the calculation of psychoacoustics metrics in my sound classification machine learning project.
I want to calculate a few metrics on short snapshots of sound and as I have many sound events, it leads to a huge number of snapshots.

I noticed the calculation of roughness is significantly greater than other metrics such as loudness or sharpness. I don't know a lot about psychoacoustics or how the calculations are done.
Calculating roughness on a single short 200ms signal (=1 frame) takes around 0.5s.
Calculating roughness directly from the spectrum of this single short 200ms signal takes around 2.1s.

So my questions are:

  • Has the roughness_dw calculation script been optimized to its full potential?
  • What can explain the difference in time it takes between calculating from the time signal or the spectrum directly? I would expect the former to take less time, not more.

Many thanks

Cheers

Antoine

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions