aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/SpeechToText
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/SpeechToText')
-rw-r--r--lib/public/SpeechToText/Events/AbstractTranscriptionEvent.php1
-rw-r--r--lib/public/SpeechToText/Events/TranscriptionFailedEvent.php1
-rw-r--r--lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php1
-rw-r--r--lib/public/SpeechToText/ISpeechToTextManager.php5
-rw-r--r--lib/public/SpeechToText/ISpeechToTextProvider.php1
-rw-r--r--lib/public/SpeechToText/ISpeechToTextProviderWithId.php1
-rw-r--r--lib/public/SpeechToText/ISpeechToTextProviderWithUserId.php1
7 files changed, 10 insertions, 1 deletions
diff --git a/lib/public/SpeechToText/Events/AbstractTranscriptionEvent.php b/lib/public/SpeechToText/Events/AbstractTranscriptionEvent.php
index eeb7695b387..6554292d413 100644
--- a/lib/public/SpeechToText/Events/AbstractTranscriptionEvent.php
+++ b/lib/public/SpeechToText/Events/AbstractTranscriptionEvent.php
@@ -13,6 +13,7 @@ use OCP\Files\File;
/**
* @since 27.0.0
+ * @deprecated 30.0.0
*/
abstract class AbstractTranscriptionEvent extends Event {
/**
diff --git a/lib/public/SpeechToText/Events/TranscriptionFailedEvent.php b/lib/public/SpeechToText/Events/TranscriptionFailedEvent.php
index 53eb56c2ea9..4c2b0d52017 100644
--- a/lib/public/SpeechToText/Events/TranscriptionFailedEvent.php
+++ b/lib/public/SpeechToText/Events/TranscriptionFailedEvent.php
@@ -15,6 +15,7 @@ use OCP\Files\File;
/**
* This Event is emitted if a transcription of a media file using a Speech-To-Text provider failed
* @since 27.0.0
+ * @deprecated 30.0.0
*/
class TranscriptionFailedEvent extends AbstractTranscriptionEvent {
/**
diff --git a/lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php b/lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php
index 1e333fdc3c7..e8e5359a29e 100644
--- a/lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php
+++ b/lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php
@@ -15,6 +15,7 @@ use OCP\Files\File;
/**
* This Event is emitted when a transcription of a media file happened successfully
* @since 27.0.0
+ * @deprecated 30.0.0
*/
class TranscriptionSuccessfulEvent extends AbstractTranscriptionEvent {
/**
diff --git a/lib/public/SpeechToText/ISpeechToTextManager.php b/lib/public/SpeechToText/ISpeechToTextManager.php
index 27523a69a95..6bd95197695 100644
--- a/lib/public/SpeechToText/ISpeechToTextManager.php
+++ b/lib/public/SpeechToText/ISpeechToTextManager.php
@@ -17,6 +17,7 @@ use RuntimeException;
/**
* @since 27.0.0
+ * @deprecated 30.0.0
*/
interface ISpeechToTextManager {
/**
@@ -58,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;
}
diff --git a/lib/public/SpeechToText/ISpeechToTextProvider.php b/lib/public/SpeechToText/ISpeechToTextProvider.php
index a1aca06e2e4..dce4a68ea0a 100644
--- a/lib/public/SpeechToText/ISpeechToTextProvider.php
+++ b/lib/public/SpeechToText/ISpeechToTextProvider.php
@@ -15,6 +15,7 @@ use RuntimeException;
/**
* @since 27.0.0
+ * @deprecated 30.0.0
*/
interface ISpeechToTextProvider {
/**
diff --git a/lib/public/SpeechToText/ISpeechToTextProviderWithId.php b/lib/public/SpeechToText/ISpeechToTextProviderWithId.php
index a1d73d10a58..8020c6c9b96 100644
--- a/lib/public/SpeechToText/ISpeechToTextProviderWithId.php
+++ b/lib/public/SpeechToText/ISpeechToTextProviderWithId.php
@@ -8,6 +8,7 @@ namespace OCP\SpeechToText;
/**
* @since 28.0.0
+ * @deprecated 30.0.0
*/
interface ISpeechToTextProviderWithId extends ISpeechToTextProvider {
diff --git a/lib/public/SpeechToText/ISpeechToTextProviderWithUserId.php b/lib/public/SpeechToText/ISpeechToTextProviderWithUserId.php
index f1b84476b9a..d1bc4216a38 100644
--- a/lib/public/SpeechToText/ISpeechToTextProviderWithUserId.php
+++ b/lib/public/SpeechToText/ISpeechToTextProviderWithUserId.php
@@ -12,6 +12,7 @@ namespace OCP\SpeechToText;
/**
* @since 29.0.0
+ * @deprecated 30.0.0
*/
interface ISpeechToTextProviderWithUserId extends ISpeechToTextProvider {
/**