Comments (4)
I'm not sure I fully understand what you meant with "The TimeStretch method changed the tone". Could you please post an audio example with input (unprocessed) and outputs: one processed with TimeStretch in audiomentations and one with audio.a_speed? A zip file as attachment to the comment should work
from audiomentations.
I'm not sure I fully understand what you meant with "The TimeStretch method changed the tone". Could you please post an audio example with input (unprocessed) and outputs: one processed with TimeStretch in audiomentations and one with audio.a_speed? A zip file as attachment to the comment should work
speed_aug.zip
The audio generated by the librosa method looks blurred, and it sounds like a loud noise. And ffmpeg just changed the speed
from audiomentations.
Thanks, now I have more insight! Yes, it's no secret that librosa's time stretch implementation doesn't give a high quality sounding result for speech recordings, especially when the time stretch factor is extreme (in your example it was a 2x speedup). Under the hood it uses phase vocoding. Phase vocoding can degrade audio quality by "smearing" transient sounds, altering the timbre of harmonic sounds, and distorting pitch modulations. This may result in a loss of sharpness, clarity, or naturalness in the transformed audio.
librubberband or ffmpeg do indeed give better-sounding time stretching outputs. I believe ffmpeg's atempo (exposed as a_speed in the python API you showcased here) is based on WSOLA under the hood.
There's a github issue about adding support for more time stretching methods, like WSOLA and ESOLA, to audiomentations:
from audiomentations.
I have updated the documentation regarding this: https://iver56.github.io/audiomentations/waveform_transforms/time_stretch/
from audiomentations.
Related Issues (20)
- Dereverberation transform
- Improve Shift transform
- Add support for target_peak_dbfs and maybe a "true peak" boolean in Normalize
- Add support for zero phase peaking filter
- Add support for zero phase low/high shelf filter
- Add Chorus transform HOT 2
- Add Phaser transform HOT 1
- Add parameter for ensuring mp3 compression output length is the same as the input length HOT 3
- Enhance pitch shifting HOT 1
- test_simulate_apply_parity failure HOT 5
- Report specific python minor version HOT 2
- test_simulate_apply_parity - AssertionError: approx() is not supported in a boolean context HOT 7
- Obsolete link to DOI on the documentation page HOT 1
- Reference to non-released version in docs
- Add issue templates to the repository
- Question about documentation creation HOT 1
- Transform for adding noise with the same spectral profile as the given signal
- The blank frame will be added after applying the Limiter HOT 5
- Avoid picking silent part of noise file HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audiomentations.