gwexpy.interop.pydub_#
Audio interop helpers for pydub and librosa-oriented exports.
Functions
|
Create a time series from a pydub |
|
Export to librosa-compatible numpy array and sampling rate. |
|
Export to a pydub |
- gwexpy.interop.pydub_.to_librosa(ts, y_dtype=<class 'numpy.float32'>)#
Export to librosa-compatible numpy array and sampling rate.
Returns (y, sr).
- gwexpy.interop.pydub_.to_pydub(ts, sample_width=2, channels=1)#
Export to a pydub
AudioSegment.
- gwexpy.interop.pydub_.from_pydub(cls, seg, unit=None)#
Create a time series from a pydub
AudioSegment.