Skip to content

JyzjYzjyZ/Format-conversion-of-in-memory-audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Format-conversion-of-in-memory-audio

A simple tool class to compensate for the extremely slow loading of librosa, the inability to convert soundfiles to raw, and the difficulty of using wave

Audio object interconversion of librosa wave torchaudio soundfile


Usage scenarios Audio libraries are inconsistent when using multiple pre-trained models, making them always available on a single load

Support: loading audio resamples and converting to mono at a speed of approximately 46s/130min

input:audioPath or nparray:float64

output:tensor:shape(1,x)

  numpy:interest6 [shap(x) or shape(x,1)]

  wave binary:int16

image

install

python 3.8.12

pip install soundfile
pip install librosa
pip install torch
pip install copy

About

A simple tool class to compensate for the extremely slow loading of librosa, the inability to convert soundfiles to raw, and the difficulty of using wave

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages