@onereach/step-voice 7.0.2-processttschunk.21 → 7.0.2-processttschunk.23

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.
@@ -6,6 +6,8 @@ interface INPUT {
6
6
  endpointing: number;
7
7
  voiceSettings: any;
8
8
  queryParams: any;
9
+ minConfidence: number;
10
+ confirmationConfidence?: number;
9
11
  }
10
12
  interface EVENT extends VoiceEvent {
11
13
  phrases?: TODO[];
@@ -5,13 +5,13 @@ const voice_1 = tslib_1.__importDefault(require("./voice"));
5
5
  class StartTTSChunksProcessing extends voice_1.default {
6
6
  async runStep() {
7
7
  const call = await this.fetchData();
8
- const { voiceId, infiniteProcessing, asr, endpointing, voiceSettings: getSettings, queryParams: getParams } = this.data;
8
+ const { voiceId, infiniteProcessing, asr, endpointing, minConfidence, confirmationConfidence, voiceSettings: getSettings, queryParams: getParams } = this.data;
9
9
  const grammar = {
10
10
  id: this.currentStepId,
11
11
  asr: {
12
12
  ...asr.getSettings(call.asr),
13
13
  config: {
14
- endpointing
14
+ endpointing,
15
15
  }
16
16
  },
17
17
  };
@@ -24,7 +24,9 @@ class StartTTSChunksProcessing extends voice_1.default {
24
24
  infiniteProcessing,
25
25
  grammar,
26
26
  voiceSettings,
27
- queryParams
27
+ queryParams,
28
+ minConfidence,
29
+ confirmationConfidence
28
30
  }
29
31
  };
30
32
  this.log.debug('StartTTSChunksProcessing command', { command });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.2-processttschunk.21",
3
+ "version": "7.0.2-processttschunk.23",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",