@onereach/step-voice 7.0.20 → 7.0.21-voiceagents.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.
- package/dst/Voice Agent.d.ts +8 -0
- package/dst/Voice Agent.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const voice_1 = tslib_1.__importDefault(require("./voice"));
|
|
5
|
+
class VoiceAgent extends voice_1.default {
|
|
6
|
+
async runStep() {
|
|
7
|
+
const { url = "wss://bot.svc.devvoice-voiceone.api.onereach.ai/ws" } = this.data;
|
|
8
|
+
const call = await this.fetchData();
|
|
9
|
+
await this.sendCommands(call, [{ name: 'ws_pipe', params: { url } }]);
|
|
10
|
+
this.exitStep('next');
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = VoiceAgent;
|