diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2024-08-28 17:26:32 +0200 |
---|---|---|
committer | Julien Veyssier <julien-nc@posteo.net> | 2024-08-30 10:07:01 +0200 |
commit | 04edeb510da454c51aaa7d91b6b2b5e6fdb77bbd (patch) | |
tree | b4750203c9df0d138db1ec9b5a6d292ea04ff209 /lib/public | |
parent | 5ab0866341ac21f732117833e41b7deb12971b08 (diff) | |
download | nextcloud-server-04edeb510da454c51aaa7d91b6b2b5e6fdb77bbd.tar.gz nextcloud-server-04edeb510da454c51aaa7d91b6b2b5e6fdb77bbd.zip |
feat(speech-to-text): SpeechToTextManager::transcribeFile calls TaskProcessingManager::runTask
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/SpeechToText/ISpeechToTextManager.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/SpeechToText/ISpeechToTextManager.php b/lib/public/SpeechToText/ISpeechToTextManager.php index 043dac0ba14..6bd95197695 100644 --- a/lib/public/SpeechToText/ISpeechToTextManager.php +++ b/lib/public/SpeechToText/ISpeechToTextManager.php @@ -59,11 +59,13 @@ interface ISpeechToTextManager { /** * @param File $file The media file to transcribe + * @param ?string $userId The user that triggered this request + * @param string $appId The app that triggered this request * @returns string The transcription of the passed media file * @throws PreConditionNotMetException If no provider was registered but this method was still called * @throws InvalidArgumentException If the file could not be found or is not of a supported type * @throws RuntimeException If the transcription failed for other reasons * @since 27.0.0 */ - public function transcribeFile(File $file): string; + public function transcribeFile(File $file, ?string $userId, string $appId): string; } |