audioop.findmax(fragment, length)
Search fragment for a slice of length length samples (not bytes!) with maximum energy, i.e., return i for which rms(fragment[i*2:(i+length)*2])
is maximal. The fragments should both contain 2-byte samples.
The routine takes time proportional to len(fragment)
.
Please login to continue.