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.3

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.3
File Size Uploaded Provenance Actions
conch_sounds-0.4.3.tar.gz 23.4 MB Without provenance Details for conch_sounds-0.4.3.tar.gz

Built distribution (wheel)

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

Total release size: 23.4 MB

Release files / conch_sounds-0.4.3.tar.gz

Download URL conch_sounds-0.4.3.tar.gz
Size 23.4 MB
Tags Source
SHA-256 checksum
How to use checksums
e38f2c8de77aceea5ba94fde0f53427c4d822341f829ed11e28bb63f1c1ac5ba
BLAKE2b-256 checksum
How to use checksums
768469c5255cc79808f13cdf3b32f94880e02a902c0cc04655c2103d767f28e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL conch_sounds-0.4.3-py3-none-any.whl
Size 41.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc2c9706a4660a88c01a6de7587407817be51d672c5f43b5c028f36fbb274f94
BLAKE2b-256 checksum
How to use checksums
f01a32225390ec028e273f9dc13a096ad8b912de685ff92f3a65ef08b7f0c5be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for Conch-sounds 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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