uneeq-js 2.47.7 → 2.47.9

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/umd/index.js CHANGED
@@ -4087,7 +4087,10 @@ class Uneeq {
4087
4087
  initAvatar() {
4088
4088
  this.ready.pipe((0, operators_1.filter)(Boolean), (0, operators_1.take)(1)).subscribe(() => {
4089
4089
  this.internalMessages$.pipe((0, operators_1.filter)((message) => message.faceMeMessageType === 'DevicePermissionAllowedInternal'), (0, operators_1.take)(1)).subscribe((msg) => {
4090
- this.messages.next(new MessageTypes_1.DevicePermissionAllowedMessage());
4090
+ // Speech Handler will send this message when the mic permission is allowed
4091
+ if (this.options.voiceInputMode !== VoiceInputMode_1.VoiceInputMode.SPEECH_RECOGNITION) {
4092
+ this.messages.next(new MessageTypes_1.DevicePermissionAllowedMessage());
4093
+ }
4091
4094
  this.startAvatarWhenAvailable();
4092
4095
  });
4093
4096
  this.initDeviceManager();
@@ -13268,7 +13271,7 @@ exports.race = race;
13268
13271
  /***/ ((module) => {
13269
13272
 
13270
13273
  "use strict";
13271
- module.exports = JSON.parse('{"name":"uneeq-js","version":"2.47.7","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"}}');
13274
+ module.exports = JSON.parse('{"name":"uneeq-js","version":"2.47.9","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"}}');
13272
13275
 
13273
13276
  /***/ }),
13274
13277
  /* 242 */
@@ -51397,8 +51400,12 @@ class SpeechHandler {
51397
51400
  this.stream = stream;
51398
51401
  this.initVoiceActivityDetection(stream);
51399
51402
  this.initMediaRecorder(stream);
51403
+ this.options.messages.next(new MessageTypes_1.DevicePermissionAllowedMessage());
51400
51404
  })
51401
- .catch((error) => console.error('Error starting recording', error));
51405
+ .catch((error) => {
51406
+ console.error('Error starting recording', error);
51407
+ this.options.messages.next(new MessageTypes_1.DeviceErrorMessage(error));
51408
+ });
51402
51409
  }
51403
51410
  getMediaRecorder(stream, mediaOptions, workerOptions) {
51404
51411
  return new window.OpusMediaRecorder(stream, mediaOptions, workerOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uneeq-js",
3
- "version": "2.47.7",
3
+ "version": "2.47.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/src/index.d.ts",
package/readme.md CHANGED
@@ -8,6 +8,12 @@ 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.47.9
12
+ * Speech Recognition: Send DevicePermissionGranted message
13
+
14
+ #### 2.47.8
15
+ * Speech Handler: added DeviceErrorMessage when access to microphone is declined.
16
+
11
17
  #### 2.47.7
12
18
  * added jwt security to speech recognition
13
19