diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-10-24 14:20:45 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-12-19 12:31:21 +0100 |
commit | 928fee8ab47841cbc970a1e3b5176eb902fe748b (patch) | |
tree | 73b2a33a2ec09ac53497f186834991736d536373 /lib/public/SpeechToText | |
parent | d8381acf861202bed821e92f3cf8647db87a0efe (diff) | |
download | nextcloud-server-928fee8ab47841cbc970a1e3b5176eb902fe748b.tar.gz nextcloud-server-928fee8ab47841cbc970a1e3b5176eb902fe748b.zip |
enh(SpeechToText): Allow providers to declare a dynamic ID instead of using className
this allows AppAPI to register anonymous classes as SpeechToText providers
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public/SpeechToText')
-rw-r--r-- | lib/public/SpeechToText/ISpeechToTextProviderWithId.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/SpeechToText/ISpeechToTextProviderWithId.php b/lib/public/SpeechToText/ISpeechToTextProviderWithId.php new file mode 100644 index 00000000000..0fb337f4602 --- /dev/null +++ b/lib/public/SpeechToText/ISpeechToTextProviderWithId.php @@ -0,0 +1,14 @@ +<?php + +namespace OCP\SpeechToText; + +/** + * @since 28.0.0 + */ +interface ISpeechToTextProviderWithId extends ISpeechToTextProvider { + + /** + * @since 28.0.0 + */ + public function getId(): string; +} |