Please provide the following:
- SDK Version: 39
- Platforms(Android/iOS/web/all): iOS
- Add the appropriate “Tag” based on what Expo library you have a question on.
Is it possible to play Expo Speech when in silent mode?
Please provide the following:
Is it possible to play Expo Speech when in silent mode?
Actually you can, there is a solution for this.
import * as Speech from "expo-speech";
let Sound = require("react-native-sound");
let word = <insert text here>;
let voice = <insert voice here>;
Sound.setCategory("Playback");
Speech.speak(word, {
voice: voice,
});
It’s a bit hacky, and requires installing react-native-sound as well, but I can confirm it works
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.