Skip to content
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

Add sound notification #86

Merged
merged 2 commits into from
May 6, 2023
Merged

Add sound notification #86

merged 2 commits into from
May 6, 2023

Conversation

Athozus
Copy link
Member

@Athozus Athozus commented May 6, 2023

This is a PR which adds a sound notification, and its setting of course. I used the same "ding-dong" as the one in unified_inventory when you set your home. It is taken from https://freesound.org/people/bennstir/sounds/81072/ (I added the author in both README and about.lua). The code addition is kind of trivial (just a check for the setting and it plays). Tell me your feedback ;)

@Athozus Athozus added the Enhancement New feature or request label May 6, 2023
@Athozus Athozus added this to the 1.2.0 milestone May 6, 2023
@Athozus Athozus requested review from BuckarooBanzay and S-S-X May 6, 2023 15:42
@S-S-X
Copy link
Member

S-S-X commented May 6, 2023

My opinion about selected sound: way too long. I'd say attack-sustain (first attack to last beginning of release) should be over in 0.5-2 seconds and release shouldn't last over 1 seconds. From beginning to end I'd say 2 - 2,5 seconds is absolute maximum for default notification sound.
Selected one is still audible past 4 second mark and and near completely decays only at 5 second mark.

Suggestion if you'd like to have similar doorbell sound, could try this (CC0, needs some gain adjustment): https://freesound.org/people/BlackNeon1234/sounds/348322/

@Athozus
Copy link
Member Author

Athozus commented May 6, 2023

Ok, why not for the proposed sound. But I think it has to be something heard. At least, if you doesn't like the sound, you uncheck it.

@S-S-X
Copy link
Member

S-S-X commented May 6, 2023

Just saying that there's a reason why default notification sound for nearby every email, sms and chat applications are closer to 0.5-2 seconds than 3-5 seconds.

@S-S-X
Copy link
Member

S-S-X commented May 6, 2023

I think those could also be good :

My opinion, either Oxygen-Im-New-Mail.ogg or Doorbell.oga, maybe Oxygen-Im-Nudge.ogg

But I think Doorbell.oga hits roof and there's some clipping, doesn't exactly sound clean but there's some cracks and might need editing.

Also all but Oxygen-Im-Nudge.ogg (which has additional stereo effect) or Doorbell.oga are biased toward right channel, didn't actually check but sounds like that for me.

Just trying to listen I think Oxygen-Im-Nudge.ogg is only one that is actually clean, Doorbell.oga isn't too bad but not clean.

@Athozus
Copy link
Member Author

Athozus commented May 6, 2023

Just trying to listen I think Oxygen-Im-Nudge.ogg is only one that is actually clean, Doorbell.oga isn't too bad but not clean.

So, we keep Nudge ?

@S-S-X
Copy link
Member

S-S-X commented May 6, 2023

Just trying to listen I think Oxygen-Im-Nudge.ogg is only one that is actually clean, Doorbell.oga isn't too bad but not clean.

So, we keep Nudge ?

Works for me, I think that's best option so far (without some additional work / editing).

@Athozus Athozus merged commit 8362968 into master May 6, 2023
Athozus added a commit that referenced this pull request May 6, 2023
* Add sound notification

* Change sound

Update translations
@Athozus Athozus deleted the sound-notif branch May 6, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants