vocal_tract_length 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/public/index.html +6 -4
- data/lib/vocal_tract_length/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45fd5b7a018dcba0e8829b32683c011ff10d651f
|
|
4
|
+
data.tar.gz: 374e6309c364c9632b51c44c9777df9b8a97872d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d340839bf312bacfbc3e6ffdb1ce2c81ea9e2febbe1ab26116789cc28b171322c2665556a6d1d5f4e9310f52510f703977e73f6b0c1a340e7cc8298292777933
|
|
7
|
+
data.tar.gz: 9a4aee038297f13c49963c1dd37dd47a61f339a0a5a87336e158744492aefe81564c9fecc790b268e21dcf1748552945b70d7feb0d387ff5bf957807ad81226d
|
data/lib/public/index.html
CHANGED
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
startRecordingButton = document.querySelector("[data-action=startRecording]");
|
|
30
30
|
startRecordingButton.disabled = false;
|
|
31
31
|
startRecordingButton.addEventListener("click", startRecording, false);
|
|
32
|
-
console.log("bound");
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
function startRecording() {
|
|
@@ -41,10 +40,10 @@
|
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
function stopRecording(button) {
|
|
44
|
-
button.innerHTML = "Record"
|
|
45
|
-
button.disabled = false;
|
|
46
43
|
recorder && recorder.stop();
|
|
47
44
|
|
|
45
|
+
document.querySelector("[data-action=startRecording]").innerHTML =
|
|
46
|
+
"Calculating...";
|
|
48
47
|
recorder.exportWAV(sendWAV);
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -58,9 +57,12 @@
|
|
|
58
57
|
|
|
59
58
|
function setFormant1Result(formant1Text) {
|
|
60
59
|
formant1 = parseFloat(formant1Text);
|
|
60
|
+
document.querySelector("[data-action=startRecording]").disabled = false;
|
|
61
|
+
document.querySelector("[data-action=startRecording]").innerHTML =
|
|
62
|
+
"Record";
|
|
63
|
+
document.querySelector("[data-id=results]").style.display = 'initial';
|
|
61
64
|
document.querySelector("[data-id=formant1]").innerHTML = roundTo(formant1, 0);
|
|
62
65
|
document.querySelector("[data-id=vocalTractLength]").innerHTML = roundTo(calculateVocalTractLength(formant1), 1);
|
|
63
|
-
document.querySelector("[data-id=results]").style.display = 'initial';
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
function sendWAV(blob) {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vocal_tract_length
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Max Holder
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|