speechflow 1.3.0 → 1.3.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
  ChangeLog
3
3
  =========
4
4
 
5
+ 1.3.1 (2025-07-31)
6
+ ------------------
7
+
8
+ - BUGFIX: wait a longer time for "deepgram" node to open
9
+ - IMPROVEMENT: keep word information as meta information in "deepgram" node
10
+ - IMPROVEMENT: support words in subtitle generation in "subtitle" node
11
+ - BUGFIX: fix WebVTT format generation in "subtitle" node
12
+ - UPGRADE: upgrade NPM dependencies
13
+
5
14
  1.3.0 (2025-07-26)
6
15
  ------------------
7
16
 
package/README.md CHANGED
@@ -56,14 +56,14 @@ ships as an installable package for the Node Package Manager (NPM).
56
56
  Installation
57
57
  ------------
58
58
 
59
- ```
59
+ ```sh
60
60
  $ npm install -g speechflow
61
61
  ```
62
62
 
63
63
  Usage
64
64
  -----
65
65
 
66
- ```
66
+ ```sh
67
67
  $ speechflow
68
68
  [-h|--help]
69
69
  [-V|--version]
@@ -251,12 +251,19 @@ First a short overview of the available processing nodes:
251
251
  **filter**,
252
252
  **trace**.
253
253
 
254
- ### Input/Output Nodes:
254
+ ### Input/Output Nodes
255
+
256
+ The following nodes are for external I/O, i.e, to read/write from
257
+ external files, devices and network services.
255
258
 
256
259
  - Node: **file**<br/>
257
260
  Purpose: **File and StdIO source/sink**<br/>
258
261
  Example: `file(path: "capture.pcm", mode: "w", type: "audio")`
259
262
 
263
+ > This node allows the reading/writing from/to files or from StdIO. It
264
+ > is intended to be used as source and sink nodes in batch processing,
265
+ > and as sing nodes in real-time processing.
266
+
260
267
  | Port | Payload |
261
268
  | ------- | ----------- |
262
269
  | input | text, audio |
@@ -274,6 +281,10 @@ First a short overview of the available processing nodes:
274
281
  Purpose: **Microphone/speaker device source/sink**<br/>
275
282
  Example: `device(device: "wasapi:VoiceMeeter Out B1", mode: "r")`
276
283
 
284
+ > This node allows the reading/writing from/to audio devices. It is
285
+ > intended to be used as source nodes for microphone devices and as
286
+ > sink nodes for speaker devices.
287
+
277
288
  | Port | Payload |
278
289
  | ------- | ----------- |
279
290
  | input | audio |
@@ -290,6 +301,11 @@ First a short overview of the available processing nodes:
290
301
  Example: `websocket(connect: "ws://127.0.0.1:12345", type: "text")`
291
302
  Notice: this node requires a peer WebSocket service!
292
303
 
304
+ > This node allows reading/writing from/to WebSocket network services.
305
+ > It is primarily intended to be used for sending out the text of
306
+ > subtitles, but can be also used for receiving the text to be
307
+ > processed.
308
+
293
309
  | Port | Payload |
294
310
  | ------- | ----------- |
295
311
  | input | text, audio |
@@ -306,6 +322,10 @@ First a short overview of the available processing nodes:
306
322
  Example: `mqtt(url: "mqtt://127.0.0.1:1883", username: "foo", password: "bar", topic: "quux")`
307
323
  Notice: this node requires a peer MQTT broker!
308
324
 
325
+ > This node allows reading/writing from/to MQTT broker topics. It is
326
+ > primarily intended to be used for sending out the text of subtitles,
327
+ > but can be also used for receiving the text to be processed.
328
+
309
329
  | Port | Payload |
310
330
  | ------- | ----------- |
311
331
  | input | text |
@@ -313,17 +333,23 @@ First a short overview of the available processing nodes:
313
333
 
314
334
  | Parameter | Position | Default | Requirement |
315
335
  | ------------ | --------- | -------- | --------------------- |
316
- | **url** | 0 | *none* | `/^(?:\|(?:ws|mqtt):\/\/(.+?):(\d+))$/` |
336
+ | **url** | 0 | *none* | `/^(?:\|(?:ws\|mqtt):\/\/(.+?):(\d+))$/` |
317
337
  | **username** | 1 | *none* | `/^.+$/` |
318
338
  | **password** | 2 | *none* | `/^.+$/` |
319
339
  | **topic** | 3 | *none* | `/^.+$/` |
320
340
 
321
- ### Audio-to-Audio Nodes:
341
+ ### Audio-to-Audio Nodes
342
+
343
+ The following nodes process audio chunks only.
322
344
 
323
345
  - Node: **ffmpeg**<br/>
324
346
  Purpose: **FFmpeg audio format conversion**<br/>
325
347
  Example: `ffmpeg(src: "pcm", dst: "mp3")`
326
348
 
349
+ > This node allows converting between audio formats. It is primarily
350
+ > intended to support the reading/writing of external MP3 and Opus
351
+ > format files, although SpeechFlow internally uses PCM format only.
352
+
327
353
  | Port | Payload |
328
354
  | ------- | ----------- |
329
355
  | input | audio |
@@ -338,6 +364,10 @@ First a short overview of the available processing nodes:
338
364
  Purpose: **WAV audio format conversion**<br/>
339
365
  Example: `wav(mode: "encode")`
340
366
 
367
+ > This node allows converting between PCM and WAV audio formats. It is
368
+ > primarily intended to support the reading/writing of external WAV
369
+ > format files, although SpeechFlow internally uses PCM format only.
370
+
341
371
  | Port | Payload |
342
372
  | ------- | ----------- |
343
373
  | input | audio |
@@ -352,6 +382,9 @@ First a short overview of the available processing nodes:
352
382
  Example: `mute()`
353
383
  Notice: this node has to be externally controlled via REST/WebSockets!
354
384
 
385
+ > This node allows muting the audio stream by either silencing or even
386
+ > unplugging. It has to be externally controlled via REST/WebSocket (see below).
387
+
355
388
  | Port | Payload |
356
389
  | ------- | ----------- |
357
390
  | input | audio |
@@ -364,6 +397,10 @@ First a short overview of the available processing nodes:
364
397
  Purpose: **Loudness metering node**<br/>
365
398
  Example: `meter(250)`
366
399
 
400
+ > This node allows measuring the loudness of the audio stream. The
401
+ > results are emitted to both the logfile of **SpeechFlow** and the
402
+ > WebSockets API (see below).
403
+
367
404
  | Port | Payload |
368
405
  | ------- | ----------- |
369
406
  | input | audio |
@@ -377,6 +414,10 @@ First a short overview of the available processing nodes:
377
414
  Purpose: **Voice Audio Detection (VAD) node**<br/>
378
415
  Example: `vad()`
379
416
 
417
+ > This node perform Voice Audio Detection (VAD), i.e., it detects
418
+ > voice in the audio stream and if not detected either silences or
419
+ > unplugs the audio stream.
420
+
380
421
  | Port | Payload |
381
422
  | ------- | ----------- |
382
423
  | input | audio |
@@ -384,7 +425,7 @@ First a short overview of the available processing nodes:
384
425
 
385
426
  | Parameter | Position | Default | Requirement |
386
427
  | ----------- | --------- | -------- | ------------------------ |
387
- | **mode** | *none* | "unplugged" | `/^(?:silenced|unplugged)$/` |
428
+ | **mode** | *none* | "unplugged" | `/^(?:silenced\|unplugged)$/` |
388
429
  | **posSpeechThreshold** | *none* | 0.50 | *none* |
389
430
  | **negSpeechThreshold** | *none* | 0.35 | *none* |
390
431
  | **minSpeechFrames** | *none* | 2 | *none* |
@@ -396,6 +437,10 @@ First a short overview of the available processing nodes:
396
437
  Purpose: **Gender Detection node**<br/>
397
438
  Example: `gender()`
398
439
 
440
+ > This node performs gender detection on the audio stream. It
441
+ > annotates the audio chunks with `gender=male` or `gender=female`
442
+ > meta information. Use this meta information with the "filter" node.
443
+
399
444
  | Port | Payload |
400
445
  | ------- | ----------- |
401
446
  | input | audio |
@@ -405,13 +450,19 @@ First a short overview of the available processing nodes:
405
450
  | ----------- | --------- | -------- | ------------------------ |
406
451
  | **window** | 0 | 500 | *none* |
407
452
 
408
- ### Audio-to-Text Nodes:
453
+ ### Audio-to-Text Nodes
454
+
455
+ The following nodes convert audio to text chunks.
409
456
 
410
457
  - Node: **deepgram**<br/>
411
458
  Purpose: **Deepgram Speech-to-Text conversion**<br/>
412
459
  Example: `deepgram(language: "de")`<br/>
413
460
  Notice: this node requires an API key!
414
461
 
462
+ > This node performs Speech-to-Text (S2T) conversion, i.e., it
463
+ > recognizes speech in the input audio stream and outputs a
464
+ > corresponding text stream.
465
+
415
466
  | Port | Payload |
416
467
  | ------- | ----------- |
417
468
  | input | audio |
@@ -425,13 +476,17 @@ First a short overview of the available processing nodes:
425
476
  | **version** | 1 | "latest" | *none* |
426
477
  | **language** | 2 | "multi" | *none* |
427
478
 
428
- ### Text-to-Text Nodes:
479
+ ### Text-to-Text Nodes
480
+
481
+ The following nodes process text chunks only.
429
482
 
430
483
  - Node: **deepl**<br/>
431
484
  Purpose: **DeepL Text-to-Text translation**<br/>
432
485
  Example: `deepl(src: "de", dst: "en")`<br/>
433
486
  Notice: this node requires an API key!
434
487
 
488
+ > This node performs translation between English and German languages.
489
+
435
490
  | Port | Payload |
436
491
  | ------- | ----------- |
437
492
  | input | text |
@@ -448,6 +503,12 @@ First a short overview of the available processing nodes:
448
503
  Example: `openai(src: "de", dst: "en")`<br/>
449
504
  Notice: this node requires an OpenAI API key!
450
505
 
506
+ > This node performs translation between English and German languages
507
+ > in the text stream or (if the source and destination language is
508
+ > the same) spellchecking of English or German languages in the text
509
+ > stream. It is based on the remote OpenAI cloud AI service and uses
510
+ > the GPT-4o-mini LLM.
511
+
451
512
  | Port | Payload |
452
513
  | ------- | ----------- |
453
514
  | input | text |
@@ -464,7 +525,13 @@ First a short overview of the available processing nodes:
464
525
  - Node: **ollama**<br/>
465
526
  Purpose: **Ollama/Gemma Text-to-Text translation and spelling correction**<br/>
466
527
  Example: `ollama(src: "de", dst: "en")`<br/>
467
- Notice: this node requires the Ollama API!
528
+ Notice: this node requires Ollama to be installed!
529
+
530
+ > This node performs translation between English and German languages
531
+ > in the text stream or (if the source and destination language is
532
+ > the same) spellchecking of English or German languages in the text
533
+ > stream. It is based on the local Ollama AI service and uses the
534
+ > Google Gemma 3 LLM.
468
535
 
469
536
  | Port | Payload |
470
537
  | ------- | ----------- |
@@ -482,6 +549,9 @@ First a short overview of the available processing nodes:
482
549
  Purpose: **Transformers Text-to-Text translation**<br/>
483
550
  Example: `transformers(src: "de", dst: "en")`<br/>
484
551
 
552
+ > This node performs translation between English and German languages
553
+ > in the text stream. It is based on local OPUS or SmolLM3 LLMs.
554
+
485
555
  | Port | Payload |
486
556
  | ------- | ----------- |
487
557
  | input | text |
@@ -489,7 +559,7 @@ First a short overview of the available processing nodes:
489
559
 
490
560
  | Parameter | Position | Default | Requirement |
491
561
  | ------------ | --------- | -------- | ---------------- |
492
- | **model** | *none* | "OPUS" | `/^(?:OPUS|SmolLM3)$/` |
562
+ | **model** | *none* | "OPUS" | `/^(?:OPUS\|SmolLM3)$/` |
493
563
  | **src** | 0 | "de" | `/^(?:de\|en)$/` |
494
564
  | **dst** | 1 | "en" | `/^(?:de\|en)$/` |
495
565
 
@@ -497,6 +567,11 @@ First a short overview of the available processing nodes:
497
567
  Purpose: **sentence splitting/merging**<br/>
498
568
  Example: `sentence()`<br/>
499
569
 
570
+ > This node allows you to ensure that a text stream is split or merged
571
+ > into complete sentences. It is primarily intended to be used after
572
+ > the "deepgram" node and before "deepl" or "elevenlabs" nodes in
573
+ > order to improve overall quality.
574
+
500
575
  | Port | Payload |
501
576
  | ------- | ----------- |
502
577
  | input | text |
@@ -509,6 +584,9 @@ First a short overview of the available processing nodes:
509
584
  Purpose: **SRT/VTT Subtitle Generation**<br/>
510
585
  Example: `subtitle(format: "srt")`<br/>
511
586
 
587
+ > This node generates subtitles from the text stream (and its embedded
588
+ > timestamps) in the formats SRT (SubRip) or VTT (WebVTT).
589
+
512
590
  | Port | Payload |
513
591
  | ------- | ----------- |
514
592
  | input | text |
@@ -517,11 +595,16 @@ First a short overview of the available processing nodes:
517
595
  | Parameter | Position | Default | Requirement |
518
596
  | ------------ | --------- | -------- | ------------------ |
519
597
  | **format** | *none* | "srt" | /^(?:srt\|vtt)$/ |
598
+ | **words** | *none* | false | *none* |
520
599
 
521
600
  - Node: **format**<br/>
522
601
  Purpose: **text paragraph formatting**<br/>
523
602
  Example: `format(width: 80)`<br/>
524
603
 
604
+ > This node formats the text stream into lines no longer than a
605
+ > certain width. It is primarily intended for use before writing text
606
+ > chunks to files.
607
+
525
608
  | Port | Payload |
526
609
  | ------- | ----------- |
527
610
  | input | text |
@@ -531,29 +614,43 @@ First a short overview of the available processing nodes:
531
614
  | ------------ | --------- | -------- | --------------------- |
532
615
  | **width** | 0 | 80 | *none* |
533
616
 
534
- ### Text-to-Audio Nodes:
617
+ ### Text-to-Audio Nodes
618
+
619
+ The following nodes convert text chunks to audio chunks.
535
620
 
536
621
  - Node: **elevenlabs**<br/>
537
622
  Purpose: **ElevenLabs Text-to-Speech conversion**<br/>
538
623
  Example: `elevenlabs(language: "en")`<br/>
539
- Notice: this node requires an API key!
624
+ Notice: this node requires an ElevenLabs API key!
625
+
626
+ > This node perform Text-to-Speech (T2S) conversion, i.e., it converts
627
+ > the input text stream into an output audio stream. It is intended to
628
+ > generate speech.
540
629
 
541
630
  | Port | Payload |
542
631
  | ------- | ----------- |
543
632
  | input | text |
544
633
  | output | audio |
545
634
 
546
- | Parameter | Position | Default | Requirement |
547
- | ------------ | --------- | -------- | ------------------ |
548
- | **key** | *none* | env.SPEECHFLOW\_ELEVENLABS\_KEY | *none* |
549
- | **voice** | 0 | "Brian" | *none* |
550
- | **language** | 1 | "de" | *none* |
635
+ | Parameter | Position | Default | Requirement |
636
+ | -------------- | --------- | --------- | ------------------ |
637
+ | **key** | *none* | env.SPEECHFLOW\_ELEVENLABS\_KEY | *none* |
638
+ | **voice** | 0 | "Brian" | `/^(?:Brittney\|Cassidy\|Leonie\|Mark\|Brian)$/` |
639
+ | **language** | 1 | "de" | `/^(?:de\|en)$/` |
640
+ | **speed** | 2 | 1.00 | `n >= 0`7 && n <= 1.2` |
641
+ | **stability** | 3 | 0.5 | `n >= 0.0 && n <= 1.0` |
642
+ | **similarity** | 4 | 0.75 | `n >= 0.0 && n <= 1.0` |
643
+ | **optimize** | 5 | "latency" | `/^(?:latency\|quality)$/` |
551
644
 
