Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<title>Audio Network - data transmission over sound waves - physical layer simple example</title>
<meta name="description" content="This example allows you to send binary data over air in your room. It's the simplest usage of Audio Network's library.">
<link rel="stylesheet" type="text/css" href="../../asset/css/simple-bootstrap.css">
<link rel="stylesheet" type="text/css" href="../../asset/css/example.css">
<script src="../../asset/js/site.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1">
<body onLoad="onLoad()">
<div id="fb-root"></div>
if (isProduction()) { // TODO refactor this
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); = id;
js.src = "//";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
<div class="container">
<h1>Audio Network - send data over sound in JavaScript</h1>
<div class="row margin-bottom">
<div class="col col-xs-12">
<div class="fb-like-cont">
<a href="" target="_blank" class="a-icon a-icon-fb">
<img src="/asset/image/fb.png" alt="Audio Network at Facebook">
<div class="fb-like" data-href="" data-layout="button" data-action="like" data-size="small" data-show-faces="true" data-share="false"></div>
<p class="text-right">
Return to <a href="">main page</a>
<p class="larger text-center margin-bottom-triple">
Source code available at <a href="" target="_blank">GitHub</a>
<p class="larger text-center margin-bottom-triple" style="outline: 1px dashed red;">
Old PSK approach. It will be deprecated soon!
<p><a href="" target="_blank"><img src="" alt="Data transmission over sound waves (AudioNetwork)"></a></p>
This example allows you to send binary data over air in your room. It's the simplest usage of
Audio Network's library. More information you will find on the
<a href="">main page</a>.
<div class="row margin-bottom">
<div class="col col-xs-12">
<span>State: </span><span id="rx-state">?</span>
<textarea id="rx-packet" style="height: 100px;" readonly="readonly"></textarea>
<button class="btn btn-default" onClick="reset()">Reset</button>
<div class="row margin-bottom-triple">
<div class="col col-xs-12">
<textarea id="tx-packet">0 1 1 0 0 0 0 1</textarea>
<button class="btn btn-default" onClick="sync()">Sync</button>
<button class="btn btn-default" onClick="sendPacket()">Send packet</button>
document.write('<div class="fb-comments" data-href="' + window.location.href + '" data-numposts="5"></div>');
<div class="row">
<div class="col col-xs-12">
<div class="copyright">Robert Rypuła 2015-2018</div>
<script src=""></script>
<script src="physical-layer-simple.js"></script>
if (isProduction()) { // TODO refactor this
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
ga('create', 'UA-76662342-1', 'auto');
ga('send', 'pageview');