matt HOFFNER commited on
Commit
a74fc7e
β€’
1 Parent(s): faa5faf
Files changed (1) hide show
  1. app/input.tsx +2 -2
app/input.tsx CHANGED
@@ -94,14 +94,14 @@ const VoiceInputForm: React.FC<VoiceInputFormProps> = ({ handleSubmit, input, se
94
  mediaRecorderRef.current.stop(); // set state to inactive
95
  setDuration(0);
96
  setRecording(false);
97
- vad.pause();
98
  }
99
  };
100
 
101
  const startRecording = async () => {
102
  // Reset recording (if any)
103
  setRecordedBlob(null);
104
- vad.start();
105
 
106
  let startTime = Date.now();
107
 
 
94
  mediaRecorderRef.current.stop(); // set state to inactive
95
  setDuration(0);
96
  setRecording(false);
97
+ vad.toggle();
98
  }
99
  };
100
 
101
  const startRecording = async () => {
102
  // Reset recording (if any)
103
  setRecordedBlob(null);
104
+ vad.toggle();
105
 
106
  let startTime = Date.now();
107