{"id":18728711,"url":"https://github.com/rubyonworld/noise-detection","last_synced_at":"2026-05-01T00:31:49.410Z","repository":{"id":174008010,"uuid":"542163442","full_name":"RubyOnWorld/noise-detection","owner":"RubyOnWorld","description":"The noise dector ruby script uses two linux tool to record and analyse de output: sox and arecord. So you need to install these packages on your raspberrypi (or other linux system):","archived":false,"fork":false,"pushed_at":"2022-09-28T00:29:54.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T20:32:38.518Z","etag":null,"topics":["detect","detection","noise","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RubyOnWorld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-27T15:41:13.000Z","updated_at":"2022-09-28T01:36:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"92cbc821-70da-4cb4-b1e5-6f7941f25cc9","html_url":"https://github.com/RubyOnWorld/noise-detection","commit_stats":null,"previous_names":["rubyonworld/noise-detection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RubyOnWorld/noise-detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fnoise-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fnoise-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fnoise-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fnoise-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyOnWorld","download_url":"https://codeload.github.com/RubyOnWorld/noise-detection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fnoise-detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32481553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["detect","detection","noise","rails","ruby"],"created_at":"2024-11-07T14:23:52.168Z","updated_at":"2026-05-01T00:31:49.398Z","avatar_url":"https://github.com/RubyOnWorld.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"ruby-noise-detection\n====================\n\nNoise Detection Ruby Script\n\nInstallation\n------------\nThe noise dector ruby script uses two linux tool to record and analyse de\noutput: **sox** and **arecord**.\nSo you need to install these packages on your raspberrypi (or other linux\nsystem):\n\n```bash\nsudo apt-get install sox alsa-utils\n```\n\nThen, in the current version, the script does not accept parameters to change\nfile location (log, tmp recording and pid file), so you need to allow the script\nexecution user (**pi** for example) the write access to these files and folders:\n\n```\nRECORD_FILENAME='/tmp/noise.wav'\nLOG_FILE='/var/log/noise_detector.log'\nPID_FILE='/etc/noised/noised.pid'\n```\n\nor you can edit the script changin these variables values with what you prefer\nfor your system.\n\nDetect Audio Card\n-----------------\n\n```bash\npi@raspberrypi ~ $ noise_detection.rb -d\nDetecting your soundcard...\n 0 [ALSA           ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA\n                      bcm2835 ALSA\n 1 [U0x46d0x8d7    ]: USB-Audio - USB Device 0x46d:0x8d7\n                      USB Device 0x46d:0x8d7 at usb-bcm2708_usb-1.2, full speed\n```\n\nTest Audio Card Record\n----------------------\n```bash\npi@raspberrypi ~ $ noise_detection.rb -t 1\nTesting soundcard...\nSamples read:             40000\nLength (seconds):      5.000000\nScaled by:         2147483647.0\nMaximum amplitude:     0.013245\nMinimum amplitude:    -0.041565\nMidline amplitude:    -0.014160\nMean    norm:          0.013523\nMean    amplitude:    -0.013466\nRMS     amplitude:     0.014662\nMaximum delta:         0.023560\nMinimum delta:         0.000000\nMean    delta:         0.003664\nRMS     delta:         0.004679\nRough   frequency:          406\nVolume adjustment:       24.059\n```\n\nStarting Noise Detection with Alert\n-----------------------------------\n```bash\nnoise_detection.rb -m 1 -n 0.30 -e me@server.com -v\n```\nThe script will be started in background\n\nTerminating Noise Detection\n---------------------------\n```bash\nnoise_detection.rb -k\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fnoise-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyonworld%2Fnoise-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fnoise-detection/lists"}