552
645
  - Node: **kokoro**<br/>
553
646
  Purpose: **Kokoro Text-to-Speech conversion**<br/>
554
647
  Example: `kokoro(language: "en")`<br/>
555
648
  Notice: this currently support English language only!
556
649
 
650
+ > This node perform Text-to-Speech (T2S) conversion, i.e., it converts
651
+ > the input text stream into an output audio stream. It is intended to
652
+ > generate speech.
653
+
557
654
  | Port | Payload |
558
655
  | ------- | ----------- |
559
656
  | input | text |
@@ -561,16 +658,23 @@ First a short overview of the available processing nodes:
561
658
 
562
659
  | Parameter | Position | Default | Requirement |
563
660
  | ------------ | --------- | -------- | ----------- |
564
- | **voice** | 0 | "Aoede" | `/^(?:Aoede|Heart|Puck|Fenrir)$/` |
661
+ | **voice** | 0 | "Aoede" | `/^(?:Aoede\|Heart\|Puck\|Fenrir)$/` |
565
662
  | **language** | 1 | "en" | `/^en$/` |
566
663
  | **speed** | 2 | 1.25 | 1.0...1.30 |
567
664
 
568
- ### Any-to-Any Nodes:
665
+ ### Any-to-Any Nodes
666
+
667
+ The following nodes process any type of chunk, i.e., both audio and text chunks.
569
668
 
