Skip to content

Commit e9690a6

Browse files
committed
register events
1 parent 2b2a9ff commit e9690a6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

android/src/main/java/expo/modules/speechrecognition/ExpoSpeechRecognitionModule.kt

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ class ExpoSpeechRecognitionModule : Module() {
8686
"start",
8787
// Called when there's results (as a string array, not API compliant)
8888
"results",
89+
// Called when the language detection (and switching) results are available.
90+
"languagedetection",
8991
)
9092

9193
Function("getDefaultRecognitionService") {

ios/ExpoSpeechRecognitionModule.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ public class ExpoSpeechRecognitionModule: Module {
8585
// intent to recognize grammars associated with the current SpeechRecognition
8686
"start",
8787
// Called when there's results (as a string array, not API compliant)
88-
"result"
88+
"result",
89+
// Called when the language detection (and switching) results are available.
90+
"languagedetection"
8991
)
9092

9193
OnCreate {

0 commit comments

Comments
 (0)