From 76925f15d6d416dd340994b79d921f9d88eae603 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Tue, 27 Feb 2024 11:27:40 +0100 Subject: feat(stt): add ability to cancel a scheduled transcription Signed-off-by: Julien Veyssier --- lib/public/SpeechToText/ISpeechToTextManager.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/public/SpeechToText') diff --git a/lib/public/SpeechToText/ISpeechToTextManager.php b/lib/public/SpeechToText/ISpeechToTextManager.php index 96973cfca08..f281d52f0dd 100644 --- a/lib/public/SpeechToText/ISpeechToTextManager.php +++ b/lib/public/SpeechToText/ISpeechToTextManager.php @@ -61,6 +61,17 @@ interface ISpeechToTextManager { */ public function scheduleFileTranscription(File $file, ?string $userId, string $appId): void; + /** + * Will cancel a scheduled transcription process + * + * @param File $file The media file involved in the transcription + * @param ?string $userId The user that triggered this request + * @param string $appId The app that triggered this request + * @throws InvalidArgumentException If the file could not be found or is not of a supported type + * @since 29.0.0 + */ + public function cancelScheduledFileTranscription(File $file, ?string $userId, string $appId): void; + /** * @param File $file The media file to transcribe * @returns string The transcription of the passed media file -- cgit v1.2.3