Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hark

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hark - npm Package Compare versions

Comparing version 1.1.3 to 1.1.5

12

example/demo.bundle.js

@@ -129,3 +129,3 @@ ;(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){

},{"../hark.js":2,"attachmediastream":5,"bows":4,"getusermedia":3}],3:[function(require,module,exports){
},{"../hark.js":2,"attachmediastream":5,"bows":3,"getusermedia":4}],4:[function(require,module,exports){
// getUserMedia helper by @HenrikJoreteg

@@ -277,3 +277,3 @@ var func = (navigator.getUserMedia ||

};
harker.stop = function() {

@@ -286,2 +286,4 @@ running = false;

}
analyser.disconnect();
sourceNode.disconnect();
};

@@ -297,3 +299,3 @@ harker.speakingHistory = [];

setTimeout(function() {
//check if stop has been called

@@ -303,3 +305,3 @@ if(!running) {

}
var currentVolume = getMaxVolume(analyser, fftBins);

@@ -495,3 +497,3 @@

},{}],4:[function(require,module,exports){
},{}],3:[function(require,module,exports){
(function(window) {

@@ -498,0 +500,0 @@ var logger = require('andlog'),

@@ -73,3 +73,3 @@ (function(e){if("function"==typeof bootstrap)bootstrap("hark",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeHark=e}else"undefined"!=typeof window?window.hark=e():global.hark=e()})(function(){var define,ses,bootstrap,module,exports;

};
harker.stop = function() {

@@ -82,2 +82,4 @@ running = false;

}
analyser.disconnect();
sourceNode.disconnect();
};

@@ -93,3 +95,3 @@ harker.speakingHistory = [];

setTimeout(function() {
//check if stop has been called

@@ -99,3 +101,3 @@ if(!running) {

}
var currentVolume = getMaxVolume(analyser, fftBins);

@@ -102,0 +104,0 @@

@@ -17,3 +17,6 @@ var WildEmitter = require('wildemitter');

var audioContextType = window.AudioContext || window.webkitAudioContext;
var audioContextType;
if (typeof window !== 'undefined') {
audioContextType = window.AudioContext || window.webkitAudioContext;
}
// use a single audio context due to hardware limits

@@ -46,3 +49,3 @@ var audioContext = null;

analyser.smoothingTimeConstant = smoothing;
fftBins = new Float32Array(analyser.fftSize);
fftBins = new Float32Array(analyser.frequencyBinCount);

@@ -73,3 +76,3 @@ if (stream.jquery) stream = stream[0];

};
harker.stop = function() {

@@ -82,2 +85,4 @@ running = false;

}
analyser.disconnect();
sourceNode.disconnect();
};

@@ -93,3 +98,3 @@ harker.speakingHistory = [];

setTimeout(function() {
//check if stop has been called

@@ -99,3 +104,3 @@ if(!running) {

}
var currentVolume = getMaxVolume(analyser, fftBins);

@@ -102,0 +107,0 @@

{
"name": "hark",
"version": "1.1.3",
"version": "1.1.5",
"description": "Converts an audio stream to speech events in the browser",

@@ -5,0 +5,0 @@ "main": "hark.js",

@@ -81,3 +81,3 @@ # Hark

Clone and open example/index.html or [view it online](http://otalk.github.io/hark/example/)
Clone and open example/index.html or [view it online](https://otalk.github.io/hark/example/)

@@ -87,8 +87,6 @@

Chrome 27+
Firefox
Microsoft Edge
* Chrome 27+, remote streams require Chrome 49+
* Firefox
* Microsoft Edge, support for remote streams is under consideration
Note that in Chrome this currently does not work for remote webrtc mediastreams. Track [this chrome bug](https://code.google.com/p/chromium/issues/detail?id=121673) for the status of the integration between WebRTC and WebAudio.
## License

@@ -95,0 +93,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc