feat: stop current interpretation

This commit is contained in:
karishmas6
2024-06-09 01:07:17 +05:30
parent 920d351ccf
commit 812f2b1005

View File

@@ -51,3 +51,16 @@ export const interpretCurrentRecording = async(): Promise<boolean> => {
}
};
export const stopCurrentInterpretation = async(): Promise<void> => {
try {
const response = await axios.get('http://localhost:8080/record/interpret/stop');
if (response.status === 200) {
return;
} else {
throw new Error('Couldn\'t interpret current recording');
}
} catch(error: any) {
console.log(error);
}
};