aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-24 12:12:06 +0200
committerJulien Veyssier <julien-nc@posteo.net>2023-08-02 12:37:35 +0200
commitfc9780a41d586e2983f18e128a4095484e5860ac (patch)
tree800ec46cda50a9e758f6b41f759423a7b82bb0a9 /lib
parent78856f354f63d3c23920fc3eeb386d6e92d6215d (diff)
downloadnextcloud-server-fc9780a41d586e2983f18e128a4095484e5860ac.tar.gz
nextcloud-server-fc9780a41d586e2983f18e128a4095484e5860ac.zip
First pass at ai admin settings
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/public/SpeechToText/ISpeechToTextManager.php6
-rw-r--r--lib/public/TextProcessing/IManager.php6
-rw-r--r--lib/public/Translation/ITranslationManager.php6
3 files changed, 18 insertions, 0 deletions
diff --git a/lib/public/SpeechToText/ISpeechToTextManager.php b/lib/public/SpeechToText/ISpeechToTextManager.php
index eff00ec0fa1..96973cfca08 100644
--- a/lib/public/SpeechToText/ISpeechToTextManager.php
+++ b/lib/public/SpeechToText/ISpeechToTextManager.php
@@ -41,6 +41,12 @@ interface ISpeechToTextManager {
public function hasProviders(): bool;
/**
+ * @return ISpeechToTextProvider[]
+ * @since 27.1.0
+ */
+ public function getProviders(): array;
+
+ /**
* Will schedule a transcription process in the background. The result will become available
* with the \OCP\SpeechToText\Events\TranscriptionFinishedEvent
* You should add context information to the context array to re-identify the transcription result as
diff --git a/lib/public/TextProcessing/IManager.php b/lib/public/TextProcessing/IManager.php
index 90e25894d4f..50d012eca68 100644
--- a/lib/public/TextProcessing/IManager.php
+++ b/lib/public/TextProcessing/IManager.php
@@ -42,6 +42,12 @@ interface IManager {
public function hasProviders(): bool;
/**
+ * @return IProvider[]
+ * @since 27.1.0
+ */
+ public function getProviders(): array;
+
+ /**
* @return class-string<ITaskType>[]
* @since 27.1.0
*/
diff --git a/lib/public/Translation/ITranslationManager.php b/lib/public/Translation/ITranslationManager.php
index 4450f19c424..5b342faea75 100644
--- a/lib/public/Translation/ITranslationManager.php
+++ b/lib/public/Translation/ITranslationManager.php
@@ -39,6 +39,12 @@ interface ITranslationManager {
public function hasProviders(): bool;
/**
+ * @return ITranslationProvider[]
+ * @since 27.1.0
+ */
+ public function getProviders(): array;
+
+ /**
* @since 26.0.0
*/
public function canDetectLanguage(): bool;