@charivo/stt 0.2.0 → 0.2.1
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.
|
@@ -10,7 +10,13 @@ var MediaRecorderHelper = class {
|
|
|
10
10
|
if (this.recording) {
|
|
11
11
|
throw new Error("Already recording");
|
|
12
12
|
}
|
|
13
|
-
const stream = await navigator.mediaDevices.getUserMedia({
|
|
13
|
+
const stream = await navigator.mediaDevices.getUserMedia({
|
|
14
|
+
audio: {
|
|
15
|
+
echoCancellation: true,
|
|
16
|
+
noiseSuppression: true,
|
|
17
|
+
autoGainControl: true
|
|
18
|
+
}
|
|
19
|
+
});
|
|
14
20
|
this.mediaRecorder = new MediaRecorder(stream);
|
|
15
21
|
this.audioChunks = [];
|
|
16
22
|
this.mediaRecorder.ondataavailable = (event) => {
|
package/dist/index.js
CHANGED
|
@@ -87,7 +87,13 @@ var MediaRecorderHelper = class {
|
|
|
87
87
|
if (this.recording) {
|
|
88
88
|
throw new Error("Already recording");
|
|
89
89
|
}
|
|
90
|
-
const stream = await navigator.mediaDevices.getUserMedia({
|
|
90
|
+
const stream = await navigator.mediaDevices.getUserMedia({
|
|
91
|
+
audio: {
|
|
92
|
+
echoCancellation: true,
|
|
93
|
+
noiseSuppression: true,
|
|
94
|
+
autoGainControl: true
|
|
95
|
+
}
|
|
96
|
+
});
|
|
91
97
|
this.mediaRecorder = new MediaRecorder(stream);
|
|
92
98
|
this.audioChunks = [];
|
|
93
99
|
this.mediaRecorder.ondataavailable = (event) => {
|
package/dist/index.mjs
CHANGED
package/dist/openai/index.js
CHANGED
|
@@ -47,7 +47,13 @@ var MediaRecorderHelper = class {
|
|
|
47
47
|
if (this.recording) {
|
|
48
48
|
throw new Error("Already recording");
|
|
49
49
|
}
|
|
50
|
-
const stream = await navigator.mediaDevices.getUserMedia({
|
|
50
|
+
const stream = await navigator.mediaDevices.getUserMedia({
|
|
51
|
+
audio: {
|
|
52
|
+
echoCancellation: true,
|
|
53
|
+
noiseSuppression: true,
|
|
54
|
+
autoGainControl: true
|
|
55
|
+
}
|
|
56
|
+
});
|
|
51
57
|
this.mediaRecorder = new MediaRecorder(stream);
|
|
52
58
|
this.audioChunks = [];
|
|
53
59
|
this.mediaRecorder.ondataavailable = (event) => {
|
package/dist/openai/index.mjs
CHANGED
package/dist/remote/index.js
CHANGED
|
@@ -37,7 +37,13 @@ var MediaRecorderHelper = class {
|
|
|
37
37
|
if (this.recording) {
|
|
38
38
|
throw new Error("Already recording");
|
|
39
39
|
}
|
|
40
|
-
const stream = await navigator.mediaDevices.getUserMedia({
|
|
40
|
+
const stream = await navigator.mediaDevices.getUserMedia({
|
|
41
|
+
audio: {
|
|
42
|
+
echoCancellation: true,
|
|
43
|
+
noiseSuppression: true,
|
|
44
|
+
autoGainControl: true
|
|
45
|
+
}
|
|
46
|
+
});
|
|
41
47
|
this.mediaRecorder = new MediaRecorder(stream);
|
|
42
48
|
this.audioChunks = [];
|
|
43
49
|
this.mediaRecorder.ondataavailable = (event) => {
|
package/dist/remote/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charivo/stt",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "STT manager and browser adapters for Charivo",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"openai": "^4.47.1",
|
|
39
|
-
"@charivo/core": "0.
|
|
39
|
+
"@charivo/core": "0.8.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"tsup": "^8.5.0",
|