diff options
Diffstat (limited to 'lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php')
-rw-r--r-- | lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php b/lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php new file mode 100644 index 00000000000..63644b98f6d --- /dev/null +++ b/lib/public/SpeechToText/Events/TranscriptionSuccessfulEvent.php @@ -0,0 +1,26 @@ +<?php + +namespace OCP\SpeechToText\Events; + +use OCP\Files\File; + +class TranscriptionSuccessfulEvent extends AbstractTranscriptionEvent { + + /** + * @since 27.0.0 + */ + public function __construct( + int $fileId, + private string $transcript + ) { + parent::__construct($fileId); + } + + /** + * @since 27.0.0 + * @return string The transcript of the media file + */ + public function getTranscript(): string { + return $this->transcript; + } +} |