diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-04-11 14:59:57 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-04-11 14:59:57 +0200 |
commit | 317521b607e3a14364f5d486630cf1e5181053e4 (patch) | |
tree | 17fa3479a7169e92739232fb7c594c7f9e3cce56 /lib/public/AppFramework | |
parent | c6645cbc46291d2621992b7f0bb087f115e849eb (diff) | |
download | nextcloud-server-317521b607e3a14364f5d486630cf1e5181053e4.tar.gz nextcloud-server-317521b607e3a14364f5d486630cf1e5181053e4.zip |
feat(SpeechToText): Add SpeechToText provider API
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r-- | lib/public/AppFramework/Bootstrap/IRegistrationContext.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php index f83f30c0f1c..66cf1ef2306 100644 --- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php +++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php @@ -39,6 +39,7 @@ use OCP\Files\Template\ICustomTemplateProvider; use OCP\IContainer; use OCP\Notification\INotifier; use OCP\Preview\IProviderV2; +use OCP\SpeechToText\ISpeechToTextProvider; use OCP\Translation\ITranslationProvider; /** @@ -209,6 +210,16 @@ interface IRegistrationContext { public function registerWellKnownHandler(string $class): void; /** + * Register a custom SpeechToText provider class that can provide transcription + * of audio through the OCP\SpeechToText APIs + * + * @param string $providerClass + * @psalm-param class-string<ISpeechToTextProvider> $providerClass + * @since 27.0.0 + */ + public function registerSpeechToTextProvider(string $providerClass): void; + + /** * Register a custom template provider class that is able to inject custom templates * in addition to the user defined ones * |