@charivo/stt 0.6.3 → 0.7.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.
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var STTManagerImpl = class {
|
|
|
32
32
|
constructor(sttTranscriber) {
|
|
33
33
|
this.sttTranscriber = sttTranscriber;
|
|
34
34
|
this.sttTranscriber.onPartial?.(
|
|
35
|
-
(transcription) => this.eventEmitter?.emit("stt:partial", { transcription })
|
|
35
|
+
(transcription) => this.eventEmitter?.emit("stt:partial", { text: transcription })
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -60,7 +60,7 @@ var STTManagerImpl = class {
|
|
|
60
60
|
async stop() {
|
|
61
61
|
try {
|
|
62
62
|
const transcription = await this.sttTranscriber.stopRecording();
|
|
63
|
-
this.eventEmitter?.emit("stt:stop", { transcription });
|
|
63
|
+
this.eventEmitter?.emit("stt:stop", { text: transcription });
|
|
64
64
|
return transcription;
|
|
65
65
|
} catch (error) {
|
|
66
66
|
const typedError = (0, import_core.toCharivoError)("provider", error);
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var STTManagerImpl = class {
|
|
|
8
8
|
constructor(sttTranscriber) {
|
|
9
9
|
this.sttTranscriber = sttTranscriber;
|
|
10
10
|
this.sttTranscriber.onPartial?.(
|
|
11
|
-
(transcription) => this.eventEmitter?.emit("stt:partial", { transcription })
|
|
11
|
+
(transcription) => this.eventEmitter?.emit("stt:partial", { text: transcription })
|
|
12
12
|
);
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -36,7 +36,7 @@ var STTManagerImpl = class {
|
|
|
36
36
|
async stop() {
|
|
37
37
|
try {
|
|
38
38
|
const transcription = await this.sttTranscriber.stopRecording();
|
|
39
|
-
this.eventEmitter?.emit("stt:stop", { transcription });
|
|
39
|
+
this.eventEmitter?.emit("stt:stop", { text: transcription });
|
|
40
40
|
return transcription;
|
|
41
41
|
} catch (error) {
|
|
42
42
|
const typedError = toCharivoError("provider", error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charivo/stt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "STT manager and browser adapters for Charivo",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"openai": "^4.47.1",
|
|
44
|
-
"@charivo/core": "0.
|
|
44
|
+
"@charivo/core": "0.20.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"tsup": "^8.5.0",
|