Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to print out voice level in python

from wavefile import WaveReader

with WaveReader("/Users/rmartin/audio.wav") as r:
    for data in r.read_iter(size=512):
        left_channel = data[0]
        volume = np.linalg.norm(left_channel)
        print volume
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #voice #level #python
ADD COMMENT
Topic
Name
3+7 =