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.1.2.tar.gz (25.1 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.1.2-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for soundscapecode-1.1.2.tar.gz
Algorithm Hash digest
SHA256 e1671e75ae8794ea0e80c34c97376ad1548cdeb05f04ceb408ee1da4bbf4cdb5
MD5 bdcda058598ebe4914f923579c1829cf
BLAKE2b-256 663c9c696ca1bb142f9b08024a292dba82fefad32ecacc18fb81e8f53ecd6130

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for soundscapecode-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 36ad44aa6069144b0b01086bf3f8941076300d289643277999aa59658e9180bf
MD5 39ba2dac62574fd6bed54b4ffb49f634
BLAKE2b-256 66d17d548c0f297bc86c67fb75dc24731a9557aca2160047b221360af9feeb8d

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