Skip to content

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 02:37
· 22 commits to main since this release
9cba0dc

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-recognition library.
    Instead you'll now need to call the function directly from ExpoSpeechRecognitionModule.

    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) => { ... });