-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 | Confirmation sounds for system commands #1014
Comments
The Neuftech USB reader has a built-in confirmation sound, but many disable it. |
I know, but that sound is not an indication whether something was actually executed, just that something was scanned. |
Hi @jo-me |
You are right about volume except when there's nothing playing. There is a GPIO for this purpose when something is scanned (e.g. to flash a LED), right? |
I also like to hear an RFID sound for actions. May be there can be an option for every registered id card (on the panel, where you can register cards). So it's up to the user, if he configures a beep or not. May be there can be a dropdown of some sounds: e.g. "No sound", "Beep", "Double Beep", etc... If I want to create something like this, where would be a good starting point to play the "beep"? Is there any central routine? |
Hi @Huseriato One potential problem up front: the soundfile might be too short to be heard when played by a local audio player. I explain: the startup sound for example uses the mpg123 player to play a sound. I ended up adding two seconds of silence at the beginning of the audio file, because by the time the system was ready to play what mpg123 played, the file was over. You can also hear that problem with mpd when playing some of the test samples. So this is experience which might help you not to go crazy if you dive into this task - and all you hear is silence :) the script which is called each time a RFID chip is swiped is this one: So what would be a good place to start... In my opinion, if you want different sounds for different commands, the script to work with is How would I go about this:
Instead, what I suggest is:
So if the global var is set to Inside this file, you can do what you want :) I recommend to use the Does this makes sense? All the best, micz |
Thank you for the good explanation and the perfect starting point. I think the best way to play a short file is to use another file format. However, I just tried out the sox library with a real short beep mp3:
This played instantly. What sound file did you use to test |
Adding the line May be this beep debugger will help me finding the problem of #1087 - I also found out, that sometimes my card is not recognized on the first try as described here: #1083 |
So I tested this in my fork and it did not play well. But the problem is not playing the sound files. I had a perfect detection for system command and play album. I also checked, if the command worked. And there is the problem: You can have a beep, when the card is recognized, but the time it tooks until it's checked is to long. So the "okay beep" and the playback are starting at the same time. Before executing the command you don't know if it will run. So there might be a beep, but no beep that is indicating success or error. Currently success is already indicated by action/play start. And an error is indicated by doing nothing. So I think this feature is not working very well. I reverted my personal changes I made to test. |
Feature Description
What functionality would you like to see in your phoniebox?
Whenever a system command is executed after swiping a card the system should play a confirmation sound so that it is clear to the user that the swipe action was successful.
In addition to that there could be another (negative) sound when a card is swiped that has no action associated with it (neither music nor system command).
How do you envision the feature to work from a users perspective?
User gets feedback (positive or negative) for every swiped card so that it is clear that the card was recognized.
Further information that might help
n/a
The text was updated successfully, but these errors were encountered: