@vapi-ai/web 1.0.240 → 1.0.241

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.
Files changed (3) hide show
  1. package/dist/vapi.js +1 -0
  2. package/package.json +1 -1
  3. package/vapi.ts +2 -0
package/dist/vapi.js CHANGED
@@ -177,6 +177,7 @@ class Vapi extends VapiEventEmitter {
177
177
  this.averageSpeechLevel * 0.95 + speechLevel * 0.05;
178
178
  this.speechLevel = this.speechLevel * 0.8 + speechLevel * 0.1;
179
179
  this.emit("volume-level", Math.min(1, speechLevel / 0.15));
180
+ console.log(this.averageSpeechLevel, this.speechLevel);
180
181
  const hasStartedSpeaking = this.speechLevel > this.averageSpeechLevel * 1.5;
181
182
  const hasStoppedSpeaking = this.speechLevel < this.averageSpeechLevel * 0.5;
182
183
  if (!this.isSpeaking && hasStartedSpeaking) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "1.0.240",
3
+ "version": "1.0.241",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
package/vapi.ts CHANGED
@@ -219,6 +219,8 @@ export default class Vapi extends VapiEventEmitter {
219
219
 
220
220
  this.emit("volume-level", Math.min(1, speechLevel / 0.15));
221
221
 
222
+ console.log(this.averageSpeechLevel, this.speechLevel);
223
+
222
224
  const hasStartedSpeaking = this.speechLevel > this.averageSpeechLevel * 1.5;
223
225
  const hasStoppedSpeaking = this.speechLevel < this.averageSpeechLevel * 0.5;
224
226