570
669
  - Node: **filter**<br/>
571
670
  Purpose: **meta information based filter**<br/>
572
671
  Example: `filter(type: "audio", var: "meta:gender", op: "==", val: "male")`<br/>
573
672
 
673
+ > This node allows you to filter nodes based on certain criteria. It
674
+ > is primarily intended to be used in conjunction with the "gender"
675
+ > node and in front of the `elevenlabs` or `kokoro` nodes in order to
676
+ > translate with a corresponding voice.
677
+
574
678
  | Port | Payload |
575
679
  | ------- | ----------- |
576
680
  | input | text, audio |
@@ -580,14 +684,18 @@ First a short overview of the available processing nodes:
580
684
  | ------------ | --------- | -------- | --------------------- |
581
685
  | **type** | 0 | "audio" | `/^(?:audio\|text)$/` |
582
686
  | **name** | 1 | "filter" | `/^.+$/` |
583
- | **var** | 2 | "" | `/^(?:meta:.+|payload:(?:length|text)|time:(?:start|end))$/` |
584
- | **op** | 3 | "==" | `/^(?:<|<=|==|!=|~~|!~|>=|>)$/` |
687
+ | **var** | 2 | "" | `/^(?:meta:.+\|payload:(?:length\|text)\|time:(?:start\|end))$/` |
688
+ | **op** | 3 | "==" | `/^(?:<\|<=\|==\|!=\|~~\|!~\|>=\|>)$/` |
585
689
  | **val** | 4 | "" | `/^.*$/` |
