Python implementation of soundscapecode
Project description
SoundScapeCode
Python implementation of the soundscape code [1], ported from a Matlab example [2].
If you use this package in your research, please cite it using the DOI:
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file soundscapecode-1.2.2.tar.gz.
File metadata
- Download URL: soundscapecode-1.2.2.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a7b15cbfec51a9195e1807e4ad6fb07aa260c3f9aea4a720ee3945b2570ebc8
|
|
| MD5 |
f612d610097033afa42bf531006faddb
|
|
| BLAKE2b-256 |
3b6a4b9293df3d0bf20b65b030067210f5209a55cd7556a4ae479753cafbd1ac
|
File details
Details for the file soundscapecode-1.2.2-py3-none-any.whl.
File metadata
- Download URL: soundscapecode-1.2.2-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b97ad012349b16f610c087d5f5aed6bf5f811ec9a4423e42ee824eeaf0d6b87
|
|
| MD5 |
ffe3fc1c721ef7d07ea064537e87e2a8
|
|
| BLAKE2b-256 |
c5c94da0065de292fd54e6938cb7eab977df7f4ff7b6502413ddcdf0fdec9b9a
|