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
can you share code for this entire component, because there are few things which are not clear, if you are using useTranscription hook outside the component than you'll get this kind of error
make sure it is formatted like this -
constMyComponent=()=>{const{ startTranscription, stopTranscription }=useTranscription({onTranscriptionStateChanged: (status)=>{},onTranscriptionText: (data)=>{const{ text }=data;setTranscriptionText(text);},});// rest of your codereturn(...)}
Uh oh!
There was an error while loading. Please reload this page.
const { startTranscription, stopTranscription } = useTranscription({
onTranscriptionStateChanged: (status) => {},
onTranscriptionText: (data) => {
const { text } = data;
setTranscriptionText(text);
},
});
const {
TRANSCRIPTION_STARTED,
TRANSCRIPTION_STARTING,
TRANSCRIPTION_STOPPED,
// TRANSCRIPTION_STOPPING,
} = Constants.transcriptionEvents;
const transscriptStart =()=>{
console.log("transscriptStart",transcriptionState);
if(transcriptionState === TRANSCRIPTION_STOPPED){
startTranscription();
}
}
TypeError: Cannot read properties of null (reading 'startTranscription')
The text was updated successfully, but these errors were encountered: