Skip to content

Commit

Permalink
clean repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jun 5, 2023
1 parent 12b8aa6 commit 344332d
Show file tree
Hide file tree
Showing 79 changed files with 849 additions and 9,698 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ ftpconfig.json
# dataset of audio
ESC-50-master
yamnet.h5
.tox

7 changes: 0 additions & 7 deletions CMakeLists.txt

This file was deleted.

29 changes: 0 additions & 29 deletions LICENSE

This file was deleted.

1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include src *.py
54 changes: 4 additions & 50 deletions README.md
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
```

76 changes: 0 additions & 76 deletions core/CMakeLists.txt

This file was deleted.

164 changes: 0 additions & 164 deletions core/include/_kiss_fft_guts.h

This file was deleted.

Loading

0 comments on commit 344332d

Please sign in to comment.