@onereach/step-voice 7.0.2-initaiconversation.4 → 7.0.2-initaiconversation.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.
@@ -6,6 +6,8 @@ interface INPUT {
6
6
  threshold: number;
7
7
  prefixPadding: number;
8
8
  silenceDuration: number;
9
+ language: string;
10
+ voice?: string;
9
11
  }
10
12
  interface EVENT extends VoiceEvent {
11
13
  exitId?: string;
@@ -5,18 +5,19 @@ const voice_1 = tslib_1.__importDefault(require("./voice"));
5
5
  class InitAIConversation extends voice_1.default {
6
6
  async runStep() {
7
7
  const call = await this.fetchData();
8
- const { instructions, temperature, modality, threshold, prefixPadding, silenceDuration } = this.data;
8
+ const { instructions, temperature, modality, threshold, prefixPadding, silenceDuration, language, voice } = this.data;
9
9
  const asrSettings = {
10
10
  enabled: true,
11
11
  engine: `openAI`,
12
- language: `en`,
13
12
  config: {
14
13
  instructions,
15
14
  temperature,
16
15
  modality,
17
16
  threshold,
18
17
  prefixPadding,
19
- silenceDuration
18
+ silenceDuration,
19
+ language,
20
+ voice
20
21
  }
21
22
  };
22
23
  const grammar = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.2-initaiconversation.4",
3
+ "version": "7.0.2-initaiconversation.6",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",