586
690
 
587
691
  - Node: **trace**<br/>
588
692
  Purpose: **data flow tracing**<br/>
589
693
  Example: `trace(type: "audio")`<br/>
590
694
 
695
+ > This node allows you to trace the audio and text chunk flow through
696
+ > the **SpeechFlow** graph. It just passes through its chunks, but
697
+ > sends information about the chunks to the log.
698
+
591
699
  | Port | Payload |
592
700
  | ------- | ----------- |
593
701
  | input | text, audio |
@@ -598,10 +706,45 @@ First a short overview of the available processing nodes:
598
706
  | **type** | 0 | "audio" | `/^(?:audio\|text)$/` |
599
707
  | **name** | 1 | *none* | *none* |
600
708
 
709
+ REST/WebSocket API
710
+ ------------------
711
+
712
+ **SpeechFlow** has an externally exposed REST/WebSockets API which can
713
+ be used to control the nodes and to receive information from nodes.
714
+ For controlling a node you have three possibilities (illustrated by
715
+ controlling the mode of the "mute" node):
716
+
717
+ ```sh
718
+ # use HTTP/REST/GET:
719
+ $ curl http://127.0.0.1:8484/api/COMMAND/mute/mode/silenced
720
+ ```
721
+
722
+ ```sh
723
+ # use HTTP/REST/POST:
724
+ $ curl -H "Content-type: application/json" \
725
+ --data '{ "request": "COMMAND", "node": "mute", "args": [ "mode", "silenced" ] }' \
726
+ http://127.0.0.1:8484/api
727
+ ```
728
+
729
+ ```sh
730
+ # use WebSockets:
731
+ $ wscat -c ws://127.0.0.1:8484/api \
732
+ > { "request": "COMMAND", "node": "mute", "args": [ "mode", "silenced" ] }
733
+ ```
734
+
735
+ For receiving emitted information from nodes, you have to use the WebSockets
736
+ API (illustrated by the emitted information of the "meter" node):
737
+
738
+ ```sh
739
+ # use WebSockets:
740
+ $ wscat -c ws://127.0.0.1:8484/api \
741
+ < { "response": "NOTIFY", "node": "meter", "args": [ "meter", "LUFS-S", -35.75127410888672 ] }
742
+ ```
743
+
601
744
  History
