aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/SpeechToText/ISpeechToTextManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/SpeechToText/ISpeechToTextManager.php')
-rw-r--r--lib/public/SpeechToText/ISpeechToTextManager.php25
1 files changed, 6 insertions, 19 deletions
diff --git a/lib/public/SpeechToText/ISpeechToTextManager.php b/lib/public/SpeechToText/ISpeechToTextManager.php
index f281d52f0dd..6bd95197695 100644
--- a/lib/public/SpeechToText/ISpeechToTextManager.php
+++ b/lib/public/SpeechToText/ISpeechToTextManager.php
@@ -3,24 +3,8 @@
declare(strict_types=1);
/**
- * @copyright Copyright (c) 2023 Marcel Klehr <mklehr@gmx.net>
- *
- * @author Marcel Klehr <mklehr@gmx.net>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
@@ -33,6 +17,7 @@ use RuntimeException;
/**
* @since 27.0.0
+ * @deprecated 30.0.0
*/
interface ISpeechToTextManager {
/**
@@ -74,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;
}