speechflow 1.6.4 → 1.6.6

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 (178) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +28 -3
  3. package/etc/speechflow.yaml +15 -13
  4. package/etc/stx.conf +5 -0
  5. package/package.json +5 -5
  6. package/speechflow-cli/dst/speechflow-main-api.js +3 -7
  7. package/speechflow-cli/dst/speechflow-main-api.js.map +1 -1
  8. package/speechflow-cli/dst/speechflow-main-graph.js +1 -1
  9. package/speechflow-cli/dst/speechflow-main.js +6 -0
  10. package/speechflow-cli/dst/speechflow-main.js.map +1 -1
  11. package/speechflow-cli/dst/speechflow-node-a2a-compressor-wt.js +1 -21
  12. package/speechflow-cli/dst/speechflow-node-a2a-compressor-wt.js.map +1 -1
  13. package/speechflow-cli/dst/speechflow-node-a2a-compressor.d.ts +1 -1
  14. package/speechflow-cli/dst/speechflow-node-a2a-compressor.js +12 -11
  15. package/speechflow-cli/dst/speechflow-node-a2a-compressor.js.map +1 -1
  16. package/speechflow-cli/dst/speechflow-node-a2a-expander-wt.js +1 -21
  17. package/speechflow-cli/dst/speechflow-node-a2a-expander-wt.js.map +1 -1
  18. package/speechflow-cli/dst/speechflow-node-a2a-expander.d.ts +1 -1
  19. package/speechflow-cli/dst/speechflow-node-a2a-expander.js +12 -11
  20. package/speechflow-cli/dst/speechflow-node-a2a-expander.js.map +1 -1
  21. package/speechflow-cli/dst/speechflow-node-a2a-ffmpeg.js +4 -10
  22. package/speechflow-cli/dst/speechflow-node-a2a-ffmpeg.js.map +1 -1
  23. package/speechflow-cli/dst/speechflow-node-a2a-filler.d.ts +1 -1
  24. package/speechflow-cli/dst/speechflow-node-a2a-filler.js +18 -16
  25. package/speechflow-cli/dst/speechflow-node-a2a-filler.js.map +1 -1
  26. package/speechflow-cli/dst/speechflow-node-a2a-gain.d.ts +1 -1
  27. package/speechflow-cli/dst/speechflow-node-a2a-gain.js +8 -8
  28. package/speechflow-cli/dst/speechflow-node-a2a-gain.js.map +1 -1
  29. package/speechflow-cli/dst/speechflow-node-a2a-gender.d.ts +1 -1
  30. package/speechflow-cli/dst/speechflow-node-a2a-gender.js +70 -60
  31. package/speechflow-cli/dst/speechflow-node-a2a-gender.js.map +1 -1
  32. package/speechflow-cli/dst/speechflow-node-a2a-meter.d.ts +1 -1
  33. package/speechflow-cli/dst/speechflow-node-a2a-meter.js +58 -42
  34. package/speechflow-cli/dst/speechflow-node-a2a-meter.js.map +1 -1
  35. package/speechflow-cli/dst/speechflow-node-a2a-mute.d.ts +1 -1
  36. package/speechflow-cli/dst/speechflow-node-a2a-mute.js +44 -10
  37. package/speechflow-cli/dst/speechflow-node-a2a-mute.js.map +1 -1
  38. package/speechflow-cli/dst/speechflow-node-a2a-pitch.d.ts +13 -0
  39. package/speechflow-cli/dst/speechflow-node-a2a-pitch.js +213 -0
  40. package/speechflow-cli/dst/speechflow-node-a2a-pitch.js.map +1 -0
  41. package/speechflow-cli/dst/speechflow-node-a2a-pitch2-wt.js +149 -0
  42. package/speechflow-cli/dst/speechflow-node-a2a-pitch2-wt.js.map +1 -0
  43. package/speechflow-cli/dst/speechflow-node-a2a-pitch2.d.ts +13 -0
  44. package/speechflow-cli/dst/speechflow-node-a2a-pitch2.js +202 -0
  45. package/speechflow-cli/dst/speechflow-node-a2a-pitch2.js.map +1 -0
  46. package/speechflow-cli/dst/speechflow-node-a2a-rnnoise.d.ts +1 -1
  47. package/speechflow-cli/dst/speechflow-node-a2a-rnnoise.js +13 -11
  48. package/speechflow-cli/dst/speechflow-node-a2a-rnnoise.js.map +1 -1
  49. package/speechflow-cli/dst/speechflow-node-a2a-speex.d.ts +1 -1
  50. package/speechflow-cli/dst/speechflow-node-a2a-speex.js +13 -12
  51. package/speechflow-cli/dst/speechflow-node-a2a-speex.js.map +1 -1
  52. package/speechflow-cli/dst/speechflow-node-a2a-vad.d.ts +1 -1
  53. package/speechflow-cli/dst/speechflow-node-a2a-vad.js +26 -25
  54. package/speechflow-cli/dst/speechflow-node-a2a-vad.js.map +1 -1
  55. package/speechflow-cli/dst/speechflow-node-a2a-wav.js +35 -7
  56. package/speechflow-cli/dst/speechflow-node-a2a-wav.js.map +1 -1
  57. package/speechflow-cli/dst/speechflow-node-a2t-amazon.d.ts +1 -1
  58. package/speechflow-cli/dst/speechflow-node-a2t-amazon.js +16 -16
  59. package/speechflow-cli/dst/speechflow-node-a2t-amazon.js.map +1 -1
  60. package/speechflow-cli/dst/speechflow-node-a2t-deepgram.d.ts +1 -1
  61. package/speechflow-cli/dst/speechflow-node-a2t-deepgram.js +16 -16
  62. package/speechflow-cli/dst/speechflow-node-a2t-deepgram.js.map +1 -1
  63. package/speechflow-cli/dst/speechflow-node-a2t-openai.d.ts +1 -2
  64. package/speechflow-cli/dst/speechflow-node-a2t-openai.js +15 -21
  65. package/speechflow-cli/dst/speechflow-node-a2t-openai.js.map +1 -1
  66. package/speechflow-cli/dst/speechflow-node-t2a-amazon.d.ts +1 -2
  67. package/speechflow-cli/dst/speechflow-node-t2a-amazon.js +9 -15
  68. package/speechflow-cli/dst/speechflow-node-t2a-amazon.js.map +1 -1
  69. package/speechflow-cli/dst/speechflow-node-t2a-elevenlabs.d.ts +1 -2
  70. package/speechflow-cli/dst/speechflow-node-t2a-elevenlabs.js +13 -18
  71. package/speechflow-cli/dst/speechflow-node-t2a-elevenlabs.js.map +1 -1
  72. package/speechflow-cli/dst/speechflow-node-t2a-kokoro.d.ts +0 -1
  73. package/speechflow-cli/dst/speechflow-node-t2a-kokoro.js +4 -10
  74. package/speechflow-cli/dst/speechflow-node-t2a-kokoro.js.map +1 -1
  75. package/speechflow-cli/dst/speechflow-node-t2t-amazon.js +3 -3
  76. package/speechflow-cli/dst/speechflow-node-t2t-amazon.js.map +1 -1
  77. package/speechflow-cli/dst/speechflow-node-t2t-deepl.js +2 -2
  78. package/speechflow-cli/dst/speechflow-node-t2t-deepl.js.map +1 -1
  79. package/speechflow-cli/dst/speechflow-node-t2t-format.js +36 -2
  80. package/speechflow-cli/dst/speechflow-node-t2t-format.js.map +1 -1
  81. package/speechflow-cli/dst/speechflow-node-t2t-google.js +2 -2
  82. package/speechflow-cli/dst/speechflow-node-t2t-google.js.map +1 -1
  83. package/speechflow-cli/dst/speechflow-node-t2t-modify.js +5 -5
  84. package/speechflow-cli/dst/speechflow-node-t2t-modify.js.map +1 -1
  85. package/speechflow-cli/dst/speechflow-node-t2t-ollama.js +3 -3
  86. package/speechflow-cli/dst/speechflow-node-t2t-ollama.js.map +1 -1
  87. package/speechflow-cli/dst/speechflow-node-t2t-openai.js +2 -2
  88. package/speechflow-cli/dst/speechflow-node-t2t-openai.js.map +1 -1
  89. package/speechflow-cli/dst/speechflow-node-t2t-sentence.d.ts +1 -1
  90. package/speechflow-cli/dst/speechflow-node-t2t-sentence.js +13 -13
  91. package/speechflow-cli/dst/speechflow-node-t2t-sentence.js.map +1 -1
  92. package/speechflow-cli/dst/speechflow-node-t2t-subtitle.js +8 -8
  93. package/speechflow-cli/dst/speechflow-node-t2t-subtitle.js.map +1 -1
  94. package/speechflow-cli/dst/speechflow-node-t2t-transformers.js +2 -2
  95. package/speechflow-cli/dst/speechflow-node-t2t-transformers.js.map +1 -1
  96. package/speechflow-cli/dst/speechflow-node-x2x-filter.js +2 -2
  97. package/speechflow-cli/dst/speechflow-node-x2x-filter.js.map +1 -1
  98. package/speechflow-cli/dst/speechflow-node-x2x-trace.d.ts +1 -1
  99. package/speechflow-cli/dst/speechflow-node-x2x-trace.js +42 -8
  100. package/speechflow-cli/dst/speechflow-node-x2x-trace.js.map +1 -1
  101. package/speechflow-cli/dst/speechflow-node-xio-device.js +6 -4
  102. package/speechflow-cli/dst/speechflow-node-xio-device.js.map +1 -1
  103. package/speechflow-cli/dst/speechflow-node-xio-file.js +19 -18
  104. package/speechflow-cli/dst/speechflow-node-xio-file.js.map +1 -1
  105. package/speechflow-cli/dst/speechflow-node-xio-mqtt.js +13 -13
  106. package/speechflow-cli/dst/speechflow-node-xio-mqtt.js.map +1 -1
  107. package/speechflow-cli/dst/speechflow-node-xio-websocket.js +8 -8
  108. package/speechflow-cli/dst/speechflow-node-xio-websocket.js.map +1 -1
  109. package/speechflow-cli/dst/speechflow-node.js +6 -6
  110. package/speechflow-cli/dst/speechflow-node.js.map +1 -1
  111. package/speechflow-cli/dst/speechflow-util-audio.d.ts +1 -0
  112. package/speechflow-cli/dst/speechflow-util-audio.js +22 -1
  113. package/speechflow-cli/dst/speechflow-util-audio.js.map +1 -1
  114. package/speechflow-cli/dst/speechflow-util-error.d.ts +1 -1
  115. package/speechflow-cli/dst/speechflow-util-error.js +7 -1
  116. package/speechflow-cli/dst/speechflow-util-error.js.map +1 -1
  117. package/speechflow-cli/dst/speechflow-util-stream.d.ts +2 -1
  118. package/speechflow-cli/dst/speechflow-util-stream.js +23 -3
  119. package/speechflow-cli/dst/speechflow-util-stream.js.map +1 -1
  120. package/speechflow-cli/etc/oxlint.jsonc +2 -1
  121. package/speechflow-cli/etc/tsconfig.json +1 -0
  122. package/speechflow-cli/package.json +20 -20
  123. package/speechflow-cli/src/speechflow-main-api.ts +6 -13
  124. package/speechflow-cli/src/speechflow-main-graph.ts +1 -1
  125. package/speechflow-cli/src/speechflow-main.ts +4 -0
  126. package/speechflow-cli/src/speechflow-node-a2a-compressor-wt.ts +1 -29
  127. package/speechflow-cli/src/speechflow-node-a2a-compressor.ts +13 -12
  128. package/speechflow-cli/src/speechflow-node-a2a-expander-wt.ts +1 -29
  129. package/speechflow-cli/src/speechflow-node-a2a-expander.ts +13 -12
  130. package/speechflow-cli/src/speechflow-node-a2a-ffmpeg.ts +4 -10
  131. package/speechflow-cli/src/speechflow-node-a2a-filler.ts +19 -17
  132. package/speechflow-cli/src/speechflow-node-a2a-gain.ts +8 -8
  133. package/speechflow-cli/src/speechflow-node-a2a-gender.ts +83 -72
  134. package/speechflow-cli/src/speechflow-node-a2a-meter.ts +66 -46
  135. package/speechflow-cli/src/speechflow-node-a2a-mute.ts +11 -10
  136. package/speechflow-cli/src/speechflow-node-a2a-pitch.ts +221 -0
  137. package/speechflow-cli/src/speechflow-node-a2a-rnnoise.ts +14 -12
  138. package/speechflow-cli/src/speechflow-node-a2a-speex.ts +14 -13
  139. package/speechflow-cli/src/speechflow-node-a2a-vad.ts +26 -25
  140. package/speechflow-cli/src/speechflow-node-a2a-wav.ts +2 -7
  141. package/speechflow-cli/src/speechflow-node-a2t-amazon.ts +16 -16
  142. package/speechflow-cli/src/speechflow-node-a2t-deepgram.ts +16 -16
  143. package/speechflow-cli/src/speechflow-node-a2t-openai.ts +15 -21
  144. package/speechflow-cli/src/speechflow-node-t2a-amazon.ts +9 -15
  145. package/speechflow-cli/src/speechflow-node-t2a-elevenlabs.ts +13 -18
  146. package/speechflow-cli/src/speechflow-node-t2a-kokoro.ts +4 -10
  147. package/speechflow-cli/src/speechflow-node-t2t-amazon.ts +3 -3
  148. package/speechflow-cli/src/speechflow-node-t2t-deepl.ts +2 -2
  149. package/speechflow-cli/src/speechflow-node-t2t-format.ts +3 -2
  150. package/speechflow-cli/src/speechflow-node-t2t-google.ts +2 -2
  151. package/speechflow-cli/src/speechflow-node-t2t-modify.ts +6 -6
  152. package/speechflow-cli/src/speechflow-node-t2t-ollama.ts +3 -3
  153. package/speechflow-cli/src/speechflow-node-t2t-openai.ts +2 -2
  154. package/speechflow-cli/src/speechflow-node-t2t-sentence.ts +13 -13
  155. package/speechflow-cli/src/speechflow-node-t2t-subtitle.ts +12 -16
  156. package/speechflow-cli/src/speechflow-node-t2t-transformers.ts +2 -2
  157. package/speechflow-cli/src/speechflow-node-x2x-filter.ts +2 -2
  158. package/speechflow-cli/src/speechflow-node-x2x-trace.ts +10 -9
  159. package/speechflow-cli/src/speechflow-node-xio-device.ts +7 -5
  160. package/speechflow-cli/src/speechflow-node-xio-file.ts +20 -19
  161. package/speechflow-cli/src/speechflow-node-xio-mqtt.ts +14 -14
  162. package/speechflow-cli/src/speechflow-node-xio-websocket.ts +11 -11
  163. package/speechflow-cli/src/speechflow-node.ts +6 -6
  164. package/speechflow-cli/src/speechflow-util-audio.ts +31 -1
  165. package/speechflow-cli/src/speechflow-util-error.ts +9 -3
  166. package/speechflow-cli/src/speechflow-util-stream.ts +31 -6
  167. package/speechflow-ui-db/dst/index.js +25 -25
  168. package/speechflow-ui-db/package.json +11 -11
  169. package/speechflow-ui-db/src/app.vue +14 -5
  170. package/speechflow-ui-st/dst/index.js +460 -25
  171. package/speechflow-ui-st/package.json +13 -13
  172. package/speechflow-ui-st/src/app.vue +8 -3
  173. package/speechflow-cli/dst/speechflow-util-webaudio-wt.js +0 -124
  174. package/speechflow-cli/dst/speechflow-util-webaudio-wt.js.map +0 -1
  175. package/speechflow-cli/dst/speechflow-util-webaudio.d.ts +0 -13
  176. package/speechflow-cli/dst/speechflow-util-webaudio.js +0 -137
  177. package/speechflow-cli/dst/speechflow-util-webaudio.js.map +0 -1
  178. /package/speechflow-cli/dst/{speechflow-util-webaudio-wt.d.ts → speechflow-node-a2a-pitch2-wt.d.ts} +0 -0