602
745
  -------
603
746
 
604
- **Speechflow**, as a technical cut-through, was initially created in
747
+ **SpeechFlow**, as a technical cut-through, was initially created in
605
748
  March 2024 for use in the msg Filmstudio context. It was later refined
606
749
  into a more complete toolkit in April 2025 and this way the first time
607
750
  could be used in production. It was fully refactored in July 2025 in
@@ -59,7 +59,8 @@ class SpeechFlowNodeMeter extends speechflow_node_1.default {
59
59
  super(id, cfg, opts, args);
60
60
  /* declare node configuration parameters */
61
61
  this.configure({
62
- interval: { type: "number", pos: 0, val: 250 }
62
+ interval: { type: "number", pos: 0, val: 250 },
63
+ dashboard: { type: "string", val: "" }
63
64
  });
64
65
  /* declare node input/output format */
65
66
  this.input = "audio";
@@ -82,6 +83,8 @@ class SpeechFlowNodeMeter extends speechflow_node_1.default {
82
83
  this.log("debug", `LUFS-S: ${lufss.toFixed(1)} dB, RMS: ${rms.toFixed(1)} dB`);
83
84
  this.sendResponse(["meter", "LUFS-S", lufss]);
84
85
  this.sendResponse(["meter", "RMS", rms]);
86
+ if (this.params.dashboard !== "")
87
+ this.dashboardInfo("audio", this.params.dashboard, "final", lufss);
85
88
  }, this.params.interval);
