UOMOP

Writing audio file using soundfile library 본문

Project/Music Plagiarism Project

Writing audio file using soundfile library

Happy PinGu 2022. 7. 4. 15:45
y1, sr = librosa.load('1-1.wav')
y2, sr = librosa.load('1-2.wav')


y1, _ = librosa.effects.trim(y1)
y2, _ = librosa.effects.trim(y2)


sf.write('y1.wav', data = y1, samplerate = sr, format='wav',  endian='LITTLE', subtype='PCM_16')
sf.write('y2.wav', data = y2, samplerate = sr, format='wav',  endian='LITTLE', subtype='PCM_16')

 

 

 

 

 

Comments