Skip to content

Audio Recognition Algorithm Python Package

Notifications You must be signed in to change notification settings

hello080826/Auana-P

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auana-P Version 0.5

#Auana-P:Auana algorithm Python Package
########################

Auana is a open source, free and light tool with the audio recognition and basic analysis algorithms. It try to provide a professional audio recognition solutions for python.
It was designed by python and c(core algorithm). So it is fast enough, it can easily find the simialr references which it heared before, the progress just like human. And also it will tell the user the position where the songs is playing. Auana support microphone records and file analysis. File analysis only support "wav" file for now. In addition, it also provide the functions: Broken-Frame detection and Volume value detection.

Except using for recognitions, it will more focus on audio signal analysis. At the begaining, Auana is designed for audio validition. It is so boring to check the musics/songs by manually.
So for the automation of audio validation, it may be a good idea. It is still in developing. If you are intereted in it, welcome to contact me by Email.

##Setup:

  • Firstly, install python package "numpy" (math tool)
  • Besides, install python package "pyaudio" (audio play/record library)

##Features:

1.Broken-frame detection [support]
2.Sound recognition [support]
3.Volume value detection [support]
4.Audio play and record [support]
5.Signal noise ratio detection [will]
6.Support mp3 ,wma…etc [will]
7.Detect noise [will]

##Quickly Start

1> Prework: The recognition need to get the reference information of audios before starting of your work.
The "Preprocess" is a class can be used to memory an audio charactics. The following example
shows how to use it.
For example:

        from auana import Preprocess
        p=Preprocess
        
        #memory the audio infomation,before you start to Analyze
        p.hear("sample.wav")
        
        #show all itmes which saved in it's internal.
        p.items()
        
        #clear all items. this functions should be used with caution.
        p.clean_up()

2> Recognition: There are two calss: Auana and Fana.
Fana: File recognition(only support .wav)
For example:

        from auana import Fana
        
        #mono recognition
        print Fana("sample.wav").mono_start()
        
        #stereo recognition
        print Fana("sample.wav").stereo_start()

3> Broken-Frame detection: This is a special funtions to be used to detect broken-frame.
It will tell you wheather the audi lost frames, and will return where lost it.
For example:

        from auna import Fana
        #broken frame detection
        Fana("sample.wav").broken_frame()

##Demo User's Guide

1> Prework_Demo
Prework_Demo can memory the new files.

2> Mic_Recognition_Demo
This is a Demo for showing how to recognize the data from MIC. You can double click the "Mic_Recognition_Demo" to run.
And then you can play a song and press "Enter" to make the demo to processing.

3> File_Search_Demo
Drag the sample ".wav" file into "File_Search_Demo.py".

4> Broken_Frame_Demo
Drag the sample into "BrokenFrameDemo.py".

##Simple Theory

3 4 5 6 6 8

##Performance

There are 180 files in the "auana/data" folder. Follow figure shows the relationships between record-time and search time.

7

##Version modification

version 0.1.Auana Pacage.
version 0.2.Auana: designed by C and python.
version 0.3.Auana: Optimzie parameter about recognition to make it more reliable.
version 0.4.Auana: New functions: return where the match songs is playing.
version 0.5.Auana: Optimize the get_fingerprint algoritms

About

Audio Recognition Algorithm Python Package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.9%
  • C 19.1%