You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used react, gatsby, typescript and
this is the way i implemented
import { useMicVAD } from "@ricky0123/vad-react";
const a= useMicVAD({
startOnLoad: true,
stream,
onSpeechStart,
onSpeechEnd,
positiveSpeechThreshold: 0.6,
negativeSpeechThreshold: 0.6 - 0.15,
});
and when i log a.userSpeaking it's always false .and here's log
{
"listening": false,
"errored": {
"message": "The user aborted a request."
},
"loading": false,
"userSpeaking": false
}
The text was updated successfully, but these errors were encountered:
const[isSpeaking,setIsSpeaking]=useState(false);const{ loading }=useMicVAD({onSpeechStart: ()=>{// do something when speech startsetIsSpeaking(true);},onSpeechEnd: audio=>{// do something when speech startsetIsSpeaking(false);},});
I used react, gatsby, typescript and
this is the way i implemented
import { useMicVAD } from "@ricky0123/vad-react";
const a= useMicVAD({
startOnLoad: true,
stream,
onSpeechStart,
onSpeechEnd,
positiveSpeechThreshold: 0.6,
negativeSpeechThreshold: 0.6 - 0.15,
});
and when i log a.userSpeaking it's always false .and here's log
{
"listening": false,
"errored": {
"message": "The user aborted a request."
},
"loading": false,
"userSpeaking": false
}
The text was updated successfully, but these errors were encountered: