Zend certified PHP/Magento developer

Use an inaudible sound to verify if speaker is working on a mobile device? [migrated]

Specifically we have this problem where sound should be playing in Safari but it is not. This is not a user-interaction problem, it’s part of a video/audio stream. It’s an intermittent problem but happens more often than not. Sound makes it to the browser but it often doesn’t play.

The problem is apparently browsers have no way to tell if sound is coming out of a speaker. So my thought is if you can play a reference sound (not audible to humans) and that sound can confirm that the speaker is working (by the device’s mic).

I’m just skeptical if it would actually work regarding audio reflection based on surrounding.

Anyway I will check our implementation make sure there’s no race condition going on or something (regarding user input) but just this idea, I’m curious if it could work, anyone with audio experience.