-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
79 changed files
with
849 additions
and
9,698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,5 @@ ftpconfig.json | |
# dataset of audio | ||
ESC-50-master | ||
yamnet.h5 | ||
.tox | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include src *.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,10 @@ | ||
# noisesensor | ||
# NoiseSensor | ||
|
||
[![NoiseSensor](https://github.com/nicolas-f/noisesensor/actions/workflows/build_noisesensor.yml/badge.svg)](https://github.com/nicolas-f/noisesensor/actions/workflows/build_noisesensor.yml) | ||
Realtime computing of noise indicators and recognition of noise source. | ||
|
||
Convert audio feed into noise indicators | ||
|
||
## Installation | ||
# Launch unit test | ||
|
||
```shell | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip3 install cython | ||
pip3 install . | ||
``` | ||
|
||
# ZeroMQ services | ||
|
||
Example with zero_record on rpi (raspbian): | ||
|
||
Install the following systemd service by creating a file in | ||
|
||
/etc/systemd/system/zerorecord.service | ||
|
||
```ini | ||
[Unit] | ||
Description=Redirect audio samples to ZeroMQ publishing service | ||
After=multi-user.target | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/bin/arecord -D plughw:CARD=Audio,DEV=0 -r 16000 -f FLOAT_LE -c 1 | /home/pi/noisesensor/venv/bin/python3 service/zero_record.py --block_size 32000 | ||
WorkingDirectory=/home/pi/noisesensor/ | ||
Restart=always | ||
RestartSec=5s | ||
User=pi | ||
[Install] | ||
WantedBy=multi-user.target | ||
``` | ||
|
||
You can list all compatible device with this command | ||
|
||
```bash | ||
arecord -L | ||
``` | ||
|
||
|
||
|
||
|
||
Then to install the service on the system: | ||
|
||
```bash | ||
sudo systemctl daemon-reload | ||
sudo systemctl enable zerorecord | ||
sudo systemctl start zerorecord | ||
tox run | ||
``` | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.