Conch
=====
[![Build Status](https://travis-ci.org/mmcauliffe/Conch-sounds.svg?branch=master)](https://travis-ci.org/mmcauliffe/Conch-sounds)
[![Coverage Status](https://coveralls.io/repos/github/mmcauliffe/Conch-sounds/badge.svg?branch=master)](https://coveralls.io/github/mmcauliffe/Conch-sounds?branch=master)
[![Documentation Status](https://readthedocs.org/projects/conch-sounds/badge/?version=latest)](http://conch-sounds.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/conch_sounds.svg)](https://badge.fury.io/py/conch_sounds)
[![DOI](https://zenodo.org/badge/9966944.svg)](https://zenodo.org/badge/latestdoi/9966944)
This package contains functions for converting wav files into auditory
representations and calculating distance between them.
Auditory representations currently supported are mel-frequency cepstrum
coefficients (MFCCs) and amplitude envelopes.
Distance metrics currently implemented are dynamic time warping and
cross-correlation.
Installation
==================
The latest released version can be installed via:
`pip install conch_sounds`
Higher level wrappers
==================
In `conch/main.py` there are several wrapper functions for convenience.
Each of these functions takes keyword arguments corresponding to how auditory
representations should be constructed and what distance function to use.
**acoustic_similarity_mapping** takes a mapping of paths as its argument.
This argument should be a list of pairs or triplets of fully specified file names.
Pairs will compute the distance between the two files, and triplets will compute
an AXB style design, where distances are computed between the first element and the second and
between the third element and the second. In this case, the numerical output
will be a ratio of the third element's distance to the second divided by the
first element's distance to the second. The return value is a dictionary
with the pairs/triplets as keys, and the numerical output as the values.
**acoustic_similarity_directories** takes two arguments which are fully specified paths
to two directories. It then constructs a path mapping of all the files in
the first directory to all the files in the second directory. The return
value is a single value, which the average distance of all those calculated.
**analyze_directory** takes a single directory as an argument and creates a
path mapping of all the files compared to all other files. The return value is a dictionary
with the file pairs as keys, and the numerical output as the values.
Raw data
{
"_id": null,
"home_page": "https://github.com/mmcauliffe/Conch-sounds",
"name": "Conch-sounds",
"maintainer": "Michael McAuliffe",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "michael.e.mcauliffe@gmail.com",
"keywords": "phonetics, acoustics, acoustic similarity",
"author": "Michael McAuliffe",
"author_email": "michael.e.mcauliffe@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3a/37/e022d8c67ce8c1be8bdcfb885926226a820557e163f44803d3fcd3313913/conch_sounds-0.4.0.tar.gz",
"platform": null,
"description": "Conch\n=====\n\n[![Build Status](https://travis-ci.org/mmcauliffe/Conch-sounds.svg?branch=master)](https://travis-ci.org/mmcauliffe/Conch-sounds)\n[![Coverage Status](https://coveralls.io/repos/github/mmcauliffe/Conch-sounds/badge.svg?branch=master)](https://coveralls.io/github/mmcauliffe/Conch-sounds?branch=master)\n[![Documentation Status](https://readthedocs.org/projects/conch-sounds/badge/?version=latest)](http://conch-sounds.readthedocs.io/en/latest/?badge=latest)\n[![PyPI version](https://badge.fury.io/py/conch_sounds.svg)](https://badge.fury.io/py/conch_sounds)\n[![DOI](https://zenodo.org/badge/9966944.svg)](https://zenodo.org/badge/latestdoi/9966944)\n\nThis package contains functions for converting wav files into auditory \nrepresentations and calculating distance between them.\n\nAuditory representations currently supported are mel-frequency cepstrum\ncoefficients (MFCCs) and amplitude envelopes.\n\nDistance metrics currently implemented are dynamic time warping and\ncross-correlation.\n\nInstallation\n==================\n\nThe latest released version can be installed via:\n\n`pip install conch_sounds`\n\nHigher level wrappers\n==================\n\nIn `conch/main.py` there are several wrapper functions for convenience.\n\nEach of these functions takes keyword arguments corresponding to how auditory\nrepresentations should be constructed and what distance function to use.\n\n**acoustic_similarity_mapping** takes a mapping of paths as its argument.\nThis argument should be a list of pairs or triplets of fully specified file names.\nPairs will compute the distance between the two files, and triplets will compute\nan AXB style design, where distances are computed between the first element and the second and\nbetween the third element and the second. In this case, the numerical output\nwill be a ratio of the third element's distance to the second divided by the\nfirst element's distance to the second. The return value is a dictionary\nwith the pairs/triplets as keys, and the numerical output as the values.\n\n**acoustic_similarity_directories** takes two arguments which are fully specified paths\nto two directories. It then constructs a path mapping of all the files in\nthe first directory to all the files in the second directory. The return\nvalue is a single value, which the average distance of all those calculated.\n\n**analyze_directory** takes a single directory as an argument and creates a\npath mapping of all the files compared to all other files. The return value is a dictionary\nwith the file pairs as keys, and the numerical output as the values.\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Analyze acoustic similarity in Python",
"version": "0.4.0",
"project_urls": {
"Homepage": "https://github.com/mmcauliffe/Conch-sounds"
},
"split_keywords": [
"phonetics",
" acoustics",
" acoustic similarity"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3da09eb528abb4163d81d421aa9072e5142d7f4b450b35641c5020da217ccabd",
"md5": "fee8fd5c5d96fea2bdee92197dd47c4e",
"sha256": "2daaad29a0553976c3b284a48170c2fc574bdbb42e980d5c1b7e73f869050e32"
},
"downloads": -1,
"filename": "Conch_sounds-0.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fee8fd5c5d96fea2bdee92197dd47c4e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 41517,
"upload_time": "2024-08-27T23:15:28",
"upload_time_iso_8601": "2024-08-27T23:15:28.311023Z",
"url": "https://files.pythonhosted.org/packages/3d/a0/9eb528abb4163d81d421aa9072e5142d7f4b450b35641c5020da217ccabd/Conch_sounds-0.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3a37e022d8c67ce8c1be8bdcfb885926226a820557e163f44803d3fcd3313913",
"md5": "ff645dd4e042ce49cfa9cef8cb2f4a74",
"sha256": "f73d23e9bc0716f09d02f6f421684f00efaf943ac1f8a506df7c1b63e064ef67"
},
"downloads": -1,
"filename": "conch_sounds-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "ff645dd4e042ce49cfa9cef8cb2f4a74",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 23388556,
"upload_time": "2024-08-27T23:15:30",
"upload_time_iso_8601": "2024-08-27T23:15:30.303016Z",
"url": "https://files.pythonhosted.org/packages/3a/37/e022d8c67ce8c1be8bdcfb885926226a820557e163f44803d3fcd3313913/conch_sounds-0.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-27 23:15:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mmcauliffe",
"github_project": "Conch-sounds",
"travis_ci": true,
"coveralls": true,
"github_actions": true,
"requirements": [],
"lcname": "conch-sounds"
}