@speechos/core 0.2.4 → 0.2.5
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.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.cts +6 -1
- package/dist/types.d.ts +6 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1652,6 +1652,10 @@ var WebSocketManager = class {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
handleIntermediateTranscription(message) {
|
|
1654
1654
|
const config = getConfig();
|
|
1655
|
+
events.emit("transcription:interim", {
|
|
1656
|
+
transcript: message.transcript,
|
|
1657
|
+
isFinal: message.is_final
|
|
1658
|
+
});
|
|
1655
1659
|
if (config.debug) console.log("[SpeechOS] Intermediate transcription:", message.transcript, "final:", message.is_final);
|
|
1656
1660
|
}
|
|
1657
1661
|
handleFinalTranscript(message) {
|