Skip to main content

A python library for analysing and visualising soundscape assessments.

Project description

Soundscapy

PyPI version
Tests Test Release Release Documentation Status License

A python library for analysing and visualising soundscape assessments.

Disclaimer: This module is still heavily in development, and might break what you're working on. It will also likely require a decent amount of troubleshooting at this stage. I promise bug fixes and cleaning up is coming!

Installation

Soundscapy can be installed with pip:

pip install soundscapy

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]

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:

  • python-acoustics 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

As noted, this package is in heavy development to make it more useable, more stable, and to add features and improvements. At this stage it is mostly limited to doing basic quality checks of soundscape survey data and creating the soundscape distribution plots. 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


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.7.5a7.tar.gz (652.4 kB view details)

Uploaded Source

Built Distribution

soundscapy-0.7.5a7-py3-none-any.whl (383.8 kB view details)

Uploaded Python 3

File details

Details for the file soundscapy-0.7.5a7.tar.gz.

File metadata

  • Download URL: soundscapy-0.7.5a7.tar.gz
  • Upload date:
  • Size: 652.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for soundscapy-0.7.5a7.tar.gz
Algorithm Hash digest
SHA256 79d0f20b9b435834a1ebc4e357ddd332a2d5d4241a704b0b251100c0f24c79f6
MD5 f5e9ce127a92107a3129f3da9711b2b4
BLAKE2b-256 af45c6181f506b23342d4461df34184ecc697ddb0d5522c69b329db36ecd731f

See more details on using hashes here.

Provenance

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

Publisher: tag-release.yml on MitchellAcoustics/Soundscapy

Attestations:

File details

Details for the file soundscapy-0.7.5a7-py3-none-any.whl.

File metadata

  • Download URL: soundscapy-0.7.5a7-py3-none-any.whl
  • Upload date:
  • Size: 383.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for soundscapy-0.7.5a7-py3-none-any.whl
Algorithm Hash digest
SHA256 d502b531c650248ab845b9d2335371ccdaff9d30fa9351ee2eaca548116165e7
MD5 f8049d4fd60d3c10cac55f19a855f0e3
BLAKE2b-256 1e4f9a229aa68fe1cc348fc6f870cb0b7e54524cbf442ed2f77964a6c200dbb3

See more details on using hashes here.

Provenance

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

Publisher: tag-release.yml on MitchellAcoustics/Soundscapy

Attestations:

Supported by

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