A WebRTC based tool to support low latency audio conferencing. This is targeted to allow musicians to be able to jam together.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
860 B

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Audio Test</title>
  7. <!-- <link rel="stylesheet" type="text/css" href="css/styles.css"> -->
  8. </head>
  9. <body>
  10. <p>
  11. <div id="constatus">undefined</div>
  12. <div><input type="button" value="Start" onclick="runPage();"></div>
  13. <div><input type="button" value="Stop" onclick="stopPage();"></div>
  14. <audio id="audioSink" autoplay></audio>
  15. </p>
  16. <script type="text/javascript" src="jamming.js"></script>
  17. <script type="text/javascript">
  18. //runPage()
  19. /* parameters */
  20. var params = {
  21. sampleRate: 8000,
  22. frameSize: 100, /* in ms */
  23. };
  24. window.AudioContext = window.AudioContext || window.webkitAudioContext;
  25. //var audioContext = new AudioContext();
  26. recconf = {
  27. samplerRate: 8000,
  28. numChannels: 1,
  29. }
  30. </script>
  31. </body>
  32. </html>