speechstate 2.0.0-beta.3 → 2.0.0-beta.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/README.org CHANGED
@@ -19,16 +19,19 @@
19
19
  #+end_src
20
20
 
21
21
  #+begin_src typescript
22
- interface AzureCredentials {
23
- endpoint: string;
24
- key: string;
25
- }
22
+ interface AzureCredentials {
23
+ endpoint: string;
24
+ key: string;
25
+ }
26
26
 
27
- interface Settings {
28
- locale: string;
29
- azureCredentials: string | AzureCredentials; // you can use proxy URL or full credentials
30
- asrDefaultCompleteTimeout: number;
31
- }
27
+ interface Settings {
28
+ locale?: string;
29
+ azureCredentials: string | AzureCredentials;
30
+ asrDefaultCompleteTimeout?: number;
31
+ asrDefaultNoInputTimeout?: number;
32
+ ttsDefaultVoice?: string;
33
+ speechRecognitionEndpointId?: string;
34
+ }
32
35
  #+end_src
33
36
 
34
37
 
package/dist/asr.d.ts CHANGED
@@ -48,6 +48,7 @@ interface ASRInit {
48
48
  locale: string;
49
49
  audioContext: AudioContext;
50
50
  azureCredentials: string | AzureCredentials;
51
+ speechRecognitionEndpointId?: string;
51
52
  }
52
53
  export declare const asrMachine: import("xstate").StateMachine<ASRContext, ASREvent, Record<string, import("xstate").AnyActorRef>, import("xstate").ProvidedActor, import("xstate").ParameterizedObject, import("xstate").ParameterizedObject, string, import("xstate").StateValue, string, ASRInit, {}, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, ASREvent, import("xstate").ProvidedActor, import("xstate").ParameterizedObject, import("xstate").ParameterizedObject, string, string>>;
53
54
  export {};
package/dist/asr.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"asr.d.ts","sourceRoot":"","sources":["../src/asr.ts"],"names":[],"mappings":";AAaA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC5E,UAAU,mBAAoB,SAAQ,iBAAiB;IACrD,YAAO;CAC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AAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,EAAE,MAAM,GAAG,gBAAgB,CAAC;IAC5C,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,eAAO,MAAM,UAAU,sdA6QtB,CAAC"}
package/dist/asr.js CHANGED
@@ -14,6 +14,7 @@ exports.asrMachine = (0, xstate_1.createMachine)({
14
14
  locale: input.locale || "en-US",
15
15
  audioContext: input.audioContext,
16
16
  azureCredentials: input.azureCredentials,
17
+ speechRecognitionEndpointId: input.speechRecognitionEndpointId,
17
18
  }),
18
19
  initial: "GetToken",
19
20
  on: {
@@ -170,6 +171,7 @@ exports.asrMachine = (0, xstate_1.createMachine)({
170
171
  audioContext: context.audioContext,
171
172
  azureAuthorizationToken: context.azureAuthorizationToken,
172
173
  locale: context.locale,
174
+ speechRecognitionEndpointId: context.speechRecognitionEndpointId,
173
175
  }),
174
176
  },
175
177
  },
