diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2024-02-27 11:27:40 +0100 |
---|---|---|
committer | Julien Veyssier <julien-nc@posteo.net> | 2024-03-15 12:52:17 +0100 |
commit | 76925f15d6d416dd340994b79d921f9d88eae603 (patch) | |
tree | ca8df7f1832acefdab4873ebaa6a8e0ac297c28c /lib/public/SpeechToText | |
parent | df1cd1ba7e6e1f6e66a2b3229b5c082f1b81162e (diff) | |
download | nextcloud-server-76925f15d6d416dd340994b79d921f9d88eae603.tar.gz nextcloud-server-76925f15d6d416dd340994b79d921f9d88eae603.zip |
feat(stt): add ability to cancel a scheduled transcription
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'lib/public/SpeechToText')
-rw-r--r-- | lib/public/SpeechToText/ISpeechToTextManager.php | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -62,6 +62,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 * @throws PreConditionNotMetException If no provider was registered but this method was still called |