86
89
  /* provide Duplex stream and internally attach to VAD */
87
90
  const self = this;
@@ -1 +1 @@
1
- {"version":3,"file":"speechflow-node-a2a-meter.js","sourceRoot":"","sources":["../src/speechflow-node-a2a-meter.ts"],"names":[],"mappings":";AAAA;;;;EAIE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,6BAA6B;AAC7B,8DAAgC;AAEhC,6BAA6B;AAC7B,iDAA0D;AAE1D,6BAA6B;AAC7B,wEAAmE;AACnE,0DAAoE;AAEpE,0CAA0C;AAC1C,MAAqB,mBAAoB,SAAQ,yBAAc;IAC3D,kCAAkC;IAC3B,MAAM,CAAC,IAAI,GAAG,OAAO,CAAA;IAE5B,sBAAsB;IACtB,QAAQ,GAA0C,IAAI,CAAA;IAEtD,sBAAsB;IACtB,YAAa,EAAU,EAAE,GAA4B,EAAE,IAA6B,EAAE,IAAW;QAC7F,KAAK,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAE1B,6CAA6C;QAC7C,IAAI,CAAC,SAAS,CAAC;YACX,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE;SACjD,CAAC,CAAA;QAEF,wCAAwC;QACxC,IAAI,CAAC,KAAK,GAAI,OAAO,CAAA;QACrB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAA;IACzB,CAAC;IAED,iBAAiB;IACjB,KAAK,CAAC,IAAI;QACN,8BAA8B;QAC9B,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAi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AAE,QAAQ;gBACX,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;gBACf,QAAQ,EAAE,CAAA;YACd,CAAC;SACJ,CAAC,CAAA;IACN,CAAC;IAED,kBAAkB;IAClB,KAAK,CAAC,KAAK;QACP,oBAAoB;QACpB,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;YACrB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAA;QACtB,CAAC;QAED,qBAAqB;QACrB,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;YACzB,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YAC5B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;QACxB,CAAC;IACL,CAAC;;AAlHL,sCAmHC"}
@@ -64,7 +64,8 @@ class SpeechFlowNodeDeepgram extends speechflow_node_1.default {
64
64
  keyAdm: { type: "string", val: process.env.SPEECHFLOW_DEEPGRAM_KEY_ADM },
65
65
  model: { type: "string", val: "nova-3", pos: 0 },
66
66
  version: { type: "string", val: "latest", pos: 1 },
67
- language: { type: "string", val: "multi", pos: 2 }
67
+ language: { type: "string", val: "multi", pos: 2 },
68
+ interim: { type: "boolean", val: false, pos: 3 }
68
69
  });
