Skip to content

Commit

Permalink
fix speech-to-text typo
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <[email protected]>
  • Loading branch information
kyteinsky authored and backportbot-nextcloud[bot] committed Nov 30, 2023
1 parent acd996c commit 1e2752e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions developer_manual/digging_deeper/speech-to-text.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 1e2752e

Please sign in to comment.