Skip to content

Commit

Permalink
1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilro committed Jun 15, 2024
1 parent fb2f849 commit f0c96a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vapi-ai/web",
"version": "1.4.1",
"version": "1.4.2",
"description": "",
"main": "dist/vapi.js",
"types": "dist/vapi.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions vapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface AddMessageMessage {
export interface ControlMessages {
type: 'control';
control: 'mute-assistant' | 'unmute-assistant' | 'say-first-message';
videoRecordingStartDelay?: number;
videoRecordingStartDelaySeconds?: number;
}

export interface SayMessage {
Expand Down Expand Up @@ -219,7 +219,7 @@ export default class Vapi extends VapiEventEmitter {
this.send({
type: 'control',
control: 'say-first-message',
videoRecordingStartDelay: new Date().getTime() - recordingRequestedTime,
videoRecordingStartDelaySeconds: (new Date().getTime() - recordingRequestedTime) / 1000,
});
});
}
Expand Down

0 comments on commit f0c96a4

Please sign in to comment.