@@ -14,22 +14,22 @@
14
14
  "url": "http://engelschall.com"
15
15
  },
16
16
  "dependencies": {
17
- "vue": "3.5.21",
18
- "vue3-spinners": "1.3.1",
17
+ "vue": "3.5.22",
18
+ "vue3-spinners": "1.3.3",
19
19
  "luxon": "3.7.2",
20
20
  "@opensumi/reconnecting-websocket": "4.4.0",
21
- "axios": "1.12.1",
21
+ "axios": "1.12.2",
22
22
  "typopro-web": "4.2.7",
23
23
  "@fortawesome/fontawesome-free": "7.0.1",
24
24
  "patch-package": "8.0.0",
25
- "@rse/stx": "1.1.1",
26
- "animejs": "4.1.3"
25
+ "@rse/stx": "1.1.2",
26
+ "animejs": "4.1.4"
27
27
  },
28
28
  "devDependencies": {
29
- "vite": "7.1.5",
30
- "typescript-eslint": "8.43.0",
31
- "@typescript-eslint/eslint-plugin": "8.43.0",
32
- "@typescript-eslint/parser": "8.43.0",
29
+ "vite": "7.1.7",
30
+ "typescript-eslint": "8.44.1",
31
+ "@typescript-eslint/eslint-plugin": "8.44.1",
32
+ "@typescript-eslint/parser": "8.44.1",
33
33
  "@vitejs/plugin-vue": "6.0.1",
34
34
  "@rollup/plugin-yaml": "4.1.2",
35
35
  "vite-plugin-node-polyfills": "0.24.0",
@@ -39,11 +39,11 @@
39
39
 
40
40
  "@vue/eslint-config-typescript": "14.6.0",
41
41
  "vue-eslint-parser": "10.2.0",
42
- "eslint": "9.35.0",
43
- "@eslint/js": "9.35.0",
42
+ "eslint": "9.36.0",
43
+ "@eslint/js": "9.36.0",
44
44
  "neostandard": "0.12.2",
45
45
  "eslint-plugin-import": "2.32.0",
46
- "eslint-plugin-vue": "10.4.0",
46
+ "eslint-plugin-vue": "10.5.0",
47
47
 
48
48
  "htmllint": "0.8.0",
49
49
  "htmllint-cli": "0.0.7",
@@ -59,7 +59,7 @@
59
59
  "postcss-html": "1.8.0",
60
60
  "stylus": "0.64.0",
61
61
  "typescript": "5.9.2",
62
- "vue-tsc": "3.0.7",
62
+ "vue-tsc": "3.0.8",
63
63
  "delay-cli": "2.0.0",
64
64
  "cross-env": "10.0.0",
65
65
  "serve": "14.2.5",
@@ -117,8 +117,10 @@ export default defineComponent({
117
117
  cleanupIntervalId: null as ReturnType<typeof setInterval> | null
118
118
  }),
119
119
  async mounted () {
120
- /* determine API URL */
121
- const url = new URL("/api", document.location.href).toString()
120
+ /* determine API URLs */
121
+ const urlHTTP = new URL("/api", document.location.href)
122
+ const urlWS = new URL("/api", document.location.href)
123
+ urlWS.protocol = (urlHTTP.protocol === "https:" ? "wss:" : "ws:")
122
124
 
123
125
  /* optically remove outdated text chunks */
124
126
  this.cleanupIntervalId = setInterval(() => {
@@ -146,13 +148,16 @@ export default defineComponent({
146
148
  }, 500)
147
149
 
148
150
  /* connect to WebSocket API for receiving dashboard information */
149
- const ws = new ReconnectingWebSocket(url, [], {
151
+ const ws = new ReconnectingWebSocket(urlWS.toString(), [], {
150
152
  reconnectionDelayGrowFactor: 1.3,
151
153
  maxReconnectionDelay: 4000,
152
154
  minReconnectionDelay: 1000,
153
155
  connectionTimeout: 4000,
154
156
  minUptime: 5000
155
157
  })
158
+ ws.addEventListener("error", (ev) => {
159
+ this.log("ERROR", `WebSocket error: ${ev.message}`)
160
+ })
156
161
 
157
162
  /* track connection open/close */
158
163
  ws.addEventListener("open", (ev) => {
@@ -1,124 +0,0 @@
1
- "use strict";
2
- /*
3
- ** SpeechFlow - Speech Processing Flow Graph
4
- ** Copyright (c) 2024-2025 Dr. Ralf S. Engelschall <rse@engelschall.com>
5
- ** Licensed under GPL 3.0 <https://spdx.org/licenses/GPL-3.0-only>
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- /* audio source node */
9
- class AudioSourceProcessor extends AudioWorkletProcessor {
10
- /* internal state */
11
- pendingData = [];
12
- currentChunk = null;
13
- currentOffset = 0;
14
- /* node construction */
15
- constructor() {
16
- super();
17
- /* receive input chunks */
18
- this.port.addEventListener("message", (event) => {
19
- const { type, chunkId } = event.data;
20
- if (type === "input-chunk")
21
- this.pendingData.push({ data: event.data.data.pcmData, chunkId });
22
- });
23
- }
24
- /* process audio frame */
25
- process(inputs, /* unused */ outputs, parameters /* unused */) {
26
- /* determine output */
27
- const output = outputs[0];
28
- if (!output || output.length === 0)
29
- return true;
30
- const frameCount = output[0].length;
31
- const channelCount = output.length;
32
- /* get current chunk if we don't have one */
33
- if (this.currentChunk === null && this.pendingData.length > 0) {
34
- this.currentChunk = this.pendingData.shift();
35
- this.currentOffset = 0;
36
- /* signal chunk start */
37
- const message = {
38
- type: "chunk-started",
39
- chunkId: this.currentChunk.chunkId
40
- };
41
- this.port.postMessage(message);
42
- }
43
- /* process input */
44
- if (this.currentChunk) {
45
- /* output current chunk */
46
- const samplesPerChannel = this.currentChunk.data.length / channelCount;
47
- const remainingFrames = samplesPerChannel - this.currentOffset;
48
- const framesToProcess = Math.min(frameCount, remainingFrames);
49
- /* copy data from current chunk (interleaved to planar) */
50
- for (let frame = 0; frame < framesToProcess; frame++) {
51
- for (let ch = 0; ch < channelCount; ch++) {
52
- const interleavedIndex = (this.currentOffset + frame) * channelCount + ch;
53
- output[ch][frame] = this.currentChunk.data[interleavedIndex] ?? 0;
54
- }
55
- }
56
- /* zero-pad remaining output if needed */
57
- for (let frame = framesToProcess; frame < frameCount; frame++)
58
- for (let ch = 0; ch < channelCount; ch++)
59
- output[ch][frame] = 0;
60
- /* check if current chunk is finished */
61
- this.currentOffset += framesToProcess;
62
- if (this.currentOffset >= samplesPerChannel) {
63
- this.currentChunk = null;
64
- this.currentOffset = 0;
65
- }
66
- }
67
- else {
68
- /* output silence when no input */
69
- for (let ch = 0; ch < channelCount; ch++)
70
- output[ch].fill(0);
71
- }
72
- return true;
73
- }
74
- }
75
- /* audio capture node */
76
- class AudioCaptureProcessor extends AudioWorkletProcessor {
77
- /* internal state */
78
- activeCaptures = new Map();
79
- /* node construction */
80
- constructor() {
81
- super();
82
- /* receive start of capturing command */
83
- this.port.addEventListener("message", (event) => {
84
- const { type, chunkId } = event.data;
85
- if (type === "start-capture") {
86
- this.activeCaptures.set(chunkId, {
87
- data: [],
88
- expectedSamples: event.data.expectedSamples
89
- });
90
- }
91
- });
92
- }
93
- /* process audio frame */
94
- process(inputs, outputs, /* unused */ parameters /* unused */) {
95
- /* determine input */
96
- const input = inputs[0];
97
- if (!input || input.length === 0 || this.activeCaptures.size === 0)
98
- return true;
99
- const frameCount = input[0].length;
100
- const channelCount = input.length;
101
- /* iterate over all active captures */
102
- for (const [chunkId, capture] of this.activeCaptures) {
103
- /* convert planar to interleaved */
104
- for (let frame = 0; frame < frameCount; frame++)
105
- for (let ch = 0; ch < channelCount; ch++)
106
- capture.data.push(input[ch][frame]);
107
- /* send back captured data */
108
- if (capture.data.length >= capture.expectedSamples) {
109
- const message = {
110
- type: "capture-complete",
111
- chunkId,
112
- data: capture.data.slice(0, capture.expectedSamples)
113
- };
114
- this.port.postMessage(message);
115
- this.activeCaptures.delete(chunkId);
116
- }
117
- }
118
- return true;
119
- }
120
- }
121
- /* register the new audio nodes */
122
- registerProcessor("source", AudioSourceProcessor);
123
- registerProcessor("capture", AudioCaptureProcessor);
124
- //# sourceMappingURL=speechflow-util-webaudio-wt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"speechflow-util-webaudio-wt.js","sourceRoot":"","sources":["../src/speechflow-util-webaudio-wt.ts"],"names":[],"mappings":";AAAA;;;;EAIE;;AA4BF,yBAAyB;AACzB,MAAM,oBAAqB,SAAQ,qBAAqB;IACpD,sBAAsB;IACd,WAAW,GAAiB,EAAE,CAAA;IAC9B,YAAY,GAAqB,IAAI,CAAA;IACrC,aAAa,GAAG,CAAC,CAAA;IAEzB,yBAAyB;IACzB;QACI,KAAK,EAAE,CAAA;QAEP,4BAA4B;QAC5B,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,KAAmC,EAAE,EAAE;YAC1E,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,IAAI,CAAA;YACpC,IAAI,IAAI,KAAK,aAAa;gBACtB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,CAAA;QACzE,CAAC,CAAC,CAAA;IACN,CAAC;IAED,2BAA2B;IAC3B,OAAO,CACH,MAA4B,EAAa,YAAY,CACrD,OAA4B,EAC5B,UAAwC,CAAC,YAAY;QAErD,wBAAwB;QACxB,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;QACzB,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAC9B,OAAO,IAAI,CAAA;QACf,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;QACnC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;QAElC,8CAA8C;QAC9C,IAAI,IAAI,C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iBAAiB,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAA"}
@@ -1,13 +0,0 @@
1
- import { AudioContext, AudioWorkletNode } from "node-web-audio-api";
2
- export declare class WebAudio {
3
- sampleRate: number;
4
- channels: number;
5
- audioContext: AudioContext;
6
- sourceNode: AudioWorkletNode | null;
7
- captureNode: AudioWorkletNode | null;
8
- private pendingPromises;
9
- constructor(sampleRate: number, channels: number);
10
- setup(): Promise<void>;
11
- process(int16Array: Int16Array): Promise<Int16Array>;
12
- destroy(): Promise<void>;
13
- }
@@ -1,137 +0,0 @@
1
- "use strict";
2
- /*
3
- ** SpeechFlow - Speech Processing Flow Graph
4
- ** Copyright (c) 2024-2025 Dr. Ralf S. Engelschall <rse@engelschall.com>
5
- ** Licensed under GPL 3.0 <https://spdx.org/licenses/GPL-3.0-only>
6
- */
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.WebAudio = void 0;
12
- /* standard dependencies */
13
- const node_path_1 = __importDefault(require("node:path"));
14
- /* external dependencies */
15
- const node_web_audio_api_1 = require("node-web-audio-api");
16
- class WebAudio {
17
- sampleRate;
18
- channels;
19
- /* internal state */
20
- audioContext;
21
- sourceNode = null;
22
- captureNode = null;
23
- pendingPromises = new Map();
24
- /* construct object */
25
- constructor(sampleRate, channels) {
26
- this.sampleRate = sampleRate;
27
- this.channels = channels;
28
- /* create new audio context */
29
- this.audioContext = new node_web_audio_api_1.AudioContext({
30
- sampleRate,
31
- latencyHint: "interactive"
32
- });
33
- }
34
- /* setup object */
35
- async setup() {
36
- /* ensure audio context is not suspended */
37
- if (this.audioContext.state === "suspended")
38
- await this.audioContext.resume();
39
- /* add audio worklet module */
40
- const url = node_path_1.default.resolve(__dirname, "speechflow-util-webaudio-wt.js");
41
- await this.audioContext.audioWorklet.addModule(url);
42
- /* create source node */
43
- this.sourceNode = new node_web_audio_api_1.AudioWorkletNode(this.audioContext, "source", {
44
- numberOfInputs: 0,
45
- numberOfOutputs: 1,
46
- outputChannelCount: [this.channels]
47
- });
48
- /* create capture node */
49
- this.captureNode = new node_web_audio_api_1.AudioWorkletNode(this.audioContext, "capture", {
50
- numberOfInputs: 1,
51
- numberOfOutputs: 0
52
- });
53
- this.captureNode.port.addEventListener("message", (event) => {
54
- const { type, chunkId, data } = event.data ?? {};
55
- if (type === "capture-complete") {
56
- const promise = this.pendingPromises.get(chunkId);
57
- if (promise) {
58
- clearTimeout(promise.timeout);
59
- this.pendingPromises.delete(chunkId);
60
- const int16Data = new Int16Array(data.length);
61
- for (let i = 0; i < data.length; i++)
62
- int16Data[i] = Math.max(-32768, Math.min(32767, Math.round(data[i] * 32767)));
63
- promise.resolve(int16Data);
64
- }
65
- }
66
- });
67
- /* start ports */
68
- this.sourceNode.port.start();
69
- this.captureNode.port.start();
70
- }
71
- /* process single audio chunk */
72
- async process(int16Array) {
73
- const chunkId = `chunk_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`;
74
- return new Promise((resolve, reject) => {
75
- const timeout = setTimeout(() => {
76
- this.pendingPromises.delete(chunkId);
77
- reject(new Error("processing timeout"));
78
- }, (int16Array.length / this.audioContext.sampleRate) * 1000 + 250);
79
- if (this.captureNode !== null)
80
- this.pendingPromises.set(chunkId, { resolve, reject, timeout });
81
- try {
82
- const float32Data = new Float32Array(int16Array.length);
83
- for (let i = 0; i < int16Array.length; i++)
84
- float32Data[i] = int16Array[i] / 32768.0;
85
- /* start capture first */
86
- if (this.captureNode !== null) {
87
- this.captureNode?.port.postMessage({
88
- type: "start-capture",
89
- chunkId,
90
- expectedSamples: int16Array.length
91
- });
92
- }
93
- /* small delay to ensure capture is ready before sending data */
94
- setTimeout(() => {
95
- /* send input to source node */
96
- this.sourceNode?.port.postMessage({
97
- type: "input-chunk",
98
- chunkId,
99
- data: { pcmData: float32Data, channels: this.channels }
100
- }, [float32Data.buffer]);
101
- }, 5);
102
- }
103
- catch (error) {
104
- clearTimeout(timeout);
105
- if (this.captureNode !== null)
106
- this.pendingPromises.delete(chunkId);
107
- reject(new Error(`failed to process chunk: ${error}`));
108
- }
109
- });
110
- }
111
- async destroy() {
112
- /* reject all pending promises */
113
- try {
114
- this.pendingPromises.forEach(({ reject, timeout }) => {
115
- clearTimeout(timeout);
116
- reject(new Error("WebAudio destroyed"));
117
- });
118
- this.pendingPromises.clear();
119
- }
120
- catch (_err) {
121
- /* ignored - cleanup during shutdown */
122
- }
123
- /* disconnect nodes */
124
- if (this.sourceNode !== null) {
125
- this.sourceNode.disconnect();
126
- this.sourceNode = null;
127
- }
128
- if (this.captureNode !== null) {
129
- this.captureNode.disconnect();
130
- this.captureNode = null;
131
- }
132
- /* stop context */
133
- await this.audioContext.close();
134
- }
135
- }
136
- exports.WebAudio = WebAudio;
137
- //# sourceMappingURL=speechflow-util-webaudio.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"speechflow-util-webaudio.js","sourceRoot":"","sources":["../src/speechflow-util-webaudio.ts"],"names":[],"mappings":";AAAA;;;;EAIE;;;;;;AAEF,6BAA6B;AAC7B,0DAA4B;AAE5B,6BAA6B;AAC7B,2DAAmE;AAEnE,MAAa,QAAQ;IAaN;IACA;IAbX,sBAAsB;IACf,YAAY,CAAc;IAC1B,UAAU,GAA8B,IAAI,CAAA;IAC5C,WAAW,GAA6B,IAAI,CAAA;IAC3C,eAAe,GAAG,IAAI,GAAG,EAI7B,CAAA;IAEJ,wBAAwB;IACxB,YACW,UAAkB,EAClB,QAAgB;QADhB,eAAU,GAAV,UAAU,CAAQ;QAClB,aAAQ,GAAR,QAAQ,CAAQ;QAEvB,gCAAgC;QAChC,IAAI,CAAC,YAAY,GAAG,IAAI,iCAAY,CAAC;YACjC,UAAU;YACV,WAAW,EAAE,aAAa;SAC7B,CAAC,CAAA;IACN,CAAC;IAED,oBAAoB;IACb,KAAK,CAAC,KAAK;QACd,6CAA6C;QAC7C,IAAI,IAAI,CAAC,YAAY,CAA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