{"id":38653683,"url":"https://github.com/bozzlab/pyacoustics-stc","last_synced_at":"2026-01-17T09:24:53.834Z","repository":{"id":41506572,"uuid":"455819439","full_name":"bozzlab/pyacoustics-stc","owner":"bozzlab","description":"The Python library for Sound Transmission Class (STC) calculation","archived":false,"fork":false,"pushed_at":"2022-07-03T07:44:10.000Z","size":390,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T13:54:23.759Z","etag":null,"topics":["acoustic-wave","acoustics","hacktoberfest","sound","sound-transmission-class","sound-transmission-loss","stc"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pyacoustics-stc/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bozzlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-05T08:48:21.000Z","updated_at":"2025-07-07T20:02:13.000Z","dependencies_parsed_at":"2022-09-11T15:23:40.071Z","dependency_job_id":null,"html_url":"https://github.com/bozzlab/pyacoustics-stc","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bozzlab/pyacoustics-stc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bozzlab%2Fpyacoustics-stc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bozzlab%2Fpyacoustics-stc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bozzlab%2Fpyacoustics-stc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bozzlab%2Fpyacoustics-stc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bozzlab","download_url":"https://codeload.github.com/bozzlab/pyacoustics-stc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bozzlab%2Fpyacoustics-stc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acoustic-wave","acoustics","hacktoberfest","sound","sound-transmission-class","sound-transmission-loss","stc"],"created_at":"2026-01-17T09:24:50.745Z","updated_at":"2026-01-17T09:24:51.946Z","avatar_url":"https://github.com/bozzlab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyacoustics-stc\nThe Python library for Sound Transmission Class (STC) calculation\n\n## Installation\n```\npip install pyacoustics-stc\n```\n## Quickstart\n-----\n### Calculate STC\n```py\nfrom pyacoustics_stc import SoundTransmissionClass\n\n# sound transmission loss as dict object {Frequency : Value}\nstl = {\n    125: 11.66, 160: 13.303, 200: 14.825, 250: 20.861,\n    315: 22.868,400: 24.943, 500: 26.881, 630: 28.889,\n    800: 30.964, 1000: 32.902,1250: 34.84,1600: 36.984,\n    2000: 38.923, 2500: 40.861, 3150: 27.557, 4000: 30.67,\n}\n\nstc = SoundTransmissionClass(stl=stl)\n\nstc.index\n# 29\nstc.deficiency\n# 25.579\nstc.contour\n# {125: 13, 160: 16, 200: 19, 250: 22, 315: 25, 400: 28, 500: 29, 630: 30, 800: 31, 1000: 32, 1250: 33, 1600: 33, 2000: 33, 2500: 33, 3150: 33, 4000: 33}\nstc.delta\n# {125: 1.34, 160: 2.697, 200: 4.175, 250: 1.139, 315: 2.132, 400: 3.057, 500: 2.119, 630: 1.111, 800: 0.036, 1000: 0, 1250: 0, 1600: 0, 2000: 0, 2500: 0, 3150: 5.443, 4000: 2.33}\n\n```\n### Visualization\n```py\nstc.plot() # display result as graph\n```\nInteractive Graph by [Plotly](https://plotly.com/)\n\n![Interactive Graph on Browser](https://raw.githubusercontent.com/bozzlab/pyacoustics-stc/main/graph_on_browser.png)\n\n### Static File Export\n\n```py\nstc.export_graph_to_file(\"stc.png\") # save graph result as PNG image file\nstc.export_graph_to_file(\"stc.jpeg\") # save graph result as JPEG image file\nstc.export_graph_to_file(\"stc.pdf\") # save graph result as PDF file\n\n# \u003cyour_local_path\u003e/stc.png\n```\n![Sound Transimission Class Graph](https://raw.githubusercontent.com/bozzlab/pyacoustics-stc/main/stc.png)\n\n\n### Utils \n```py\nfrom pyacoustics_stc.utils import build_frequency_stl_map\n\nstl_without_key = [\n    22.49669, 27.85324, 32.77704, 46.30192, \n    52.32415, 58.54912, 64.36372, 70.38595, \n    76.61092, 82.80217, 87.39175, 92.54538, \n    97.27899, 70.36132, 77.44058, 84.8613\n]\nstl = build_frequency_stl_map(stl_without_key)\n\nstl\n# {125: 22.49669, 160: 27.85324, 200: 32.77704, 250: 46.30192, 315: 52.32415, 400: 58.54912, 500: 64.36372, 630: 70.38595, 800: 76.61092, 1000: 82.80217, 1250: 87.39175, 1600: 92.54538, 2000: 97.27899, 2500: 70.36132, 3150: 77.44058, 4000: 84.8613}\n\n```\n\n## Testing\n```\npython -m pytest\n```\n\n## Formatter\n```\nblack pyacoustics_stc \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbozzlab%2Fpyacoustics-stc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbozzlab%2Fpyacoustics-stc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbozzlab%2Fpyacoustics-stc/lists"}