Calculate RMS amplitude of a float wav file and normalize to a certain db level in numpy

前端 未结 0 476
慢半拍i
慢半拍i 2020-12-12 00:25

I\'ve found an article that suggests:

def rms(sound, rms_level=-5):
    # sound.shape = (samples, channels)
    r = 10**(rms_level / 10.0)
    a = np.sqrt((le         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题