Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can this be accomplished on mobile devices? This could be a clever trick to implement interesting multiplayer games on train rides, airplanes, where wifi is not available.

From a quick research, it seems that iPhones are not able to play ultrasonic sound: "iPhone 4s is rated for 20Hz - 20,000Hz, which means it cannot generate ultrasonic frequencies." - http://stackoverflow.com/questions/10034346/ios-how-to-produ...



Those "ratings" mean the sound will be distortion-free +/- 3dB over that range. You can still make some noise higher or lower than that, it will just be more distorted. I know iPhones support audio formats with at least 96 kHz sample rate, so you should be able to play half that or 48 kHz sounds without too much trouble. It might have some kind of band-pass filter built in, but the ratings won't tell you.


> Those "ratings" mean the sound will be distortion-free +/- 3dB over that range.

No it doesn't. All speaker drivers act as bandpass filters. On the ends of their frequency ranges those +/-3dB points are generally their -3dB points. For most speaker drivers their low frequency cutoff will be caused by the resonance of their motor, dropping off rapidly after that point. The upper frequency limit will be caused by the inductance of their motor's coil with a similar drop off above it.

It's unlikely that the iPhone speaker could reach 48kHz. If you look at expensive high frequency units (tweeters) they'll generally top out at 20-30k. A lot of headphone drivers (which are more similar to what's in the iPhone) barely make it to 20k.

> You can still make some noise higher or lower than that, it will just be more distorted.

Again, nothing about distortion here. A speaker driver will output sound outside of its -3dB points, but, obviously it's going to be much quieter (-3dB is already half as quiet).


Not ultra-sonic but this app sends photos from iPhone to iPhone using the speaker and microphone.

https://itunes.apple.com/us/app/acoustic-picture-transmitter...

Fun to play around with and think of the possibilities of using sensors in unintended ways.


Essentially a modem (with zmodem/sz-rz functionality)?


This operates within that range at 19K, which is well above what most adult humans can hear: https://github.com/Katee/quietnet/blob/master/options.py#L2

That's not to say it would work on an iPhone.


I would suspect those environments to be much too noisy for that to work.


Unless it's noisy at or near the desired communication frequency, it is trivial to isolate the signal and completely mute out the noise.

In this example, at ~19 kHz, a properly configured high-pass filter could easily remove any human-talking sounds.


I'm not worried about humans talking, I'm worried about the ambient noise of the train/plane itself.


Agreed. This particular app starts to fail badly when the AC is on my current room. Airplanes are much, much, worse.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: