diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-12-19 16:14:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 16:14:13 +0100 |
commit | 53be798a70436b77a512a7ea5045b675280f43bc (patch) | |
tree | d5664cc59e2c2e6cbaf5acc6b5b8e4ec08aa8061 /apps/settings/lib/Settings/Admin/ArtificialIntelligence.php | |
parent | e5622171b45639302c173e427c424963a0ff7b9f (diff) | |
parent | 9327e36ef4ad0b306d060c1bbaed1dc3ac4c73ed (diff) | |
download | nextcloud-server-53be798a70436b77a512a7ea5045b675280f43bc.tar.gz nextcloud-server-53be798a70436b77a512a7ea5045b675280f43bc.zip |
Merge branch 'master' into enh/text-processing-provider-with-id
Diffstat (limited to 'apps/settings/lib/Settings/Admin/ArtificialIntelligence.php')
-rw-r--r-- | apps/settings/lib/Settings/Admin/ArtificialIntelligence.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php index 25c815cb140..e2862139e49 100644 --- a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php +++ b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php @@ -31,6 +31,7 @@ use OCP\IConfig; use OCP\IL10N; use OCP\Settings\IDelegatedSettings; use OCP\SpeechToText\ISpeechToTextManager; +use OCP\SpeechToText\ISpeechToTextProviderWithId; use OCP\TextProcessing\IManager; use OCP\TextProcessing\IProvider; use OCP\TextProcessing\IProviderWithId; @@ -70,7 +71,7 @@ class ArtificialIntelligence implements IDelegatedSettings { $sttProviders = []; foreach ($this->sttManager->getProviders() as $provider) { $sttProviders[] = [ - 'class' => $provider::class, + 'class' => $provider instanceof ISpeechToTextProviderWithId ? $provider->getId() : $provider::class, 'name' => $provider->getName(), ]; } |