https://github.com/libAudioFlux/audioFlux AudioFlux is a library for audio and music analysis and feature extraction, which supports dozens of time-frequency analysis and transformation methods, as well as hundreds of corresponding time-domain and frequency-domain feature combinations, which can be provided to the deep learning network for training and can be used to study the classification, separation, music information retrieval (MIR), ASR and other tasks in the audio field. Project highlights
1. Systematic and multi-dimensional feature extraction and the combination can be flexibly used for various task research and analysis.
2. The performance is efficient, the core is mostly implemented in C, and FFT hardware acceleration based on different platforms is convenient for large-scale data feature extraction.
3. It applies to the mobile end and supports real-time calculation of the audio stream at the mobile end. Code Demo
An example of Mel and MFCC features. - import numpy as np
-
import audioflux as af
-
-
import matplotlib.pyplot as plt
-
from audioflux.display import fill_spec
-
-
# Get a 220Hz's audio file path
-
sample_path = af.utils.sample_path('220')
-
-
# Read audio data and sample rate
-
audio_arr, sr = af.read(sample_path)
-
-
# Extract mel spectrogram
-
spec_arr, mel_fre_band_arr = af.mel_spectrogram(audio_arr, num=128, radix2_exp=12, samplate=sr)
-
spec_arr = np.abs(spec_arr)
-
-
# Extract mfcc
-
mfcc_arr, _ = af.mfcc(audio_arr, cc_num=13, mel_num=128, radix2_exp=12, samplate=sr)
-
-
# Display
-
audio_len = audio_arr.shape[0]
-
# calculate x/y-coords
-
x_coords = np.linspace(0, audio_len / sr, spec_arr.shape[1] + 1)
-
y_coords = np.insert(mel_fre_band_arr, 0, 0)
-
fig, ax = plt.subplots()
-
img = fill_spec(spec_arr, axes=ax,
-
x_coords=x_coords, y_coords=y_coords,
-
x_axis='time', y_axis='log',
-
title='Mel Spectrogram')
-
fig.colorbar(img, ax=ax)
-
-
fig, ax = plt.subplots()
-
img = fill_spec(mfcc_arr, axes=ax,
-
x_coords=x_coords, x_axis='time',
-
title='MFCC')
-
fig.colorbar(img, ax=ax)
-
-
plt.show()
0 353 Sign in to post your reply or Sign up for a free account.
Similar topics
by: Henning Kage |
last post by:
I'm writing a small Python library with some generic classes and
interfaces, that can be used within other Python projects in our company.
Would it be a better solution to compile this library into...
|
by: Parano |
last post by:
Is there a Python library to access CVS?
I tried to google search for it, but with "python cvs" you actually find
alot of python projects that have CVS repository...
|
by: aurora |
last post by:
Sometimes it is rather frustrated to use the Python Library Reference. It
seems each section is hand crafted and it is up to the author decide the
organization and coverage. For example the os...
|
by: Alessandro Bottoni |
last post by:
Which Python library would you use for developing a small Jabber client?
jabber.py (seems to be dead since 2003)
http://jabberpy.sourceforge.net/
pyxmpp (looks like the "official" python...
|
by: Jonathon Blake |
last post by:
All:
I thought I had seen a python library/module that easily enabled one
to read / write / create MSAccess databases a couple of years ago.
Now, I can't find it, or any reference to such a...
|
by: bobueland |
last post by:
The "Python LIbrary Reference" at
http://docs.python.org/lib/contents.html seems to be an important
document. I have two questions
Q1. How do you search inside "Python LibraryReference" ? Does...
|
by: Allerdyce.John |
last post by:
Is there a python library to parse C++ code file?
If yes, can you please tell me where is it?
Thank you.
|
by: buzzer |
last post by:
Hi,
anyone can advise or provide any source for performing feature extraction for images/patterns/character recognition in matlab environment?
thanks
|
by: m.n.summerfield |
last post by:
Although a fan of Python, I find the Python Library Reference page
(lib.html) very inconvenient because of its book contents-like layout.
Also, some things that seem to me to belong together, such...
|
by: Jonas |
last post by:
Quoting Christopher Lenz:
-----------------------------------------------------------------------------------------
Babel 0.8 - Jun 20, 2007
========================
We're proud to present the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| | |