69
70
  /* declare node input/output format */
70
71
  this.input = "audio";
@@ -110,7 +111,7 @@ class SpeechFlowNodeDeepgram extends speechflow_node_1.default {
110
111
  encoding: "linear16",
111
112
  multichannel: false,
112
113
  endpointing: 10,
113
- interim_results: false,
114
+ interim_results: this.params.interim,
114
115
  smart_format: true,
115
116
  punctuate: true,
116
117
  filler_words: true,
@@ -120,7 +121,9 @@ class SpeechFlowNodeDeepgram extends speechflow_node_1.default {
120
121
  });
121
122
  /* hook onto Deepgram API events */
122
123
  this.dg.on(Deepgram.LiveTranscriptionEvents.Transcript, async (data) => {
123
- const text = data.channel?.alternatives[0]?.transcript ?? "";
124
+ const text = (data.channel?.alternatives[0]?.transcript ?? "");
125
+ const words = (data.channel?.alternatives[0]?.words ?? []);
126
+ const isFinal = (data.is_final ?? false);
124
127
  if (text === "")
125
128
  this.log("info", `empty/dummy text received (start: ${data.start}s, duration: ${data.duration.toFixed(2)}s)`);
126
129
  else {
@@ -133,7 +136,12 @@ class SpeechFlowNodeDeepgram extends speechflow_node_1.default {
133
136
  return prev;
134
137
  }, new Map());
135
138
  metastore.prune(start);
136
- const chunk = new speechflow_node_1.SpeechFlowChunk(start, end, "final", "text", text, meta);
139
+ meta.set("words", words.map((word) => {
140
+ const start = luxon_1.Duration.fromMillis(word.start * 1000).plus(this.timeZeroOffset);
141
+ const end = luxon_1.Duration.fromMillis(word.end * 1000).plus(this.timeZeroOffset);
142
+ return { word: word.punctuated_word ?? word.word, start, end };
143
+ }));
144
+ const chunk = new speechflow_node_1.SpeechFlowChunk(start, end, isFinal ? "final" : "intermediate", "text", text, meta);
137
145
  queue.write(chunk);
138
146
  }
139
147
  });
@@ -154,7 +162,7 @@ class SpeechFlowNodeDeepgram extends speechflow_node_1.default {
154
162
  timer = null;
155
163
  reject(new Error("Deepgram: timeout waiting for connection open"));
156
164
  }
