Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quiet/quiet-js
Transmit data with sound using Web Audio -- Javascript binding for libquiet
https://github.com/quiet/quiet-js
data-transfer emscripten modem ultrasonic webaudio
Last synced: 5 days ago
JSON representation
Transmit data with sound using Web Audio -- Javascript binding for libquiet
- Host: GitHub
- URL: https://github.com/quiet/quiet-js
- Owner: quiet
- License: bsd-3-clause
- Created: 2016-02-09T01:25:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-01T18:13:34.000Z (over 3 years ago)
- Last Synced: 2024-11-21T04:11:37.408Z (22 days ago)
- Topics: data-transfer, emscripten, modem, ultrasonic, webaudio
- Language: JavaScript
- Homepage:
- Size: 4.48 MB
- Stars: 2,195
- Watchers: 39
- Forks: 151
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-audioqr - Quite JS
- awesome-list - quiet-js - - Javascript binding for libquiet | quiet | 1701 | (JavaScript)
README
Quiet.js
===========**[Documentation](https://quiet.github.io/quiet-js/docs/Quiet.html)**
This is a javascript binding for [libquiet](https://github.com/quiet/quiet), a library for sending and receiving data via sound card. It can function either via speaker or cable (e.g., 3.5mm). Quiet comes included with a few transmissions profiles which configure quiet's transmitter and receiver. For speaker transmission, there is a profile which transmits around the 19kHz range, which is essentially imperceptible to people (nearly ultrasonic). For transmission via cable, quiet.js has profiles which offer speeds of at least 40 kbps.
Try it out in this [live example](https://quiet.github.io/quiet-js/).
Compatibility
--------
| Browser | Transmitter | Receiver |
| ------------------|-------------------------|------------------------------------|
| Chrome | *Supported* | *Supported*1 |
| Chrome (Android) | *Supported* | *Partially Supported*1,2|
| Edge | *Supported* | *Supported* |
| Firefox | *Supported* | *Partially Supported*3 |
| Firefox (Android) | *Supported* | *Partially Supported*2,3|
| Internet Explorer | *Not Supported* | *Not Supported* |
| Safari | *Supported* | *Not Supported*4 |
| Safari (iOS) | *Supported* | *Not Supported*4 |[1]: For Chrome receivers, the page *must* be delivered via https. Chrome does not support microphone input without TLS.
[2]: GMSK profiles only
[3]: Firefox's WebAudio implementation resamples audio input to 32kHz, which limits all audio received to 16kHz and below. This means the ultrasonic profile cannot be used for Firefox receivers. Additionally, the resampler used by Firefox produces strong audio distortion, which makes reception by some profiles difficult. However, the audible profiles work well. For the most recent information on this limitation, refer to [Bug 953265](https://bugzilla.mozilla.org/show_bug.cgi?id=953265).
[4]: Safari does not support `getUserMedia` or microphone input in any capacity.
Usage
--------
The full documentation is available [here](http://quiet.github.io/quiet-js/docs/).Quiet-js includes a blob of libquiet compiled by emscripten as well as a javascript binding for ease of use. The bindings must be loaded before the compiled portion. Below is the recommended way to include Quiet in your project.
```
```Additionally, the emscripten compiled portion requires a memory initializer, `quiet-emscripten.js.mem`. This is loaded asynchronously by `quiet-emscripten.js`.
**It is strongly recommended to also include libfec.js. An emscripten-compiled version of libfec may be found [here](https://github.com/quiet/libfec/releases) or with `npm install libfec`.** If libfec is not included, then quiet.js will not be able to use any profiles which use convolutional codes or Reed-Solomon error correction.
For a complete example demonstrating ultrasonic text transmission and reception, see [this example](https://github.com/quiet/quiet-js/tree/master/examples/text).
License
--------
Quiet and Quiet-js are licensed under 3-clause BSD. Quiet-js's emscripten-compiled output includes a statically-linked copies of [liquid dsp](http://liquidsdr.org/) and [libjansson](http://www.digip.org/jansson/), both of which are licensed under the MIT license. For more information on Quiet-js's 3rd party licenses, consult [LICENSE-3RD-PARTY](https://github.com/quiet/quiet-js/blob/master/LICENSE-3RD-PARTY).Additionally, it is strongly recommended to link [libfec](http://www.ka9q.net/code/fec/) (`npm install libfec`). libfec is licensed under LGPL. It is the intention of this project to adhere to the provisions of LGPL by dynamically linking libfec. However, neither this statement nor any other statements in these projects may be construed as legal advice from the author. It is solely the user's responsibility to ensure their own compliance with all applicable licenses.