iver56 / audiomentations

A Python library for audio data augmentation. Inspired by albumentations. Useful for machine learning.
https://iver56.github.io/audiomentations/
MIT License
1.82k stars 187 forks source link

Enhance pitch shifting #316

Open moritzsur opened 7 months ago

moritzsur commented 7 months ago

Sadly the librosa pitch shift is very ... improvable... Shifted data does not reflect real world data. Signalsmith stretch is way better. Im pretty new to python, is it feasible to add a C++ library to a python library?

iver56 commented 7 months ago

Hey! Yes, there are definitely better-sounding alternatives out there. Here are a few more:

is it feasible to add a C++ library to a python library?

Yes, it's possible to make a foreign function interface so we can call a C++ function from Python. But keep in mind that the C++ code would have to be compiled for each target environment, which includes various combinations of operating systems and CPU architectures.

PRs are welcome