KO
|
EN
gitlite — search
Search
#python
#tailwindcss
#javascript
#machine-learning
#typescript
#spring-boot
#chatbot
#hacktoberfest
#awesome
#gpt
#pytorch
#mysql
vad.js
★ 153
Open GitHub ↗
Voice activity detection in Javascript
Download README (.md)
Explore Similar Repositories
reinforcement_learning
:
Implementation of selected reinforcement learning algorithms in Tensorflow. A3C, DDPG, REINFORCE, DQN, etc.
hyperclient
:
HyperClient is a Ruby Hypermedia API client.
php-http-client
:
SendGrid's PHP HTTP Client for calling APIs
konva
:
Konvajs 中文文档 Konva是一个基于 Canvas 开发的 2d JavaScript框架库, 它可以轻松的实现桌面应用和移动应用中的图形交互交互效果
QtJsonSerializer
:
A library to perform generic seralization and deserialization of QObjects from and to JSON and CBOR
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
vad.js
?
Download (.md)
# Voice activity detection in Javascript __vad.js__ is a small Javascript library for voice activity detection. ### Quick Start ```html <!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="lib/vad.js"></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.mozGetUserMedia || navigator.webkitGetUserMedia; navigator.getUserMedia({audio: true}, startUserMedia, function(e) { console.log("No live audio input in this browser: " + e); }); </script> </body> </html> ``` ### Tested - Browser * Firefox 45.0a1+ ##Author * Kelly Davis kdavis@mozilla.com * Mark Panaghiston https://github.com/thepag ##Thanks The code is based on the following implementations: + https://github.com/happyworm/Playful-Demos ##Contribution Any contribution will be welcome!