uneeq-js 2.49.0 → 2.49.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.
- package/dist/index.js +1 -1
- package/dist/src/types/SpeechTranscriptionResult.d.ts +1 -0
- package/dist/umd/index.js +5 -2
- package/package.json +1 -1
- package/readme.md +3 -0
package/dist/umd/index.js
CHANGED
|
@@ -13314,7 +13314,7 @@ exports.race = race;
|
|
|
13314
13314
|
/***/ ((module) => {
|
|
13315
13315
|
|
|
13316
13316
|
"use strict";
|
|
13317
|
-
module.exports = JSON.parse('{"name":"uneeq-js","version":"2.49.
|
|
13317
|
+
module.exports = JSON.parse('{"name":"uneeq-js","version":"2.49.1","description":"","main":"dist/index.js","types":"dist/src/index.d.ts","scripts":{"start":"npx webpack -w","test-local":"npx karma start karma.conf.js -logLevel=DEBUG","test":"npx karma start --browsers ChromeHeadless --single-run","test:windows":"karma start karma.conf.js","build":"webpack --config webpack.config.prod.js && webpack --config webpack.config.umd.js","lint":"npx tslint -p tsconfig.json --fix","docs":"npx typedoc --options"},"files":["dist","!dist/test"],"author":"","license":"ISC","dependencies":{"@stomp/stompjs":"^6.0.0","@uehreka/seriously":"^1.0.1","fast-text-encoding":"^1.0.0","intrinsic-scale":"^3.0.4","onnxruntime-web":"^1.15.1","promjs":"^0.4.1","ring-buffer-ts":"^1.2.0","rxjs":"^7.8.1","rxjs-compat":"^6.6.7","simple-peer":"^9.11.1","webrtc-adapter":"^8.2.3"},"devDependencies":{"@types/dom-mediacapture-record":"^1.0.16","@types/jasmine":"^2.8.8","@types/node":"^10.9.4","fetch-mock":"7.7.3","ignore-styles":"^5.0.1","jasmine":"^5.1.0","jasmine-core":"^5.1.0","karma":"^6.4.2","karma-chrome-launcher":"^3.2.0","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.1.0","karma-requirejs":"^1.1.0","karma-typescript":"^5.5.4","karma-typescript-es6-transform":"^5.5.4","nock":"^9.6.1","requirejs":"^2.3.6","ts-loader":"^9.4.4","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-no-focused-test":"^0.5.0","typedoc":"^0.18.0","typescript":"^5.1.6","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}');
|
|
13318
13318
|
|
|
13319
13319
|
/***/ }),
|
|
13320
13320
|
/* 242 */
|
|
@@ -51269,6 +51269,7 @@ const audioSampleRate = 48000;
|
|
|
51269
51269
|
const audioChannelCount = 1;
|
|
51270
51270
|
const defaultAssetPath = 'https://cdn.uneeq.io/assets/platform/speech-recognition/';
|
|
51271
51271
|
const websocketReconnectionQueueLimit = 200;
|
|
51272
|
+
const transcriptionStabilityThreshold = 0.5;
|
|
51272
51273
|
class SpeechHandler {
|
|
51273
51274
|
constructor(options) {
|
|
51274
51275
|
this.options = options;
|
|
@@ -51555,7 +51556,9 @@ class SpeechHandler {
|
|
|
51555
51556
|
this.options.api.stopSpeaking();
|
|
51556
51557
|
this.digitalHumanSpeaking = false;
|
|
51557
51558
|
}
|
|
51558
|
-
|
|
51559
|
+
if (result.stability > transcriptionStabilityThreshold || result.final) {
|
|
51560
|
+
this.options.messages.next(new MessageTypes_1.SpeechTranscriptionMessage(result));
|
|
51561
|
+
}
|
|
51559
51562
|
}
|
|
51560
51563
|
}
|
|
51561
51564
|
exports.SpeechHandler = SpeechHandler;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -8,6 +8,9 @@ https://docs.uneeq.io/build-your-own-experience
|
|
|
8
8
|
To use uneeq-js with a typescript version < 3.8, 'skipLibCheck' must be set to true.
|
|
9
9
|
|
|
10
10
|
## Release Notes
|
|
11
|
+
#### 2.49.1
|
|
12
|
+
* Fixed an issue that caused partial SpeechTranscriptionMessages to be sent.
|
|
13
|
+
|
|
11
14
|
#### 2.49.0
|
|
12
15
|
* Moved Speech Recognition out of beta and into general availability.
|
|
13
16
|
|