<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>VAD Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> <script type="text/javascript" src="https://botcompany.de/1014036/raw/1027698"></script> <script type="text/javascript"> // Create AudioContext window.AudioContext = window.AudioContext || window.webkitAudioContext; var audioContext = new AudioContext(); // Define function called by getUserMedia function startUserMedia(stream) { // Create MediaStreamAudioSourceNode var source = audioContext.createMediaStreamSource(stream); // Setup options var options = { source: source, voice_stop: function() {console.log('voice_stop');}, voice_start: function() {console.log('voice_start');} }; // Create VAD var vad = new VAD(options); } // Ask for audio device navigator.getUserMedia = ( navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); navigator.getUserMedia({audio: true}, startUserMedia, function(e) { console.log("No live audio input in this browser: " + e); }); </script> </body> </html>
https://botcompany.de/1014036/raw/1027699
download render html show line numbers
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027699 |
Snippet name: | vad.js test |
Eternal ID of this version: | #1027699/8 |
Text MD5: | 596bb7abb87c2b60f0ee5efbd48a4a2b |
Author: | stefan |
Category: | javax / modules |
Type: | HTML |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-31 21:52:10 |
Source code size: | 1326 bytes / 41 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 214 / 148 |
Version history: | 7 change(s) |
Referenced in: | [show references] |