-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mod_dptools:playback] fix audio speed change to preserve pitch
When a file is being played with the playback application and the speed is changed with eg. uuid_fileman speed:+1 the audio pitch increases. This commit tries to preserve the pitch even when the speed is changed. How? + Use longer sample chunks (where original freq is preserved) + Search for the best cut position using cross-correlation + Crossfade adjacent chunks to each other This is basically a copy of my unreviewed PR from the old system https://freeswitch.org/stash/projects/FS/repos/freeswitch/pull-requests/1707/commits/b8b98bbf310c6d8f138f68af7815d0938c440a13
- Loading branch information
Showing
1 changed file
with
84 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters