mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
fix speech-to-text typo
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
This commit is contained in:
@@ -56,13 +56,13 @@ The corresponding ``MyReferenceListener`` class can look like:
|
||||
}
|
||||
|
||||
if ($event instanceof TranscriptionSuccessfulEvent) {
|
||||
$transcript = $event->getTranscript()
|
||||
$transcript = $event->getTranscript();
|
||||
// store $transcript somewhere
|
||||
}
|
||||
|
||||
if ($event instanceof TranscriptionSuccessfulEvent) {
|
||||
$error = $event->getErrorMessage()
|
||||
$userId = $event->getUserId()
|
||||
if ($event instanceof TranscriptionFailedEvent) {
|
||||
$error = $event->getErrorMessage();
|
||||
$userId = $event->getUserId();
|
||||
// Notify relevant user about failure
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user