我尝试使用来自librosa的librosa和pitch_shift。我录下了我的声音,并使用了以下代码:
sampling_rate= 44100
y, sr = librosa.load(directory, sr=sampling_rate) # y is a numpy array of the wav file, sr = sample rate
y_shifted = librosa.effects.pitch_shift(y, sr, n_steps=4, bins_per_octave=24) # shifted by 4 half steps
librosa.output.write_wav(directory, y_shifted, sr=sampling_rate, norm=False)
效果很好-差不多。
我在我的新声音里听到了一些噪音(在pitch_shifting之后)
有什么需要我用的吗?
不换班:
https://vocaroo.com/i/s1qEEDvzcUHN
使用shift (n_steps = 4):
发布于 2019-08-05 17:01:22
https://stackoverflow.com/questions/57362543
复制相似问题