facebookresearch / WavAugment

A library for speech data augmentation in time-domain
MIT License
640 stars 57 forks source link

Speed Effect issue #18

Closed BilalDendani closed 3 years ago

BilalDendani commented 3 years ago

Hello every one, I am successfully applying the speed effect, however, the results of augmented wave files are changed in terms of the Precision and the sample Encoding. When I applied the speed effect on the original file characterized by 8kHZ sampling rate and a precision of 16 bits, I got a changed precision towards 24bits and a changed sample Encoding towards 32-bits Floating. I want to save the same characteristics for the original file (precision, sample encoding...) An example of the issue is as follows 1. Original file user@soxi ../encodedNoise/MSA_12_H02_Sync222.wav Input File : '../encodedNoise/MSA_12_H02_Sync222.wav' Channels : 1 Sample Rate : 8000 Precision : 16-bit Duration : 00:00:01.21 = 9680 samples ~ 90.75 CDDA sectors File Size : 19.4k Bit Rate : 128k Sample Encoding: 16-bit Signed Integer PCM After applying speed augmentation with the Waveaugment library, I obtained the following result 2. Augmented file with speed effect user@soxi MSA_12_H02_Sync222.wav Input File : 'MSA_12_H02_Sync222.wav' Channels : 1 Sample Rate : 8000 Precision : 24-bit Duration : 00:00:01.22 = 9728 samples ~ 91.2 CDDA sectors File Size : 39.0k Bit Rate : 256k Sample Encoding: 32-bit Floating Point PC Thanks

BilalDendani commented 3 years ago

problem solved, just add the precision option. precision=16.