@onereach/step-voice 7.0.2-initaiconversation.0 → 7.0.2-initaiconversation.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.
@@ -6,9 +6,19 @@ 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
+ };
14
+ const grammar = {
15
+ id: this.currentStepId,
16
+ asr: asrSettings
17
+ };
9
18
  const command = {
10
- name: 'initAIConversation',
19
+ name: 'init-ai-conversation',
11
20
  params: {
21
+ grammar,
12
22
  instructions,
13
23
  temperature,
14
24
  modality,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.2-initaiconversation.0",
3
+ "version": "7.0.2-initaiconversation.2",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",