@onereach/step-voice 7.0.2-processttschunk.0 → 7.0.2-processttschunk.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.
@@ -13,16 +13,20 @@ class ProcessTtsChunk extends voice_1.default {
13
13
  isFinal
14
14
  }
15
15
  };
16
- const sensitiveData = {
17
- muteStep: false,
18
- muteUser: false,
19
- muteBot: false,
20
- };
16
+ // const sensitiveData: SensitiveData = {
17
+ // muteStep: false,
18
+ // muteUser: false,
19
+ // muteBot: false,
20
+ // };
21
21
  this.triggers.local(`in/voice/${call.id}`, async (event) => {
22
22
  this.log.info('Received event from voicer', event);
23
23
  });
24
+ // this.triggers.otherwise(async () => {
25
+ // await this.pauseRecording(call, command, sensitiveData)
26
+ // this.exitStep('next')
27
+ // })
24
28
  this.triggers.otherwise(async () => {
25
- await this.pauseRecording(call, command, sensitiveData);
29
+ await this.sendCommands({ ...call, type: 'tts-chunk' }, [command]);
26
30
  this.exitStep('next');
27
31
  });
28
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.2-processttschunk.0",
3
+ "version": "7.0.2-processttschunk.2",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",