audio amplitude

Discuss Papagayo issues here

Moderators: Víctor Paredes, slowtiger

Post Reply
hdd
Posts: 6
Joined: Thu Dec 08, 2005 5:11 pm

audio amplitude

Post by hdd »

I need to recover the audio amplitude of the used file in the export (LipsyncDoc.py) . there some way to have an access to it ?

thanks in advance
and sorry for my english.
User avatar
Lost Marble
Site Admin
Posts: 2347
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

Since it sounds like you're working with the source, search in the file WaveformView.py for a call to the function GetRMSAmplitude(). It takes two arguments - the start time and the duration of the section of time you want the amplitude. There are two similar functions: GetAmplitude() gets the average amplitude for the time slice, and GetMaxAmplitude() gets the maximum amplitude for the time slice.
hdd
Posts: 6
Joined: Thu Dec 08, 2005 5:11 pm

Post by hdd »

yes i'm digging into the code :D
i'll try asap , thanks!!!

L.
Post Reply