157
- }, 3000);
165
+ }, 8000);
158
166
  this.dg.once(Deepgram.LiveTranscriptionEvents.Open, () => {
159
167
  this.log("info", "connection open");
160
168
  if (timer !== null) {
@@ -1 +1 @@
1
- {"version":3,"file":"speechflow-node-a2t-deepgram.js","sourceRoot":"","sources":["../src/speechflow-node-a2t-deepgram.ts"],"names":[],"mappings":";AAAA;;;;EAIE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,6BAA6B;AAC7B,8DAAgC;AAEhC,6BAA6B;AAC7B,wDAAkD;AAClD,iCAA0C;AAE1C,6BAA6B;AAC7B,qEAAmE;AACnE,0DAAoE;AAEpE,8DAA8D;AAC9D,MAAqB,sBAAuB,SAAQ,yBAAc;IAC9D,kCAAkC;IAC3B,MAAM,CAAC,IAAI,GAAG,UA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ACtB,CAAC;QAED,6BAA6B;QAC7B,IAAI,IAAI,CAAC,EAAE,KAAK,IAAI;YAChB,IAAI,CAAC,EAAE,CAAC,YAAY,EAAE,CAAA;IAC9B,CAAC;;AAzNL,yCA0NC"}
@@ -89,9 +89,7 @@ class SpeechFlowNodeSentence extends speechflow_node_1.default {
89
89
  workingOffTimer = null;
90
90
  }
91
91
  this.queue.off("write", workOffQueue);
92
- const position = this.queueSplit.position();
93
- const maxPosition = this.queueSplit.maxPosition();
94
- log("info", `SPLIT: ${maxPosition - position} elements in queue`);
92
+ /* try to work off one or more chunks */
95
93
  while (true) {
96
94
  const element = this.queueSplit.peek();
97
95
  if (element === undefined)
@@ -186,9 +184,6 @@ class SpeechFlowNodeSentence extends speechflow_node_1.default {
186
184
  /* send text chunk(s) (readable side of stream) */
187
185
  read(_size) {
188
186
  /* flush pending audio chunks */
189
- const position = self.queueSend.position();
190
- const maxPosition = self.queueSend.maxPosition();
191
- log("info", `SEND: ${maxPosition - position} elements in queue`);
192
187
  const flushPendingChunks = () => {
193
188
  const element = self.queueSend.peek();
194
189
  if (element !== undefined
@@ -1 +1 @@
1
- {"version":3,"file":"speechflow-node-t2t-sentence.js","sourceRoot":"","sources":["../src/speechflow-node-t2t-sentence.ts"],"names":[],"mappings":";AAAA;;;;EAIE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,6BAA6B;AAC7B,8DAA4C;AAE5C,6BAA6B;AAC7B,iCAAsC;AAEtC,6BAA6B;AAC7B,wEAAmE;AACnE,0DAAoE;AAWpE,8CAA8C;AAC9C,MAAqB,sBAAuB,SAAQ,yBAAc;IAC9D,kCAAkC;IAC3B,MAAM,CAAC,IAAI,GAAG,UAAU,CAAA;IAE/B,sBAAsB;IACd,MAAM,CAAC,gBAAgB,GAAG,KAAK,CAAA;IAC/B,KAAK,GAAQ,IAAI,KAAK,CAAC,KAAK,EAAoB,CAAA;IAChD,SAAS,GAAI,IAAI,CAAC,KAAK,CAAC,UA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CACI,IAAI,OAAO,CAAC,IAAI,KAAK,YAAY;mCAC/B,OAAO,CAAC,QAAQ,KAAK,IAAI;gCAC5B,MAAK;4BACT,GAAG,CAAC,MAAM,EAAE,cAAc,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;4BAClE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;4BACxB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;4BACvB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;wBACrB,CAAC;oBACL,CAAC;;wBAEG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAA;gBACpD,CAAC,CAAA;gBACD,kBAAkB,EAAE,CAAA;YACxB,CAAC;SACJ,CAAC,CAAA;IACN,CAAC;IAED,kBAAkB;IAClB,KAAK,CAAC,KAAK;QACP,oBAAoB;QACpB,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;YACrB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAA;QACtB,CAAC;QAED,4BAA4B;QAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;IACzB,CAAC;;AApML,yCAqMC"}
@@ -2,6 +2,7 @@ import SpeechFlowNode from "./speechflow-node";
2
2
  export default class SpeechFlowNodeSubtitle extends SpeechFlowNode {
3
3
  static name: string;
4
4
  private sequenceNo;
5
+ private hapi;
5
6
  constructor(id: string, cfg: {
6
7
  [id: string]: any;
7
8
  }, opts: {