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.
- package/README.org +5 -10
- 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
|
-
//
|
|
15
|
-
|
|
16
|
-
|
|
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