@onereach/step-voice 7.0.2-initaiconversation.1 → 7.0.2-initaiconversation.3

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,15 +6,25 @@ class InitAIConversation extends voice_1.default {
6
6
  async runStep() {
7
7
  const call = await this.fetchData();
8
8
  const { instructions, temperature, modality, threshold, prefixPadding, silenceDuration } = this.data;
9
+ const asrSettings = {
10
+ enabled: true,
11
+ engine: `openAI`,
12
+ language: `en`,
13
+ instructions,
14
+ temperature,
15
+ modality,
16
+ threshold,
17
+ prefixPadding,
18
+ silenceDuration
19
+ };
20
+ const grammar = {
21
+ id: this.currentStepId,
22
+ asr: asrSettings
23
+ };
9
24
  const command = {
10
25
  name: 'init-ai-conversation',
11
26
  params: {
12
- instructions,
13
- temperature,
14
- modality,
15
- threshold,
16
- prefixPadding,
17
- silenceDuration
27
+ grammar,
18
28
  }
19
29
  };
20
30
  const sensitiveData = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.2-initaiconversation.1",
3
+ "version": "7.0.2-initaiconversation.3",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",