@@ -186,6 +188,8 @@ exports.asrMachine = (0, xstate_1.createMachine)({
186
188
  ponyfill: (0, xstate_1.fromCallback)(({ sendBack, input }) => {
187
189
  const { SpeechGrammarList, SpeechRecognition } = (0, SpeechToText_1.default)({
188
190
  audioContext: input.audioContext,
191
+ speechRecognitionEndpointId: input
192
+ .speechRecognitionEndpointId,
189
193
  credentials: {
190
194
  region: REGION, // TODO
191
195
  authorizationToken: input.azureAuthorizationToken,
@@ -198,7 +202,7 @@ exports.asrMachine = (0, xstate_1.createMachine)({
198
202
  wsaGrammarList: SpeechGrammarList,
199
203
  },
200
204
  });
201
- console.debug("[ASR] READY");
205
+ console.debug("[ASR] READY", input);
202
206
  }),
203
207
  recStart: (0, xstate_1.fromCallback)(({ sendBack, input }) => {
204
208
  let asr = new input.wsaASR();
@@ -1 +1 @@
1
- {"version":3,"file":"speechstate.d.ts","sourceRoot":"","sources":["../src/speechstate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvD,UAA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;CAAE,GACnB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GACvB;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAC1B;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GACvB;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GACvB;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,UAAU,EAAE,CAAA;CAAE,CAAC;AAEhD,QAAA,MAAM,WAAW,odAyPhB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -12,21 +12,21 @@ const speechstate = (0, xstate_1.createMachine)({
12
12
  id: "speechstate",
13
13
  type: "parallel",
14
14
  states: {
15
- asrTtsSpawner: {
16
- initial: "idle",
15
+ AsrTtsSpawner: {
16
+ initial: "Idle",
17
17
  states: {
18
- idle: { on: { PREPARE: "createAudioContext" } },
19
- createAudioContext: {
18
+ Idle: { on: { PREPARE: "CreateAudioContext" } },
19
+ CreateAudioContext: {
20
20
  invoke: {
21
21
  id: "createAudioContext",
22
22
  src: "audioContext",
23
23
  onDone: {
24
- target: "spawn",
24
+ target: "Spawn",
25
25
  actions: (0, xstate_1.assign)({ audioContext: ({ event }) => event.output }),
26
26
  },
27
27
  },
28
28
  },
29
- spawn: {
29
+ Spawn: {
30
30
  entry: [
31
31
  (0, xstate_1.assign)({
32
32
  ttsRef: ({ context, spawn }) => {
@@ -48,6 +48,7 @@ const speechstate = (0, xstate_1.createMachine)({
48
48
  locale: context.settings.locale,
49
49
  audioContext: context.audioContext,
50
50
  azureCredentials: context.settings.azureCredentials,
51
+ speechRecognitionEndpointId: context.settings.speechRecognitionEndpointId,
51
52
  },
52
53
  });
53
54
  },
@@ -55,68 +56,68 @@ const speechstate = (0, xstate_1.createMachine)({
55
56
  ],
56
57
  after: {
57
58
  300000: {
58
- target: "spawn",
59
+ target: "Spawn",
59
60
  },
60
61
  },
61
62
  },
62
63
  },
63
64
  },
64
- asrTtsManager: {
65
- initial: "initialize",
65
+ AsrTtsManager: {
66
+ initial: "Initialize",
66
67
  on: {
67
68
  TTS_READY: {
68
69
  actions: () => console.debug("[TTS→SpSt] TTS_READY"),
69
- target: ".preReady",
70
+ target: ".PreReady",
70
71
  },
71
72
  ASR_READY: {
72
73
  actions: () => console.debug("[ASR→SpSt] ASR_READY"),
73
- target: ".preReady",
74
+ target: ".PreReady",
74
75
  },
75
76
  // ASR_ERROR not implemented
76
77
  TTS_ERROR: {
77
78
  actions: () => console.error("[TTS→SpSt] TTS_ERROR"),
78
- target: ".fail",
79
+ target: ".Fail",
79
80
  },
80
81
  ASR_NOINPUT: {
81
82
  actions: [
82
83
  () => console.debug("[ASR→SpSt] NOINPUT"),
83
84
  (0, xstate_1.sendParent)({ type: "ASR_NOINPUT" }),
84
85
  ],
85
- target: ".ready",
86
+ target: ".Ready",
86
87
  },
87
88
  },
88
89
  states: {
89
- initialize: {},
90
- preReady: {
90
+ Initialize: {},
91
+ PreReady: {
91
92
  on: {
92
93
  TTS_READY: {
93
94
  actions: () => console.debug("[TTS→SpSt] TTS_READY"),
94
- target: "ready",
95
+ target: "Ready",
95
96
  },
96
97
  ASR_READY: {
97
98
  actions: () => console.debug("[ASR→SpSt] ASR_READY"),
98
- target: "ready",
99
+ target: "Ready",
99
100
  },
100
101
  },
101
102
  },
102
- ready: {
103
- initial: "idle",
103
+ Ready: {
104
+ initial: "Idle",
104
105
  entry: [
105
106
  () => console.debug("[SpSt] All ready"),
106
107
  (0, xstate_1.sendParent)({ type: "ASRTTS_READY" }),
107
108
  ],
108
109
  states: {
109
- idle: {
110
+ Idle: {
110
111
  on: {
111
- LISTEN: { target: "waitForRecogniser" },
112
+ LISTEN: { target: "WaitForRecogniser" },
112
113
  SPEAK: [
113
114
  {
114
- target: "speaking",
115
+ target: "Speaking",
115
116
  },
116
117
  ],
117
118
  },
118
119
  },
119
- speaking: {
120
+ Speaking: {
120
121
  entry: [
121
122
  ({ event }) => console.debug("[SpSt→TTS] SPEAK", event.value),
122
123
  ({ context, event }) => context.ttsRef.send({
@@ -148,7 +149,7 @@ const speechstate = (0, xstate_1.createMachine)({
148
149
  ],
149
150
  },
150
151
  SPEAK_COMPLETE: {
151
- target: "idle",
152
+ target: "Idle",
152
153
  actions: [
153
154
  () => console.debug("[TTS→SpSt] SPEAK_COMPLETE"),
154
155
  (0, xstate_1.sendParent)({ type: "SPEAK_COMPLETE" }),
@@ -156,7 +157,7 @@ const speechstate = (0, xstate_1.createMachine)({
156
157
  },
157
158
  },
158
159
  },
159
- waitForRecogniser: {
160
+ WaitForRecogniser: {
160
161
  entry: [
161
162
  ({ event }) => console.debug("[SpSt→ASR] START", event.value),
162
163
  ({ context, event }) => context.asrRef.send({
@@ -166,7 +167,7 @@ const speechstate = (0, xstate_1.createMachine)({
166
167
  ],
167
168
  on: {
168
169
  ASR_STARTED: {
169
- target: "recognising",
170
+ target: "Recognising",
170
171
  actions: [
171
172
  () => console.debug("[ASR→SpSt] ASR_STARTED"),
172
173
  (0, xstate_1.sendParent)({ type: "ASR_STARTED" }),
@@ -174,7 +175,7 @@ const speechstate = (0, xstate_1.createMachine)({
174
175
  },
175
176
  },
176
177
  },
177
- recognising: {
178
+ Recognising: {
178
179
  on: {
179
180
  CONTROL: {
180
181
  actions: [
@@ -192,13 +193,13 @@ const speechstate = (0, xstate_1.createMachine)({
192
193
  value: event.value,
193
194
  })),
194
195
  ],
195
- target: "idle",
196
+ target: "Idle",
196
197
  },
197
198
  },
198
199
  },
199
200
  },
200
201
  },
201
- fail: {},
202
+ Fail: {},
202
203
  },
203
204
  },
204
205
  },
package/dist/types.d.ts CHANGED
@@ -3,11 +3,12 @@ export interface AzureCredentials {
3
3
  key: string;
4
4
  }
5
5
  export interface Settings {
6
- locale: string;
6
+ locale?: string;
7
7
  azureCredentials: string | AzureCredentials;
8
- asrDefaultCompleteTimeout: number;
9
- asrDefaultNoInputTimeout: number;
10
- ttsDefaultVoice: string;
8
+ asrDefaultCompleteTimeout?: number;
9
+ asrDefaultNoInputTimeout?: number;
10
+ ttsDefaultVoice?: string;
11
+ speechRecognitionEndpointId?: string;
11
12
  }
12
13
  export interface Agenda {
13
14
  utterance: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,GAAG,gBAAgB,CAAC;IAC5C,yBAAyB,EAAE,MAAM,CAAC;IAClC,wBAAwB,EAAE,MAAM,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,MAAM;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,GAAG,gBAAgB,CAAC;IAC5C,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,MAAM,WAAW,MAAM;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,53 +1,53 @@
1
1
  {
2
- "name": "speechstate",
3
- "version": "2.0.0-beta.3",
4
- "license": "GPL-3.0",
5
- "homepage": "http://localhost/speechstate",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "files": ["/dist"],
9
- "dependencies": {
10
- "microsoft-cognitiveservices-speech-sdk": "^1.31.0",
11
- "web-speech-cognitive-services": "^7.1.3",
12
- "xstate": "^5.5.1"
13
- },
14
- "scripts": {
15
- "dev": "vite",
16
- "test": "jest --silent=false"
17
- },
18
- "eslintConfig": {
19
- "extends": ["react-app", "react-app/jest"]
20
- },
21
- "browserslist": {
22
- "production": [">0.2%", "not dead", "not op_mini all"],
23
- "development": [
24
- "last 1 chrome version",
25
- "last 1 firefox version",
26
- "last 1 safari version"
27
- ]
28
- },
29
- "devDependencies": {
30
- "@types/jest": "^29.5.2",
31
- "@types/webspeechapi": "^0.0.29",
32
- "buffer": "^5.5.0||^6.0.0",
33
- "jest": "^29.5.0",
34
- "jest-environment-jsdom": "^29.5.0",
35
- "ts-jest": "^29.1.0",
36
- "typescript": "^5.0.4",
37
- "vite": "^5.0.11"
38
- },
39
- "packageManager": "yarn@3.6.4",
40
- "description": "* SDK",
41
- "directories": {
42
- "doc": "docs",
43
- "test": "test"
44
- },
45
- "repository": {
46
- "type": "git",
47
- "url": "git+ssh://git@github.com/vladmaraev/speechstate.git"
48
- },
49
- "author": "Vlad Maraev",
50
- "bugs": {
51
- "url": "https://github.com/vladmaraev/speechstate/issues"
52
- }
2
+ "name": "speechstate",
3
+ "version": "2.0.0-beta.5",
4
+ "license": "GPL-3.0",
5
+ "homepage": "http://localhost/speechstate",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": ["/dist"],
9
+ "dependencies": {
10
+ "microsoft-cognitiveservices-speech-sdk": "^1.31.0",
11
+ "web-speech-cognitive-services": "^7.1.3",
12
+ "xstate": "^5.5.1"
13
+ },
14
+ "scripts": {
15
+ "dev": "vite",
16
+ "test": "jest --silent=false"
17
+ },
18
+ "eslintConfig": {
19
+ "extends": ["react-app", "react-app/jest"]
20
+ },
21
+ "browserslist": {
22
+ "production": [">0.2%", "not dead", "not op_mini all"],
23
+ "development": [
24
+ "last 1 chrome version",
25
+ "last 1 firefox version",
26
+ "last 1 safari version"
27
+ ]
28
+ },
29
+ "devDependencies": {
30
+ "@types/jest": "^29.5.2",
31
+ "@types/webspeechapi": "^0.0.29",
32
+ "buffer": "^5.5.0||^6.0.0",
33
+ "jest": "^29.5.0",
34
+ "jest-environment-jsdom": "^29.5.0",
35
+ "ts-jest": "^29.1.0",
36
+ "typescript": "^5.0.4",
37
+ "vite": "^5.0.11"
38
+ },
39
+ "packageManager": "yarn@3.6.4",
40
+ "description": "* SDK",
41
+ "directories": {
42
+ "doc": "docs",
43
+ "test": "test"
44
+ },
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "git+ssh://git@github.com/vladmaraev/speechstate.git"
48
+ },
49
+ "author": "Vlad Maraev",
50
+ "bugs": {
51
+ "url": "https://github.com/vladmaraev/speechstate/issues"
52
+ }
53
53
  }