Text to Speech with Expo-speech

2023-08-13

We first need to install expo-speech npm package

npx expo install expo-speech

Text to Speech is in react package fairly easy all we need is calling speech object and passing text into the function

import * as Speech from "expo-speech";

        Speech.speak("bonjour, l'application fonctionne", {
          language: "fr-FR",

Note that we can use other languages such as american english with "en-US" code. You can find source code in my github.