Comments (8)
Sounds like a plan. We should maybe also limit the length of tracks (15s or so).
from doorbot.
I was actually going to do two things in addition to this:
- 5s sound limit (Because really, we want to encourage short-and-snappy noises. Videogame sounds etc.)
- Speakers being moved into the lobby room (so the person hearing it is the person who tapped in), and the external speaker outside the back door (same reason)
That should stop it being irritating for people in the main room, and people in the rest of the space.
from doorbot.
Perhaps we should just rate limit sounds by length? A coin ding would fine for every entrance, a 1-up every hour and a 15s theme tune twice a day? That'll encourage people to use shorter sounds without breaking everything.
from doorbot.
That is a good plan. I like that plan. Some kind of scaled timeout based on sound length that kicks in over 5s?
from doorbot.
So I did a find *.wav | xargs soxi -D
in the /home/glados/wavefiles/members
to figure out what was the avg length of the files in there
Percentile | Length (Sec) |
---|---|
1th | 0.225 |
5th | 0.397 |
25th (LQ) | 0.605 |
50th (Median) | 1.01 |
75th (UQ) | 6.12 |
90th | 13.5 |
from doorbot.
Possible solution from Cadmus:
import subprocess
# Working Sox Pipe
# time sox /media/library/Music/The_Terrible_Secret_Of_Space.mp3 -t wav - trim 0 00:05 | --norm sox -t wav - -t wav - | aplay
trunc_p = subprocess.Popen(["sox", "/media/library/Music/The_Terrible_Secret_Of_Space.mp3", "-t", "wav", "-", "trim", "0", "00:05"], stdout=subprocess.PIPE)
norm_p = subprocess.Popen(["sox", "--norm", "-t", "wav", "-", "-t", "wav", "-"], stdin=trunc_p.stdout, stdout=subprocess.PIPE)
play_p = subprocess.Popen(["aplay"], stdin=norm_p.stdout)
play_p.wait()
from doorbot.
Also apparently just a single sox command works: "sox --norm file.foo -t wav - trim 0 00:05 | mplay".
And you can do sox -qd to play it.
from doorbot.
Looks like we also need remote volume control, as the required volume varies a lot between a Tuesday evening and a quiet afternoon.
from doorbot.
Related Issues (20)
- udev rule for relay HOT 2
- Repeated card entry attempts HOT 5
- Move speakers HOT 2
- Check NFC app flow HOT 1
- listeners not listening any more HOT 2
- front doorbot's doorbell not working all the time. HOT 3
- listener improvements HOT 1
- openDoor.py bitrotted HOT 1
- Process died on hamming HOT 3
- case sensitivity of card uid's HOT 3
- Front Doorbot Raspberry Pi locked up HOT 5
- Add proper interface for adding cards HOT 1
- Doorbot restarting again HOT 2
- Allow multiple sounds HOT 1
- strike plate didn't strike HOT 1
- Get Doorbot listener to log out the last time an unknown person was a member
- Add remote control for Glados volume HOT 1
- Duplicate invalid messages on broadcast HOT 1
- License Query HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doorbot.