v3.0.0
Major Changes
Official support for Expo 54
-
3b48113: With this major version change, we've removed some top-level exports from the base
expo-speech-recognitionlibrary.
Instead you'll now need to call the function directly fromExpoSpeechRecognitionModule.The list of removed exports:
// Removed import { getSupportedLocales } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.getSupportedLocales();
// Removed import { getSpeechRecognitionServices } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.getSpeechRecognitionServices();
// Removed import { supportsOnDeviceRecognition } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.supportsOnDeviceRecognition();
// Removed import { supportsRecording } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.supportsRecording();
// Removed import { setCategoryIOS } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.setCategoryIOS({ ... });
// Removed import { getAudioSessionCategoryAndOptionsIOS } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.getAudioSessionCategoryAndOptionsIOS();
// Removed import { setAudioSessionActiveIOS } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.setAudioSessionActiveIOS(true, { ... });
// Removed import { androidTriggerOfflineModelDownload } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.androidTriggerOfflineModelDownload({ ... });
// Removed import { isRecognitionAvailable } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.isRecognitionAvailable();
// Removed import { getDefaultRecognitionService } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.getDefaultRecognitionService();
// Removed import { getAssistantService } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.getAssistantService();
// Removed import { addSpeechRecognitionListener } from "expo-speech-recognition"; // Instead use: ExpoSpeechRecognitionModule.addListener("foo", (event) => { ... });