Skip to content

Commit 65dd166

Browse files
author
travis-ci
committed
building dist/ scripts for release
1 parent f58f054 commit 65dd166

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

dist/watson-speech.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7760,7 +7760,13 @@ WebAudioL16Stream.prototype.downsample = function downsample(bufferNewSamples) {
77607760
buffer = bufferNewSamples;
77617761
}
77627762

7763-
// downsampling variables
7763+
// Downsampling and low-pass filter:
7764+
// Input audio is typically 48kHz, this downsamples it to 16kHz.
7765+
// It uses a FIR (finite impulse response) Filter to remove (or, at least attinuate)
7766+
// audio frequencies > ~8kHz because sampled audio cannot accurately represent
7767+
// frequiencies greater than half of the sample rate.
7768+
// (Human voice tops out at < 4kHz, so nothing important is lost for transcription.)
7769+
// See http://dsp.stackexchange.com/a/37475/26392 for a good explination of this code.
77647770
var filter = [
77657771
-0.037935,
77667772
-0.00089024,

0 commit comments

Comments
 (0)