985496146dd1ebdc3a43ac921de627c6b61b5200,audio.py,,load_wav,#,10
Before Change
def load_wav(path):
return librosa.core.load(path, sr=hparams.sample_rate)[0]
def save_wav(wav, path):
wav *= 32767 / max(0.01, np.max(np.abs(wav)))
After Change
if x.dtype == np.int16:
x = x.astype(np.float32) / signed_int16_max
if sr != hparams.sample_rate:
x = librosa.resample(x, sr, hparams.sample_rate)
x = np.clip(x, -1.0, 1.0)
return x
def save_wav(wav, path):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: r9y9/wavenet_vocoder
Commit Name: 985496146dd1ebdc3a43ac921de627c6b61b5200
Time: 2019-08-25
Author: zryuichi@gmail.com
File Name: audio.py
Class Name:
Method Name: load_wav
Project Name: nilmtk/nilmtk
Commit Name: 53823a31d05f187df7967b7208ce97f584964551
Time: 2014-12-20
Author: jack-list@xlk.org.uk
File Name: nilmtk/electric.py
Class Name: Electric
Method Name: activity_distribution
Project Name: neuropsychology/NeuroKit.py
Commit Name: 628c6db73c74fdb798c6fdb375a5903807de1511
Time: 2017-05-17
Author: dom.mak19@gmail.com
File Name: examples/UnderDev/ECG_Signal_Quality_Classifier/classifier.py
Class Name:
Method Name: