ggerganov / ggwave

Tiny data-over-sound library
https://youtu.be/Zcgf77T71QM
MIT License
1.9k stars 141 forks source link

Ultrasonic Protocols in .js Examples #84

Open lauriaclarke opened 1 year ago

lauriaclarke commented 1 year ago

Hi There @ggerganov,

I'm developing a web app based on the javascript examples provided here, however I'm not able to receive any messages sent using the ultrasonic protocols. I noticed this was consistent across the .js based examples in the repo. Ultrasonic transfers have been working really well in the Python and C++ versions and with Waver as well. The problem does not appear to be microphone related as I am able to receive ultrasonic messages correctly in Waver on the same device.

Can you tell me if this is a known limitation of the .js binding or if it's something I might be able to fix? I'm not a super confident .js developer so I figured I'd ask before digging in too much.

Basing my initial development on this simple example: https://ggwave-js.ggerganov.com/

Thanks!

ggerganov commented 1 year ago

Hi! Which browser are you using? There seem to be some limitations on certain browsers - see https://github.com/ggerganov/ggwave/issues/5 for more information

lauriaclarke commented 1 year ago

Ah, I see. Thanks.

Neither Firefox, Safari, or Chrome work on my iPhone 12. Chromium, Firefox, and Chrome are equally useless on Framework laptop running Ubuntu 22.04. Wasn't able to get Chrome to work as in your response to #5 which compares the spectrum from Safari.

This is a very reasonable security precaution, but quite annoying in this context!