@lls/lls-audio 0.0.74 → 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 +4 -4
- package/player/styles/styles.js +7 -9
- package/recorder/index.js +0 -1
- package/wordDetector/index.js +2 -2
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lls/lls-audio",
|
|
3
|
-
"version": "0.0.
|
|
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": "
|
|
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.
|
|
32
|
+
"waveform-data": "2.0.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@lls/lls-icons": "*",
|
|
36
36
|
"@lls/lls-ui": "*",
|
|
37
|
-
"aphrodite": "
|
|
37
|
+
"aphrodite": "^1.2.3",
|
|
38
38
|
"react": "*",
|
|
39
39
|
"react-dom": "*"
|
|
40
40
|
},
|
package/player/styles/styles.js
CHANGED
|
@@ -40,6 +40,7 @@ exports.default = {
|
|
|
40
40
|
iconAudio: {
|
|
41
41
|
color: _colors.BLUE,
|
|
42
42
|
marginRight: 20,
|
|
43
|
+
marginLeft: 20,
|
|
43
44
|
fontSize: 21
|
|
44
45
|
},
|
|
45
46
|
time: _defineProperty({
|
|
@@ -58,20 +59,17 @@ exports.default = {
|
|
|
58
59
|
totalTime: _defineProperty({}, NOT_DESKTOP, {
|
|
59
60
|
order: 3
|
|
60
61
|
}),
|
|
61
|
-
waveAndTimes:
|
|
62
|
-
|
|
62
|
+
waveAndTimes: {
|
|
63
|
+
flexGrow: 1,
|
|
63
64
|
display: 'flex'
|
|
64
|
-
},
|
|
65
|
-
width: 'calc(100% - 225px)',
|
|
66
|
-
margin: '0px 28px'
|
|
67
|
-
}),
|
|
65
|
+
},
|
|
68
66
|
content: {
|
|
69
67
|
display: 'flex',
|
|
70
68
|
alignItems: 'center',
|
|
71
69
|
justifyContent: 'center',
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
margin: 0,
|
|
71
|
+
height: 85,
|
|
72
|
+
padding: '20px 20px'
|
|
75
73
|
},
|
|
76
74
|
title: {
|
|
77
75
|
minHeight: '37px',
|
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);
|
package/wordDetector/index.js
CHANGED
|
@@ -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
|
});
|