Skip to content
/ hac Public

Histograms of Acoustic Co-occurrences

License

BSD-3-Clause, Unknown licenses found

Licenses found

BSD-3-Clause
LICENSE
Unknown
LICENSE.md
Notifications You must be signed in to change notification settings

mwv/hac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAC Sample code

Usage

This code has two main scripts: train_codebook.py, which trains a VQ codebook on a directory of audio files; and sig2hac.py, which converts a single audiofile to its HAC representation.

Training a codebook

To train a codebook on directory /path/to/audiofiles/ and store the output in codebook.pkl:

python train_codebook.py /path/to/audiofiles/ codebook.pkl

Note that the script will recursively search the input directory for files with the .wav extension.

Converting audio files

To convert audiofile myfile.wav to its hac representation myhac.pkl using codebook mycodebook.pkl:

python sig2hac.py mycodebook.pkl myfile.wav myhac.pkl

Requirements

About

Histograms of Acoustic Co-occurrences

Resources

License

BSD-3-Clause, Unknown licenses found

Licenses found

BSD-3-Clause
LICENSE
Unknown
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages