mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
fix speech-to-text typo
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
This commit is contained in:
parent
7a474b96d5
commit
841d210a14
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user