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

[Question:] How to capture intensity or perceived loudness of a given audio file at regular intervals #61

Closed
StanSilas opened this issue May 11, 2018 · 3 comments

Comments

@StanSilas
Copy link

If you are playing a song on your laptop, As you increase the volume from 0 to 100, the audio becomes louder and louder.

Say I have an .mp3 or .wav , how do I capture this ^ perceived loudness/intensity at regular intervals (may be 0.1 second) in the audio using python speech features?

Any advice is appreciated.

Thanks
Vivek

@morenoh149
Copy link

morenoh149 commented May 12, 2018

the amplitude of the waveform is the loudness. So to measure the loudness every 0.1 seconds you get the amplitude at that point in time. Maybe you want something else?

this project uses scipy and that returns a numpy array (https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.wavfile.read.html#scipy.io.wavfile.read) so you'd just seek in that np array to the time you're interested in and return the value at that time.

@venkatsubash2003
Copy link

Do you mean that Loudness is nothing but Amplitude per second?

@jameslyons
Copy link
Owner

jameslyons commented Dec 29, 2022 via email

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

4 participants