Home librosa load the sound file change its shape and file size
Reply: 0

librosa load the sound file change its shape and file size

kim code
1#
kim code Published in 2018-01-09 14:54:17Z

Let say I have sound file dog.wav as 32.0kb

  y, sr = librosa.load(os.path.join(train_data_path, label, fname))
 librosa.output.write_wav('./input/train_test/'+label+'/AUG_'+fname,y,sr)

I did nothing except just loading file and re-write it to another folder.
but it change the file size as 72kb and shape

99,81,1 -> 71,81,1

is there way to keep the same file size and shape when I change the sound file with librosa?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.317483 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO