Skip to main content

Python implementation of soundscapecode

Project description

SoundScapeCode

Python implementation of the soundscape code [1], ported from a Matlab example [2].

Installation

pip install soundscapecode

Usage

Values can be calculated individually:

import soundscapecode as ssc

fs = 48000
mock_sound = np.random.rand(fs*60, 1)
periodicity = ssc.periodicity(mock_sound, fs)

Or to calculate all values for one recording:

from soundscapecode import SoundscapeCode

fs = 48000
n_mins = 3
mock_sound = np.random.rand(fs*n_mins*60, 1)
soundscape = SoundscapeCode(mock_sound, fs)
for dt in soundscape["dt"]:
    print(dt)

Documentation

Check the documentation at readthedocs.

Contact

Please contact me with any questions

References

[1] Dylan Wilford, Jennifer Miksis-Olds, Bruce Martin, Kim Lowell; Introduction and application of a proposed method for quantitative soundscape analysis: The soundscape code. J. Acoust. Soc. Am. 1 April 2021; 149 (4_Supplement): A72. https://doi.org/10.1121/10.0004555
[2] https://www.mathworks.com/matlabcentral/fileexchange/172434-sscmetrics-a-matlab-tool-to-compute-the-soundscape-code

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

soundscapecode-1.2.1.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

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

soundscapecode-1.2.1-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file soundscapecode-1.2.1.tar.gz.

File metadata

  • Download URL: soundscapecode-1.2.1.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for soundscapecode-1.2.1.tar.gz
Algorithm Hash digest
SHA256 ce5f019c017249bb6c21646e14bf2d9405922e4fd8dfe41aa6cd378936b83ff3
MD5 e05be712e52d688717d540f412da7c6a
BLAKE2b-256 6fe65e29743f822d21ce876a3f7e5ca4a8bcffdf90d83f9921525c11cd0f64bc

See more details on using hashes here.

File details

Details for the file soundscapecode-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: soundscapecode-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for soundscapecode-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65a8e98b55cd923bd2a64d0cad64b3019cd544e606257fd716bd75912516d793
MD5 a9d039e4e7477a8c822e3b1bd58a9829
BLAKE2b-256 7ec61aa352e8b28f0aa2d245dedc6415aabce1027f9e5465c6ff45fb8cdd0b43

See more details on using hashes here.

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