179225cd81199996d724f3333834baef850cbb33,general_function/file_wav.py,,wav_scale,#Any#,27
Before Change
"""
语音信号能量归一化
"""
sum=0
for i in energy:
sum=sum+i*i
length=len(energy)
print(length,sum)
m=math.sqrt(length/sum)
e=energy*m
return e
def wav_show(wave_data, fs): // 显示出来声音波形
After Change
"""
语音信号能量归一化
"""
means = energy.mean() // 均值
var=energy.var() // 方差
e=(energy-means)/math.sqrt(var) // 归一化能量
return e
def wav_show(wave_data, fs): // 显示出来声音波形
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: nl8590687/ASRT_SpeechRecognition
Commit Name: 179225cd81199996d724f3333834baef850cbb33
Time: 2017-08-29
Author: 3210346136@qq.com
File Name: general_function/file_wav.py
Class Name:
Method Name: wav_scale
Project Name: ncullen93/torchsample
Commit Name: fc0f28ef337bb7b087fbba43fb085af27d34d846
Time: 2017-05-05
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/image_transforms.py
Class Name: Contrast
Method Name: __call__
Project Name: masa-su/pixyz
Commit Name: bea3a486261d3f6238316224605b684db1e5bca7
Time: 2018-10-16
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/models/vae.py
Class Name: VAE
Method Name: __init__