speechstate 2.8.2-pr14-1-13185692302.0 → 2.8.2

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.
Files changed (2) hide show
  1. package/README.org +5 -10
  2. package/package.json +1 -2
package/README.org CHANGED
@@ -11,15 +11,9 @@ Free browser-based spoken dialogue system. Based on [[https://github.com/stately
11
11
  #+begin_src typescript
12
12
  import { speechstate } from "speechstate";
13
13
 
14
- // start with this action in your state chart
15
- assign({
16
- spstRef: ({ spawn }) => {
17
- return spawn(speechstate, {
18
- input: {
19
- settings: ...
20
- },
21
- });
22
- },
14
+ // define your the context of your statechart as follows
15
+ context: ({ spawn }) => ({
16
+ spstRef: spawn(speechstate, { input: settings }),
23
17
  }),
24
18
  #+end_src
25
19
 
@@ -64,7 +58,8 @@ Example action:
64
58
  *** SpeechState to DM
65
59
  - ~{ type: "ASRTTS_READY" }~
66
60
  - ~{ type: "ASR_NOINPUT" }~
67
- - ~{ type: "RECOGNISED"; value: Hypothesis[]; nluValue?: any }~
61
+ - ~{ type: "RECOGNISED"; value: Hypothesis[]; nluValue?: any }~
62
+ - ~{ type: "LISTEN_COMPLETE" }~
68
63
  - ~{ type: "SPEAK_COMPLETE" }~
69
64
  - ~{ type: "ASR_STARTED" }~
70
65
  - ~{ type: "TTS_STARTED" }~
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "speechstate",
3
- "version": "2.8.2-pr14-1-13185692302.0",
3
+ "version": "2.8.2",
4
4
  "license": "GPL-3.0",
5
- "type": "module",
6
5
  "homepage": "http://localhost/speechstate",
7
6
  "main": "./dist/index.js",
8
7
  "types": "./dist/index.d.ts",