diff --git a/src/api/recording.ts b/src/api/recording.ts index c399ca1b..6730b6bb 100644 --- a/src/api/recording.ts +++ b/src/api/recording.ts @@ -51,3 +51,16 @@ export const interpretCurrentRecording = async(): Promise => { } }; +export const stopCurrentInterpretation = async(): Promise => { + 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); + } +}; +