Coder Social home page Coder Social logo

Speed augmentation about audiomentations HOT 4 CLOSED

LXP-Never avatar LXP-Never commented on August 23, 2024
Speed augmentation

from audiomentations.

Comments (4)

iver56 avatar iver56 commented on August 23, 2024

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.

ankerAITD avatar ankerAITD commented on August 23, 2024

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.

iver56 avatar iver56 commented on August 23, 2024

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:

#62

from audiomentations.

iver56 avatar iver56 commented on August 23, 2024

I have updated the documentation regarding this: https://iver56.github.io/audiomentations/waveform_transforms/time_stretch/

from audiomentations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.