Skip to main content

Conch

Build Status Coverage Status Documentation Status PyPI version DOI

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.

Metadata

Release files for Conch-sounds 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Conch-sounds 0.4.2
File Size Uploaded
conch_sounds-0.4.2.tar.gz 23.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for Conch-sounds 0.4.2
File Interpreter ABI Platform
conch_sounds-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 23.4 MB

Release files / conch_sounds-0.4.2.tar.gz

Download URL conch_sounds-0.4.2.tar.gz
Size 23.4 MB
Tags Source
SHA-256 checksum
How to use checksums
6627628b16491f19a602bd3f2a30312b2b52e710e1fe6a80829782e9119e497c
BLAKE2b-256 checksum
How to use checksums
f1886ca41b3336f24464b22aa070172436d60b2ddcabb5da63bf90db87b99204
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / conch_sounds-0.4.2-py3-none-any.whl

Download URL conch_sounds-0.4.2-py3-none-any.whl
Size 41.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f336534498abcd7167b8d95d187f23bca883ddfed2b61a34b024c418042cabc8
BLAKE2b-256 checksum
How to use checksums
3d42b54c57256bcba2a57427c6be2ac3f11dbea5048942b929d3bef221bb562a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

3 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page