Skip to content

Commit

Permalink
register events
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsch committed Oct 4, 2024
1 parent 2b2a9ff commit e9690a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ class ExpoSpeechRecognitionModule : Module() {
"start",
// Called when there's results (as a string array, not API compliant)
"results",
// Called when the language detection (and switching) results are available.
"languagedetection",
)

Function("getDefaultRecognitionService") {
Expand Down
4 changes: 3 additions & 1 deletion ios/ExpoSpeechRecognitionModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public class ExpoSpeechRecognitionModule: Module {
// intent to recognize grammars associated with the current SpeechRecognition
"start",
// Called when there's results (as a string array, not API compliant)
"result"
"result",
// Called when the language detection (and switching) results are available.
"languagedetection"
)

OnCreate {
Expand Down

0 comments on commit e9690a6

Please sign in to comment.