@vapi-ai/web 1.0.1 → 1.0.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/dist/player.d.ts +1 -1
- package/dist/player.js +2 -5
- package/package.json +1 -1
- package/player.ts +1 -1
package/dist/player.d.ts
CHANGED
package/dist/player.js
CHANGED
|
@@ -8,14 +8,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.ContinuousPlayer = void 0;
|
|
16
13
|
const async_1 = require("async"); // You need to install the async package
|
|
17
|
-
const
|
|
18
|
-
class ContinuousPlayer extends
|
|
14
|
+
const stream_1 = require("stream");
|
|
15
|
+
class ContinuousPlayer extends stream_1.EventEmitter {
|
|
19
16
|
constructor(crossFadeDuration = 0.5) {
|
|
20
17
|
super();
|
|
21
18
|
this.audioCtx = new AudioContext();
|
package/package.json
CHANGED
package/player.ts
CHANGED