An unofficial, read-only Hacker News reader.

Button Sounds – collection of professionally-recorded button clicks and presses (opens external site)

905 points by gaurang_tandon 3 days ago | buttons.joshwcomeau.com | 136 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. > Frustratingly, browsers can decide to block a website from playing any sound. iOS Safari seems particularly strict about this. So, if you’re not hearing a click sound when tapping the big red button, please check out this website on a desktop computer.

    FYI, setting `navigator.audioSession.type` to `"playback"` will allow the sounds to play on iOS even when silent mode is on. (It defaults to `"ambient"`.)

    On iOS versions below 16.4, this won't work as reliably; there are hacks you can do with `AudioContext`^[1] instead.

    [1]: https://github.com/feross/unmute-ios-audio