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

user520
1#
user520 Published in July 17, 2018, 7:51 am

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.4031 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO