Skip to main content

A python library for analysing and visualising soundscape assessments.

Project description

Soundscapy Logo

Soundscapy

PyPI version Tests License

A python library for analysing and visualising soundscape assessments.

Installation

Soundscapy can be installed with pip:

pip install soundscapy

Upgrading from 0.7.x? v0.8.2 is the long-overdue stable release that consolidates the entire v0.8.0rc* and v0.8.2.dev* pre-release line. Several APIs have changed (most notably the new ISOPlot plotting API). See the migration guide before upgrading.

Optional Dependencies

Soundscapy splits its functionality into optional modules to reduce the number of dependencies required for basic functionality. By default, Soundscapy includes the survey data processing and plotting functionality.

If you would like to use the binaural audio processing and psychoacoustics functionality, you will need to install the optional audio dependency:

pip install "soundscapy[audio]"

If you would like to use the R-backed SPI and SATP functionality, install the optional r dependency:

pip install "soundscapy[r]"

R-backed features also require a local R installation and the external sn R package:

R -q -e "install.packages('sn')"

CircE is bundled with Soundscapy as embedded R scripts, so you do not need to install CircE separately from GitHub.

To install all optional dependencies, use the following command:

pip install "soundscapy[all]"

Examples

We are currently working on writing more comprehensive examples and documentation, please bear with us in the meantime.

Tutorials for using Soundscapy can be found in the documentation.

Acknowledgements

The newly added Binaural analysis functionality relies directly on three acoustic analysis libraries:

  • Acoustic Toolbox for the standard environmental and building acoustics metrics,
  • scikit-maad for the bioacoustics and ecological soundscape metrics, and
  • MoSQITo for the psychoacoustics metrics. We thank each of these packages for their great work in making advanced acoustic analysis more accessible.

Citation

If you are using Soundscapy in your research, please help our scientific visibility by citing our work! Please include a citation to our accompanying paper:

Mitchell, A., Aletta, F., & Kang, J. (2022). How to analyse and represent quantitative soundscape data. JASA Express Letters, 2, 37201. https://doi.org/10.1121/10.0009794

Development Plans

Soundscapy is under active development as we add features and refine the API. The package now covers survey processing, the new layered ISOPlot plotting API, binaural and psychoacoustic audio analysis, and R-backed circumplex SEM (SATP) and Soundscape Perception Indices (SPI) modules. Some planned improvements are:

  • Simplify the plotting options
  • Possibly improve how the plots and data are handled - a more OOP approach would be good.
  • Add appropriate tests and documentation.
  • Bug fixes, particularly around setting color palettes.

Large planned feature additions are:

  • Add better methods for cleaning datasets, including robust outlier exclusion and imputation.
  • Add handling of .wav files.
  • Integrate environmental acoustic and psychoacoustic batch processing. This will involve using existing packages (e.g. MoSQito, python-acoustics) to do the metric calculations, but adding useful functionality for processing any files at once, tieing them to a specific survey response, and implementing a configuration file for maintaining consistent analysis settings.
  • Integrate the predictive modelling results from the SSID team's research to enable a single pipelined from recording -> psychoacoustics -> predicted soundscape perception (this is very much a pie-in-the-sky future plan, which may not be possible).

Contributing

If you would like to contribute or if you have any bugs you have found while using `Soundscapy', please feel free to get in touch or submit an issue or pull request!

Please see CONTRIBUTING.md for contribution guidelines.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

soundscapy-0.8.4.tar.gz (452.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

soundscapy-0.8.4-py3-none-any.whl (468.2 kB view details)

Uploaded Python 3

File details

Details for the file soundscapy-0.8.4.tar.gz.

File metadata

  • Download URL: soundscapy-0.8.4.tar.gz
  • Upload date:
  • Size: 452.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for soundscapy-0.8.4.tar.gz
Algorithm Hash digest
SHA256 346d2249e6aaa4cf250b9bf630b39139bcdf7abb926b3d03f0508e619ce7d863
MD5 3fb4f43ccaff3f7c9e14bd084e074a44
BLAKE2b-256 135b1fb425b1fbf57d9bcaf1427705f87c24029ecd3869804e57b8f2431fc4c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for soundscapy-0.8.4.tar.gz:

Publisher: release.yml on MitchellAcoustics/Soundscapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file soundscapy-0.8.4-py3-none-any.whl.

File metadata

  • Download URL: soundscapy-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 468.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for soundscapy-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2e8f3d5e8ba34ef48beb76f5db950bb0453d096e4940d61814bc2b856678e6df
MD5 701fd7f625cea80d3591c1f574e459e6
BLAKE2b-256 a956d617ad16e87bbfb4c43b95bf01bdaf5a20c43f22a360b7840adc4a2af333

See more details on using hashes here.

Provenance

The following attestation bundles were made for soundscapy-0.8.4-py3-none-any.whl:

Publisher: release.yml on MitchellAcoustics/Soundscapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page