0

I need to calculate amplitude of the audio from a video streaming source which is in .asf format in PYTHON. Currently, I have tried to convert it into .wav file and used wave python package but I need to do it in real time. In short, need to perform following steps;

  1. Continously read input video stream
  2. Pre processing the audio signal
  3. Calculate amplitude in given interval

Currentl used wave library of python and read the stored wav format clip, then extracted the amplitude from the wave.readframes() output such that

wf = wave.open()
data = wf.readframes()
amplitude = data[2]
Ali Raza
  • 51
  • 3

0 Answers0