diff --git a/example/App.tsx b/example/App.tsx index 11d8691..08c6d65 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -998,7 +998,7 @@ function TranscribeLocalAudioFile() { ExpoSpeechRecognitionModule.start({ lang: "en-US", interimResults: true, - requiresOnDeviceRecognition: false, + requiresOnDeviceRecognition: Platform.OS === "ios", audioSource: { uri: localUri, audioChannels: 1, diff --git a/ios/ExpoSpeechRecognizer.swift b/ios/ExpoSpeechRecognizer.swift index 4c1f8c1..2d28230 100644 --- a/ios/ExpoSpeechRecognizer.swift +++ b/ios/ExpoSpeechRecognizer.swift @@ -336,7 +336,6 @@ actor ExpoSpeechRecognizer: ObservableObject { print("Audio streaming ended") request.endAudio() - } catch { print("Error feeding audio file: \(error)") request.endAudio()