aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/SpeechToText
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-04-12 16:52:11 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-04-12 16:52:11 +0200
commitef7ce88cee47ec7d05c43e55c166f8488667dc5d (patch)
treee1e41af7d7b7a179297a3937c2d234b1193fc7bd /lib/public/SpeechToText
parent1833d932ef39bb77f59cee17f194fef7d768a67c (diff)
downloadnextcloud-server-ef7ce88cee47ec7d05c43e55c166f8488667dc5d.tar.gz
nextcloud-server-ef7ce88cee47ec7d05c43e55c166f8488667dc5d.zip
ISpeechToTextProvider#transcribeFile: Pass \OCP\Files\File instead of path
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public/SpeechToText')
-rw-r--r--lib/public/SpeechToText/ISpeechToTextManager.php2
-rw-r--r--lib/public/SpeechToText/ISpeechToTextProvider.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/SpeechToText/ISpeechToTextManager.php b/lib/public/SpeechToText/ISpeechToTextManager.php
index 297be43e6db..7bcd60bce8c 100644
--- a/lib/public/SpeechToText/ISpeechToTextManager.php
+++ b/lib/public/SpeechToText/ISpeechToTextManager.php
@@ -43,7 +43,7 @@ interface ISpeechToTextManager {
* 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
- * as belonging to your transcription request.
+ * belonging to your transcription request.
*
* @since 27.0.0
* @throws PreConditionNotMetException If no provider was registered but this method was still called
diff --git a/lib/public/SpeechToText/ISpeechToTextProvider.php b/lib/public/SpeechToText/ISpeechToTextProvider.php
index 3d739408bf5..c23b75c115e 100644
--- a/lib/public/SpeechToText/ISpeechToTextProvider.php
+++ b/lib/public/SpeechToText/ISpeechToTextProvider.php
@@ -26,6 +26,7 @@ declare(strict_types=1);
namespace OCP\SpeechToText;
+use OCP\Files\File;
use RuntimeException;
/**
@@ -41,5 +42,5 @@ interface ISpeechToTextProvider {
* @since 27.0.0
* @throws RuntimeException If the text could not be transcribed
*/
- public function transcribeFile(string $path): string;
+ public function transcribeFile(File $file): string;
}