@lls/lls-audio 0.0.75 → 0.0.76

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.
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@lls/lls-audio",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
4
4
  "main": "index.js",
5
5
  "devDependencies": {
6
6
  "@kadira/storybook": "2.21.0",
7
7
  "@kadira/storybook-deployer": "1.0.0",
8
8
  "@lls/lls-icons": "*",
9
9
  "@lls/lls-ui": "*",
10
- "aphrodite": "0.5.0",
10
+ "aphrodite": "1.2.3",
11
11
  "babel-cli": "6.9.0",
12
12
  "babel-preset-es2015": "6.3.13",
13
13
  "babel-preset-react": "6.3.13",
@@ -29,12 +29,12 @@
29
29
  "react-input-range": "0.9.3",
30
30
  "react-speech-recognizer": "0.1.1",
31
31
  "similarity": "1.1.1",
32
- "waveform-data": "2.0.0"
32
+ "waveform-data": "2.0.1"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@lls/lls-icons": "*",
36
36
  "@lls/lls-ui": "*",
37
- "aphrodite": "0.5.0",
37
+ "aphrodite": "^1.2.3",
38
38
  "react": "*",
39
39
  "react-dom": "*"
40
40
  },
package/recorder/index.js CHANGED
@@ -216,7 +216,6 @@ var Recorder = function (_Component) {
216
216
  stream: stream,
217
217
  onStoppedSpeaking: function onStoppedSpeaking() {
218
218
  try {
219
- console.log("exportWAV");
220
219
  _this3.worker.postMessage({ command: 'exportWAV', beginning: _this3.recordStart, end: Date.now() });
221
220
  } catch (e) {
222
221
  onError(e);
@@ -117,7 +117,7 @@ var WordDetector = function (_Component) {
117
117
  }
118
118
  }, {
119
119
  key: 'onApiResult',
120
- value: function onApiResult(_ref) {
120
+ value: function onApiResult(_ref, wav) {
121
121
  var speechToText = _ref.speechToText,
122
122
  url = _ref.url;
123
123
 
@@ -149,7 +149,7 @@ var WordDetector = function (_Component) {
149
149
  }
150
150
 
151
151
  sendFileToSpeechToTextApi(API_URL, wav).then(function (res) {
152
- _this2.onApiResult(JSON.parse(res));
152
+ _this2.onApiResult(JSON.parse(res), wav);
153
153
  }).catch(function (e) {
154
154
  _this2.onError(e);
155
155
  });