Skip to content

Manarabdelaty/Audio-Stretching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Audio-Stretching

Using python wav package

The audio stretching method is done by resampling the audio signal at a different sampling rate calculated by the original signal’s sampling rate divided by the stretch factor.

So, if the stretch is less the one, the audio is fast played, and if the stretch factor is greater than one the audio is slow played. The input wav file is opened using python wave library. Important information like the frame rate (sampling rate of the audio signal), number of channels,sample width, and number of samples are read from the input audio file to be used again to construct the stretched audio signal.

caa

Then, the sample points of the audio signal are read to be resampled again at a different sampling rate.

acc

Then, the output file that stores the stretched audio single is opened and the number of channels and the sample width of the original audio signal are written to it.

acc

The sampling rate of the audio signal is changed to be sampling rate of the original signal divided by stretch factor.

acc

Releases

No releases published

Packages

No packages published

Languages