d4r3topk / comparing-audio-files-python Goto Github PK
View Code? Open in Web Editor NEWThis project is for the comparison of two audio files based on their MFCC's.
This project is for the comparison of two audio files based on their MFCC's.
Because of the changes in version 0.6.0 of librosa, import librosa.display is required for librosa.display.specshow() to work.
import librosa.display
import matplotlib.pyplot as plt
from scipy.spatial.distance import euclidean,mahalanobis
from dtw import dtw
dist, _, cost, path = dtw(mfcc1.T, mfcc2.T, dist=euclidean)
comparing-audio-files-python/mfcc.py
Line 19 in 641dfb8
This is not really an issue,but a doubt rather.
It's mentioned as a comment that the dist value for similar audios should be 0 or close to 0? If that's what you meant.
I am doing a speech project in which I'm comparing the similarity between audios. Basically I have a bunch of phoneme recordings from the same voice. Some of them sound similar and some of them don't. So I am using this dist measure to quantify that similarity. And based on what i've observed so far with the samples I have,a dist value of anything less than 180 is holding true for similar sounding phoneme recordings and greater than 180 for the dissimilar ones.
And it's never or not even close to zero.
Can I use this condition to compare the similarities? Please let me know. Thanks in advance.
Could you update this: https://github.com/d4r3topk/comparing-audio-files-python/blob/master/mfcc.py
It's addressed here: pollen-robotics/dtw@307fe72
The original issue is here: pollen-robotics/dtw#18
This would be a huge help for folks who go through some of your snippets
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.